Barcode Generator
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
ONDEV-12345590123412345712345Frequently Asked Questions
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.
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.
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.