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.
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
- Select a barcode format from the dropdown menu
- Enter your data in the input field. The format info box shows valid characters and length requirements
- For EAN/UPC/ITF/JAN formats, enter the digits without the check digit. It will be calculated automatically with a step-by-step breakdown
- 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
- Click "Generate Barcode" or simply start typing for real-time preview
- Optionally expand "Customize Appearance" to adjust bar width, height, colors, and text options
- Download the barcode as PNG (high-resolution, 3x scale) or SVG (vector, infinitely scalable)
Batch Generation Mode
- Switch to the "Batch Generation" tab
- Enter barcode data with one barcode per line. Use the format:
value,value,FORMAT, orvalue,FORMAT,label - Alternatively, drag-and-drop or browse to upload a CSV or TXT file
- Click "Generate All Barcodes" to create all barcodes at once
- Download individual barcodes using the PNG/SVG buttons on each card
- 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:
- JsBarcode (v3.11.6) - License: MIT (Johan Lindell) - https://github.com/lindell/JsBarcode
References:
Tech Blog with curated related content
Web Tools Collection
Written by Hidekazu Konishi