Which barcode format should I use: EAN, UPC or Code 128?
Choose the format your scanning system requires: use EAN for most retail worldwide, UPC for retail in North America, and Code 128 for logistics, inventory and alphanumeric data. Enter the exact value in a barcode generator, validate check digits and length rules, print a test at production size, then scan it before a large batch.
A barcode generator is most useful when you understand both the input and the meaning of the output: you provide a product number or inventory identifier, and the result is a printable barcode that scanners read as that exact value. Barcodes are not interchangeable. The correct symbology depends on the system that will scan the code and the data it expects.
For the practical workflow, open the barcode generator and process your file or input directly on ExpTool.
Choose the symbology first
EAN and UPC are common in retail, while Code 128 is widely used for logistics and general alphanumeric data. Use the format required by the receiving system.
Validate the encoded value
A visually attractive barcode can still contain invalid data. Check digit requirements and length rules before printing a large batch.
Protect the quiet zone
Like QR codes, barcodes need clear space around the bars. Nearby graphics or text can interfere with scanning.
Print at an appropriate size
Very small bars can become unreadable after printing or photocopying. Test the physical output using the same scanner or environment used in production.
Keep a record of source data
Store the product or inventory identifiers used to generate each batch so a replacement can be reproduced accurately later.
Use the ExpTool workflow
Open the barcode generator tool, review its options, process your input and verify the result before sharing or publishing it.
Related ExpTool tools: barcode generator, QR code generator. Explore the full barcode tools collection for the next step.
The three formats explained
EAN-13 encodes 13 digits and is the standard retail barcode outside North America. Its structure includes a country or system prefix, a company and product number, and a final check digit that scanners use to catch misreads. UPC-A encodes 12 digits and plays the same role in the United States and Canada; most modern scanners read both formats, but retailers require the one their checkout system expects. Code 128 is the flexible workhorse: it encodes the full ASCII set, including letters, numbers and symbols, which makes it the right choice for warehouse labels, shipping codes and internal inventory identifiers where retail symbologies cannot work. Two-dimensional codes such as QR codes are a separate family: they store much more data and are scanned by cameras rather than laser scanners, so they do not replace a product barcode. For products sold through major retail chains, you also need an officially registered GS1 company prefix so your numbers are globally unique; codes generated for internal use do not require one.
Practical tips for better results
Before using Barcode Generator Guide: EAN, UPC and Code 128 Explained, check the original file or information carefully and decide what result you need. For regular workflows, keep your files organized and compare the result with the original after processing.
Worked example: labeling products for a market stall
A soap maker is selling at a weekend market and needs shelf labels with scannable prices. She opens ExpTool's barcode generator and chooses Code 128, since these labels are for her own stall rather than a retail checkout. She enters each product's SKU exactly as it appears in her inventory sheet, generates the codes, and prints them at a generous size with white space on both sides. Before the market opens, she scans each label with her phone and her point-of-sale scanner; one code fails because a SKU contained a typo, so she regenerates just that one. She saves the SKU list alongside the generated files, so next month's batch uses the same identifiers. Every scan at the stall reads on the first try.
Frequently asked questions
What is the difference between EAN and UPC?
EAN-13 uses 13 digits and is standard for retail outside North America; UPC-A uses 12 digits and is standard in the US and Canada. Most modern scanners read both, but a retailer will require the format their system expects.
What data can Code 128 encode?
Code 128 encodes the full ASCII set: letters, numbers and symbols. That makes it ideal for inventory IDs, warehouse labels and shipping codes where retail symbologies cannot work.
Do barcodes include a check digit?
EAN and UPC include a calculated check digit that catches typos and misreads. Most barcode generators add it automatically, but always verify it before printing a large batch.
Can I use a barcode I generate online on real products?
For internal inventory and labels, yes. For products sold through major retailers, you need an officially registered GS1 company prefix so your numbers are globally unique.
Why won't my barcode scan?
The usual causes are a wrong symbology, an invalid check digit or length, too-small print size, low contrast, or a cropped quiet zone. Validate the data, reprint at a larger size, and test with the actual scanner.
A barcode is only useful if the scanner understands it. Pick the symbology your system expects, validate the data, protect the quiet zone, and test the physical print. Get those four right and every scan will be a match.