Barcode Generator

Barcode Generator

Updated August 17, 2026

Barcode generator online. Create CODE128, EAN-13, UPC, CODE39, and other 1D barcodes. Download SVG or PNG in your browser.

Features

  • Generate CODE128, CODE39, EAN-13, EAN-8, UPC-A, ITF-14, MSI, Pharmacode, and Codabar
  • Live SVG preview with bar width, height, and colors
  • Checksum-aware length checks for retail formats
  • Download SVG or PNG, or copy the encoded value
  • Runs in the browser with JsBarcode

Common Use Cases

  • Warehouse labels and internal SKUs (CODE128 / CODE39)
  • Retail product codes (EAN-13, UPC-A)
  • Shipping carton codes (ITF-14)
  • Quick test barcodes for a scanner you are wiring up

1D barcodes vs QR codes

1D barcodes encode data as a sequence of bars and spaces along one axis. They hold less data than a QR code but remain the standard on products, shelves, and shipping labels because laser scanners read them quickly.

EAN-13 and UPC-A are numeric retail codes with a check digit. CODE128 can hold mixed letters and digits, which is why warehouses like it. This tool validates length and character set before drawing so you do not print an illegal symbol.

Examples

Valid - CODE128 SKU
ONDEV-12345
Valid - EAN-13
5901234123457
Invalid - EAN-13 with too few digits
12345

Frequently Asked Questions

Which format should I use?

Use CODE128 for internal labels with letters. Use EAN-13 or UPC-A only when you have a real GS1 number. Do not invent retail codes for products you sell publicly.

Does the tool add the check digit?

JsBarcode adds the check digit when you enter 12 digits for EAN-13 or 11 for UPC-A. If you paste a full code including the check digit, it is validated as-is.

Can a phone scan these?

Yes, most camera apps read CODE128, EAN, and UPC. Dedicated hardware scanners are still more reliable in warehouses.

Tips

  • Keep bars tall enough for handheld scanners — 1 inch is a safe starting point for labels.
  • Do not stretch a barcode in a design tool; scale SVG uniformly.
  • Leave quiet space on the left and right of the bars.

Common Mistakes

Using EAN-13 for a made-up number that will collide with a real product
Printing CODE39 in lowercase (this tool uppercases it)
Shrinking bars so much that a laser sees them as a single blob