QR
EAN‑13, UPC‑A or Code 128? Which barcode you need and when you need GS1
Selling a product in shops, labelling stock in a warehouse and tracking office equipment all use barcodes, but not the same kind. Picking the right type, and knowing whether you need officially registered numbers, saves a reprint later.
Open the toolThe common types at a glance
| Type | Holds | Typical use |
|---|---|---|
| EAN‑13 | 13 digits | Retail products almost everywhere outside North America |
| UPC‑A | 12 digits | Retail products in the US and Canada |
| EAN‑8 | 8 digits | Very small packages where EAN‑13 doesn't fit |
| ITF‑14 | 14 digits | Outer cartons and cases in shipping |
| Code 128 | Letters, digits, symbols | Shipping labels, inventory, internal tracking |
| Code 39 | A–Z, 0–9, a few symbols | Older industrial and government systems |
Retail barcodes need GS1 numbers
EAN and UPC numbers are not random. Each one identifies a specific product from a specific company, and the first part (the company prefix) is licensed by GS1, the non-profit that runs the system, through its office in your country. Supermarkets, chain stores and large online marketplaces check product numbers against GS1 records.
A barcode generator, including this one, can draw any valid number, but it cannot give you the right to use it. If you plan to sell through retailers, get your numbers from GS1 first and then draw the barcodes.
When you don't need GS1
- Stock labels and shelf locations in your own warehouse.
- Asset tags for laptops, tools and furniture.
- Library books, archive boxes and file folders.
- Event tickets and membership cards scanned by your own system.
- Products sold only in your own shop with your own till system.
For these, Code 128 is usually the best choice: it accepts letters and numbers, so a label can read "BOX-2026-0042".
What the check digit does
The last digit of an EAN or UPC is calculated from the others. When a scanner reads the code, it does the same calculation; if the results don't match, it knows it misread a bar and tries again. The 315tools generator calculates the check digit for you if you leave it off, and tells you if the one you typed is wrong, which is a quick way to catch a typo in a product number.
Printing tips
- Keep empty space on both sides of the bars (the quiet zone); scanners need it.
- Print black bars on a white or very light background.
- Don't shrink retail barcodes too much; most retailers specify a minimum size.
- Download SVG for label printers and packaging artwork so the bars stay sharp.
- Test a printed label with the scanner that will actually be used.
Questions
- Can a phone scan these barcodes?
- Many barcode scanner apps can. The built-in camera on many phones is designed for QR codes and reads one-dimensional barcodes less reliably.
- What's the difference between a barcode and a QR code?
- A barcode stores a short number or code in one direction of bars. A QR code is two-dimensional and can store links, text, Wi‑Fi details or contacts, and still scan when partly damaged.