Utilo

Barcode Types: EAN, GTIN & Retail

Product and retail barcodes explained: EAN-13 (GTIN-13), UPC vs EAN, EAN-14 (GTIN-14), GS1-128 (EAN-128), and which barcode grocery stores scan.

· 8 min read

Barcodes look alike to most people — black bars on a white label — but dozens of different symbologies exist, each designed for specific data, industries and printing conditions. Choosing the wrong one can mean retailers rejecting your products, warehouse scanners failing to read cartons or labels that become unreadable after a few days in transit. This guide explains the barcodes you are most likely to encounter, what they can store and where each one belongs. It also covers the retail questions that a bare symbology list skips: which barcode a grocery store scans, how UPC differs from EAN, and what EAN-14, GTIN-14 and EAN-128 actually are.

Linear (1D) versus 2D barcodes

Linear barcodes encode data in the widths of parallel bars and spaces. They are read by laser or camera scanners along a single line, are cheap to print and have decades of infrastructure built around them. Capacity is small: usually up to 20–40 characters.

2D barcodes such as QR codes and Data Matrix store data in a grid of modules, holding hundreds or thousands of characters and tolerating damage through error correction. They require camera-based (imaging) scanners.

Retail barcodes: EAN and UPC

EAN-13

The European Article Number, now officially GTIN-13, is the standard product barcode almost everywhere except North America. It encodes exactly 13 digits:

  • The first digits form the GS1 company prefix, assigned to a brand owner by their national GS1 organisation.
  • The following digits identify the specific product.
  • The last digit is a check digit calculated from the others.

The prefix's first two or three digits historically indicate the GS1 member organisation that issued it (for example 400–440 for Germany, 690–699 for China), not the country where the product was made.

UPC-A

The Universal Product Code dominates in the United States and Canada. It encodes 12 digits and is effectively an EAN-13 with a leading zero; modern point-of-sale systems worldwide read both.

EAN-8 and UPC-E

Compressed versions for small packages such as chewing gum or cosmetics. EAN-8 numbers are allocated separately by GS1 and are scarce; UPC-E compresses certain UPC-A numbers by removing zeros.

Product barcodes and retail barcodes

A product barcode is the mark a checkout scanner reads so the till can look up a price. The bars do not store the product name or the price. They store a number, almost always a GTIN, and the store's own system maps that number to a name, a tax class and today's price. That is why two shops can sell the same bottle at different prices under one barcode.

Retail barcodes, product barcodes and the strings people call barcode numbers are this same pair: a GS1 identifier plus a symbol a scanner can read. On an item a customer picks off a shelf, that symbol is EAN-13 or UPC-A.

UPC vs EAN

UPC-A is the 12-digit symbol on products sold in the United States and Canada. EAN-13 is the 13-digit symbol used in Europe, Latin America, Asia, Africa and Oceania, and on many North American products as well. An EAN-13 that starts with 0 is the same identifier as the 12-digit UPC that follows it, and a current grocery scanner reads both.

You do not choose between them for style. You print the symbol that matches the GTIN your GS1 membership issued and the market you are packing for. A US brand shipping into EU grocery prints EAN-13. A European brand shipping into US grocery often prints both, or a single EAN-13 that US tills already accept.

EAN-14 and GTIN-14

GTIN-14, still widely called EAN-14, identifies a packaging level rather than the single item on the shelf. It has 14 digits. The first is an indicator from 1 to 8 that says which level this is, such as a case or a carton. The next twelve digits come from the consumer unit's GTIN without that unit's check digit, and a new check digit is calculated at the end. Indicator 0 means the package is the same item as the unit inside.

You will see a GTIN-14 on outer cases, usually printed as an ITF-14 barcode, and inside GS1-128 labels under the (01) application identifier. It is not a second product number for the unit the customer buys. Inventing a 14-digit code, or reusing the shelf item's EAN-13 with an extra digit typed by hand, produces a number no retailer can match.

Which barcode do grocery stores use?

Supermarkets and other grocery stores scan the consumer-unit barcode: EAN-13 in most of the world, UPC-A in the US and Canada. Both are GTINs. The warehouse receiving a case scans a different symbol on the outer carton, usually ITF-14 carrying a GTIN-14, or a GS1-128 label when the carton also has to show a batch or an expiry date. The older name for that logistics symbol is EAN-128.

The laser or camera at the till is built for EAN-13 and UPC-A. If you are putting a product on a grocery shelf, that is the barcode you need, and the number has to come from GS1. A Code 128 you invent will not scan as a retail product. You can preview EAN-13, UPC-A, ITF-14 and Code 128 before printing with the barcode generator.

How check digits work

For EAN-13, multiply the first 12 digits alternately by 1 and 3, sum the results, and choose the digit that brings the total to the next multiple of 10. For 400638133393?:

