Barcodes are everywhere — on product packaging, shipping labels, event tickets, library books, and hospital wristbands. But not all barcodes are the same. Different formats encode different data, support different characters, and are read by different scanners. Choosing the right one matters.
The Main Barcode Formats
- CODE128: The most versatile 1D format. Encodes any ASCII character — letters, numbers, symbols. Ideal for internal use, shipping labels, and asset tags.
- CODE39: Older but very widely supported. Encodes uppercase letters, digits, and a few symbols. Common in automotive, defence, and healthcare.
- EAN-13: The global standard for retail products. 13 digits — the first digits identify the country, followed by the manufacturer and product code, and a checksum.
- EAN-8: A shorter version of EAN-13 for small packaging where space is limited.
- UPC-A: The North American retail standard. 12 digits, essentially compatible with EAN-13 for US/Canada markets.
- UPC-E: Compact version of UPC-A for very small products like gum packs and cosmetics.
- ITF-14: Used on shipping containers and cartons. Always 14 digits, printed with thick bars for durability on corrugated cardboard.
- MSI: Used for inventory control and storage. Digits only. Common on warehouse shelves.
- Pharmacode: A pharmaceutical-specific format. Encodes a single number from 3 to 131070.
- Codabar: Used by libraries, blood banks and FedEx. Encodes digits and a few symbols.
Which Format Should You Use?
- Retail product for global market: EAN-13 (or UPC-A for US/Canada only).
- Internal inventory or asset tag: CODE128 — it encodes the most characters.
- Shipping carton: ITF-14 (needs 14 digits and a checksum).
- Library or event ticket: CODE39 or CODE128 depending on scanner support.
- Very small product: UPC-E or EAN-8.
- Warehouse shelf label: MSI (digits only).
Quiet Zones and Bar Width
Every barcode needs a "quiet zone" — empty space on the left and right of the bars. Without it, most scanners can't read the code. The standard is 10× the width of a single bar. Our generator includes quiet zones by default (you can toggle them off if needed, but for print you should keep them on).
Best Practices for Barcode Printing
- Use high contrast: Black bars on a white background is the safest combination. Avoid red bars on white — many laser scanners can't see red.
- Don't scale up too far: Barcodes should print between 80% and 200% of their nominal size. Anything outside that range may become unreadable.
- Print at 300 DPI minimum: Higher resolution gives crisper bars and fewer scan errors.
- Check with a real scanner: Always test your barcode before printing hundreds of labels.
- Use SVG for print: SVG is vector-based and stays crisp at any size. PNG is fine for screens, but SVG is better for anything that will be printed.
Barcode vs QR Code
Barcodes are 1D — they encode data in a single line of bars. QR codes are 2D — they encode data in a grid and can hold far more information (URLs, text, contact cards). If you need to store just a number or short string, use a barcode. If you need to store a URL or large amount of text, use a QR code instead.
Privacy and Security
Many online barcode generators send your data to a server, which can be a problem for confidential product codes, tracking numbers or internal asset tags. ToolBajar's Barcode Generator builds everything locally in your browser — your data, your formats and your downloads never leave your device.