The reference desk for online sellers
Codes & Standards

UPC vs EAN vs GTIN: Barcodes for Ecommerce

What GTIN, UPC and EAN actually mean, how many digits each has, which barcode carries them, and where retail POS ends and case logistics begins.

Reference · July 26, 2026 · 3 min read

A plain white product hang tag with an abstract black striped pattern on a beige surface
Photo: Johan Larsson (BY) via Openverse

The names look like three competing standards. They are not. GTIN is the single identifier GS1 issues, and UPC and EAN are just GTINs of a particular length. Get that straight and the rest is arithmetic.

Data checked: July 22, 2026 against GS1 sources listed below.

The four GTIN lengths

Data structureDigitsBarcode symbologyWhere it is used
GTIN-8 (EAN-8)8EAN-8Small retail items, scanned at POS
GTIN-12 (UPC-A)12UPC-ARetail POS, mostly North America
GTIN-13 (EAN-13)13EAN-13Retail POS, Europe and rest of world
GTIN-1414ITF-14, GS1-128Cases and cartons, not POS

UPC and EAN are the barcodes you see on a product; GTIN is the number printed under the bars. A GTIN-12 fits inside a UPC-A barcode, a GTIN-13 fits inside an EAN-13, and so on.

Digit length by GTIN structure GTIN-8 8 GTIN-12 (UPC-A) 12 GTIN-13 (EAN-13) 13 GTIN-14 14 Bar length scaled to digit count. Source: GS1 GTIN data structures. Checked 2026-07-22.

How a GTIN is built

Every GTIN is the same three parts, right-aligned to its length:

PartWhat it is
GS1 company prefixIssued by GS1, unique to your company
Item referenceAssigned by you, one per product
Check digitOne digit, calculated by modulo 10, catches scan errors

A GTIN-14 adds one more part at the very front: an indicator digit that marks the packaging level, for example a single unit versus a case of twelve. That is the only structural difference between a retail GTIN and a case GTIN.

Retail POS vs case logistics

LevelIdentifierBarcodeScanned where
Single retail unitGTIN-8, 12 or 13EAN-8, UPC-A, EAN-13Checkout
Case or cartonGTIN-14ITF-14, GS1-128Warehouse, receiving

A checkout scanner expects a retail GTIN. Point it at a GTIN-14 case code and it will refuse the item, because that number identifies the box, not the product inside.

What this means for a store

Frequently asked questions

Is a UPC the same as a GTIN?

A UPC is a GTIN. UPC-A is the 12-digit form of the GTIN, also written GTIN-12. GTIN is the general term GS1 uses for all product numbers; UPC and EAN are specific lengths of it.

What is the difference between UPC and EAN?

Length and region. UPC-A is 12 digits and is used mostly in North America. EAN-13 is 13 digits and is used across Europe and the rest of the world. An EAN-13 is a UPC-A with one extra leading digit, so most scanners read both.

When do I need a GTIN-14?

For cases, cartons and pallets, not individual retail units. A GTIN-14 adds an indicator digit to the front to mark the packaging level. It is carried by ITF-14 or GS1-128 barcodes and is not scanned at a checkout.

Where does GS1 fit in?

GS1 is the organization that issues the company prefix at the start of every GTIN. That prefix is what makes your number unique worldwide, which is why marketplaces and product feeds ask for a real GTIN rather than one you invent.

Sources & data

  1. What is the difference between a GS1 GTIN, a barcode, an EAN and a UPC, GS1 support portal, checked 2026-07-22
  2. What is a GTIN, GS1 US, checked 2026-07-22
  3. GTIN data structures (GTIN-8, 12, 13, 14 and their barcodes), GS1 Standards Information, checked 2026-07-22
Cite this reference: Ecom Almanac (2026). “UPC vs EAN vs GTIN: Barcodes for Ecommerce.” https://ecomalmanac.com/codes/upc-vs-ean-vs-gtin-barcodes-for-ecommerce/