4×1 + 0×3 + 0×1 + 6×3 + 3×1 + 8×3 + 1×1 + 3×3 + 3×1 + 3×3 + 9×1 + 3×3 = 89
check digit = 90 − 89 = 1  →  4006381333931

The check digit catches nearly all single-digit errors and most swapped adjacent digits. A barcode generator that validates check digits prevents printing labels that scanners will reject.

Getting retail numbers

You cannot invent EAN or UPC numbers for products sold through retailers. They must come from your GS1 membership, which links the numbers to your company in global databases used by retailers and marketplaces. Numbers bought from unofficial resellers are often rejected by major retailers and marketplaces because the registered owner does not match your brand.

Logistics barcodes

ITF-14

Interleaved 2 of 5 encoding a 14-digit GTIN for outer cartons and cases. Its wide bars tolerate printing directly on corrugated cardboard, where ink spreads. You will usually see it surrounded by a thick bearer bar that prevents partial scans.

GS1-128 (EAN-128)

GS1-128, formerly called EAN-128, is Code 128 with GS1 application identifiers in front of each field. The parentheses printed under the bars are not encoded. They only tell a person which field is which: (01) is the GTIN, (10) the batch or lot, (17) the expiry date as YYMMDD, and (00) the serial shipping container code. A grocery warehouse uses this when a plain product number is not enough, because the receiver needs the lot and the sell-by date as well as the item. It is a logistics barcode, not the one on the consumer unit. That remains EAN-13 or UPC-A. The same barcode generator can draw a plain Code 128; a full GS1-128 label also needs the application identifiers in the data, in the order your trading partner specified.

General-purpose barcodes

Code 128

The workhorse for internal use: asset tags, shipping labels, tickets, library systems and manufacturing. It encodes all 128 ASCII characters, switches automatically between character sets to stay compact, and includes a mandatory checksum. For alphanumeric data it is significantly denser than Code 39. If you need a linear barcode for your own system and have no industry requirement, Code 128 is almost always the right answer.

Code 39

One of the oldest alphanumeric symbologies. It supports uppercase letters, digits and a few symbols, is self-checking without a check digit and is easy to decode. Its low density makes labels wide. It remains common in the automotive and defence industries and in older systems.

Codabar

Developed in the 1970s and still used by libraries, blood banks and some courier systems. It encodes digits and a handful of symbols, with start and stop characters A–D.

MSI Plessey and Pharmacode

MSI is used mainly for warehouse shelf labelling. Pharmacode encodes a single integer for packaging control in the pharmaceutical industry, verifying that the right leaflet or box is used on a production line. Neither is suitable for general data.

2D barcodes

QR code

Designed by Denso Wave in 1994 for tracking automotive parts, now the universal consumer 2D code for URLs, payments, tickets and Wi-Fi credentials. Best practices for size, contrast and error correction are covered in our QR code guide.

Data Matrix

Compact and highly reliable at very small sizes, Data Matrix is used to mark electronic components, surgical instruments and pharmaceuticals; regulations such as the EU Falsified Medicines Directive require it on medicine packs.

PDF417

A stacked linear code that holds about 1 KB of data. You will find it on US driver's licences, boarding passes and shipping documents.

The retail industry is moving towards 2D codes at checkout through the GS1 "Sunrise 2027" initiative. A single QR code in GS1 Digital Link format can carry the GTIN for the till plus batch, expiry and a link to product information for consumers. EAN/UPC barcodes will coexist for years, but new packaging increasingly carries both.

Choosing the right barcode

Need Recommended
Product sold in retail stores EAN-13 or UPC-A from GS1
Outer carton of retail products ITF-14 or GS1-128
Internal asset tags, tickets, IDs Code 128
Lots of data or a URL QR code
Tiny parts, high reliability Data Matrix
Legacy system compatibility Whatever the system already uses (Code 39, Codabar)

Printing tips

  • Print at 100% scale. EAN-13 has a nominal size of 37.29 × 25.93 mm; you can scale between 80% and 200%, but shrinking below that or truncating the bar height reduces reliability.
  • Use vector output. SVG or PDF keeps bar edges exact; scaling a low-resolution PNG makes bars uneven.
  • Keep quiet zones. Linear barcodes need clear space on both sides, typically ten times the narrowest bar width.
  • Choose colours carefully. Laser scanners use red light, so red, orange and yellow bars disappear. Dark bars on a light background are safest.
  • Verify before mass printing. Scan proofs with the actual scanners used at the destination — retail POS, warehouse handhelds or phone apps.

Summary

Use GS1-issued EAN-13 or UPC-A numbers for retail products, ITF-14 or GS1-128 for logistics, Code 128 for your own systems and QR or Data Matrix when you need more data or smaller codes. Validate check digits, print at proper size with quiet zones, and test with the scanners your partners actually use.

Related guides