Barcode Generator Tool - Multi-Format 1D Barcode Creator with Batch Generation

First Published:
Last Updated:

This tool generates 1D barcodes in 12 standard formats including EAN-13, JAN (Japanese Article Number), ISBN, UPC-A, Code 128, Code 39, and more. It features real-time preview as you type, automatic check digit calculation with step-by-step breakdown, ISBN-10 to ISBN-13 conversion, and full customization of bar width, height, colors, and text display. Use batch mode to generate up to 200 barcodes at once from CSV data and download them as a print-ready sheet.

Also check out the QR Code Generator and Reader Tool for 2D barcodes.

All processing is performed entirely in your browser using client-side JavaScript. No data is transmitted to any server. Your barcode data never leaves your device.

  • This tool is provided "AS IS" without any warranties of any kind.
  • The author accepts no responsibility for incorrectly generated barcodes or scanning failures.
  • Always verify generated barcodes with a physical scanner before production use.
  • Check digit calculations follow ISO/IEC standards but should be independently verified for critical applications.
  • By using this tool, you accept full responsibility for any outcomes.

This tool uses client-side JavaScript for all processing. No data is transmitted to servers, no files are uploaded online, all processing happens locally in your browser. Once loaded, this tool continues to work even without an internet connection. For more details, please refer to our Web Tools Disclaimer.

Generate multiple barcodes at once from CSV-formatted data. Each line creates one barcode.

Format: value or value,FORMAT or value,FORMAT,label
Lines starting with # are treated as comments and ignored.
If FORMAT is omitted, the format selected in Single mode is used.
Valid formats: EAN13, EAN8, JAN13, JAN8, ISBN, UPC, UPCE, CODE128, CODE39, ITF14, codabar, pharmacode
Drop a CSV/TXT file here or click to browse

Features

  • 12 Barcode Formats: EAN-13, EAN-8, JAN-13, JAN-8, ISBN (10/13), UPC-A, UPC-E, Code 128, Code 39, ITF-14, Codabar, and Pharmacode
  • Real-Time Preview: Barcode updates instantly as you type with debounced rendering
  • Auto Check Digit Calculation: Automatically calculates and shows step-by-step check digit breakdown for EAN-13, EAN-8, UPC-A, and ITF-14
  • Smart Validation: Format-specific input validation with clear error messages and valid character/length guidance
  • Batch Generation: Generate up to 200 barcodes at once from CSV data with per-barcode format and label support
  • Print Sheet Download: Batch barcodes arranged in a print-ready grid layout as a single PNG image
  • Full Customization: Bar width, height, margin, bar color, background color, font size, text alignment, and flat mode
  • Multiple Export Formats: Download individual barcodes as high-resolution PNG (3x scale) or vector SVG
  • CSV/TXT File Upload: Drag-and-drop or browse to load batch data from files
  • Clickable Examples: Click the example value in format info to instantly try any barcode format
  • Companion to QR Code Tool: Pair with the QR Code Generator for complete 1D and 2D barcode needs
  • Complete Privacy: All processing happens in your browser. No data is ever sent to any server

Supported Barcode Formats

  • EAN-13: 13-digit European Article Number. The global standard for retail product identification (GTIN-13). Also known as JAN code in Japan
  • EAN-8: 8-digit compact EAN for small packages where a full EAN-13 won't fit
  • JAN-13 (Standard): Japanese Article Number. The Japanese name for EAN-13 with Japan-assigned GS1 prefixes 45 and 49. Used for all retail products sold in Japan
  • JAN-8 (Short): Short Japanese Article Number. The Japanese name for EAN-8. Used for small packages in Japan where a full JAN-13 won't fit
  • ISBN: International Standard Book Number for books and publications. Accepts ISBN-13 (978/979 prefix, same as EAN-13) or legacy ISBN-10 with automatic conversion to ISBN-13. Hyphens in the input are stripped automatically
  • UPC-A: 12-digit Universal Product Code. The standard barcode for retail in North America
  • UPC-E: 8-digit compressed UPC for very small products. Zero-suppression encoding of UPC-A
  • Code 128: High-density alphanumeric barcode supporting the full ASCII character set. Widely used in shipping, logistics, and supply chain
  • Code 39: Self-checking alphanumeric barcode supporting 0-9, A-Z, and special characters. Used in military (MIL-STD-1189), automotive, and healthcare (HIBC)
  • ITF-14: 14-digit Interleaved 2 of 5 barcode for shipping containers and outer cartons (GTIN-14)
  • Codabar: Numeric barcode with special characters. Used in libraries, blood banks, and FedEx airbills
  • Pharmacode: Binary barcode encoding numbers 3-131070. Used exclusively in pharmaceutical packaging for automated verification

How to Use

Single Barcode Mode

  1. Select a barcode format from the dropdown menu
  2. Enter your data in the input field. The format info box shows valid characters and length requirements
  3. For EAN/UPC/ITF/JAN formats, enter the digits without the check digit. It will be calculated automatically with a step-by-step breakdown
  4. For ISBN, enter either ISBN-13 (e.g., 978-4-10-101010-8) or ISBN-10 (e.g., 4101010102). ISBN-10 is automatically converted to ISBN-13. Hyphens are stripped
  5. Click "Generate Barcode" or simply start typing for real-time preview
  6. Optionally expand "Customize Appearance" to adjust bar width, height, colors, and text options
  7. Download the barcode as PNG (high-resolution, 3x scale) or SVG (vector, infinitely scalable)

Batch Generation Mode

  1. Switch to the "Batch Generation" tab
  2. Enter barcode data with one barcode per line. Use the format: value, value,FORMAT, or value,FORMAT,label
  3. Alternatively, drag-and-drop or browse to upload a CSV or TXT file
  4. Click "Generate All Barcodes" to create all barcodes at once
  5. Download individual barcodes using the PNG/SVG buttons on each card
  6. Click "Download Print Sheet" to get all barcodes arranged in a printable grid layout as a single PNG

Important Notes

  • Generated barcodes should always be verified with a physical barcode scanner before use in production environments
  • EAN-13, JAN, UPC-A, and ISBN barcodes require unique numbers assigned by GS1 or ISBN agencies. This tool generates barcodes from any valid input but does not assign official numbers
  • For best print quality, use SVG format or the high-resolution PNG export (3x scale). Ensure sufficient contrast between bar color and background
  • Code 128 automatically selects the optimal character set (A, B, or C) for the most compact encoding
  • Batch mode supports up to 200 barcodes per generation. For larger volumes, split into multiple batches
  • The print sheet layout arranges barcodes in a 3-column grid. Adjust individual barcode sizes via the customization panel before generating

Third-Party Libraries:


References:
Tech Blog with curated related content
Web Tools Collection

Written by Hidekazu Konishi