What is Barcode Generator?

Barcode Generator turns text or numbers into scannable barcodes in Code 128, EAN-13, UPC-A, and other formats. Use them for inventory tracking, product labels, or shipping.

Powered by JsBarcode right on the page, the tool covers Code 128 (any text), EAN-13 (retail), UPC-A (North American retail), EAN-8 (small packages), Code 39 (asset tags), ITF-14 (shipping cartons), and Pharmacode (medical packaging). Each format validates its own input, with wrong length or characters giving an inline error before render. Adjust bar width (1-5 px), height, and text size, recolor bars and background, rotate the output, and export single barcodes as PNG, JPEG, or SVG. Batch mode handles pasted lists, CSV uploads, and serial sequences, exporting either a ZIP of SVGs or an A4 label sheet PDF with 30 labels per page.

How to use

  1. Select the barcode format you need (Code 128 for general text, EAN-13 for retail products, etc.).
  2. Enter the data to encode. Input is validated against the selected format automatically.
  3. Customize the display (width, height, text size, colors) and download the barcode as PNG, JPEG, or SVG. In batch mode, export a ZIP of SVGs or a print-ready PDF label sheet.

When to use

  • Generating asset labels for laptops, tools, or library books that a phone can scan.
  • Printing EAN-13 codes for a small product line before sending artwork to the packaging supplier.
  • Producing shipping carton labels (ITF-14) in bulk for a Shopify or Etsy fulfilment run.

Result

Generate an EAN-13 barcode for a product: enter '5901234123457', select EAN-13 format, and get a standard retail barcode ready for product packaging.

FAQ

Which format should I use for what?
Code 128 if you need any text (orders, tracking numbers). EAN-13 for retail outside the US, UPC-A for the US. Code 39 for industrial asset tags. ITF-14 for outer cartons. Pharmacode for pharmacy packaging.
Do I need to register a number with GS1 to use these barcodes?
For real retail sale (EAN-13, UPC-A), yes — every product needs a GS1-assigned prefix so it's globally unique. For internal tracking, asset tags, or shipping cartons, no — pick any unused number range yourself.
Why does my barcode show 'invalid data' for the chosen format?
Each format has strict rules: EAN-13 needs exactly 12 or 13 digits, UPC-A needs 11 or 12, Code 39 only uppercase A-Z, 0-9, and a few symbols. The hint under the format selector lists the exact rule, and the check digit auto-calculates when needed.
How small can I print a barcode and still have it scan?
EAN-13 has a minimum 'X-dimension' of 0.264 mm per bar in the GS1 spec — at 100% magnification that's roughly 37 mm wide. Go below 80% and supermarket scanners often refuse. For internal use, indoor scanners read smaller, but always test before printing a batch.
Should I export as SVG or PNG for printing?
SVG, every time. Barcodes are line art; SVG stays crisp at any print size and the printer's RIP rasterises it cleanly. PNG works for screens or labels generated on demand, but at small print sizes the bars can soften and miss scans.

Related Tools