GTIN, EAN, UPC: three names, one number – explained simply (2026)
It's on every pack in the supermarket, under the barcode, usually thirteen digits long: the product number. Some call it EAN, others UPC; in the trade it's called GTIN. Almost always, they mean the same thing.
With QR codes arriving at the checkout, the number matters again. The new code on the pack has to contain exactly this number, or the till won't know what it's scanning. Time to untangle the naming mess once and for all.

Key takeaways
- GTIN is the umbrella term. EAN and UPC are names for specific GTIN lengths.
- There are four lengths: GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN) and GTIN-14 (cases).
- The last digit is a check digit, so a typo is caught immediately.
- In a QR code with GS1 Digital Link, the GTIN always appears as 14 digits after
/01/.- You get your GTIN from GS1, not from your QR code provider.
The umbrella term: GTIN
GTIN stands for Global Trade Item Number. It is issued through GS1, the organisation behind retail barcodes. According to GS1 there are four formats:
| Format | Also known as | Used for |
|---|---|---|
| GTIN-13 | EAN, JAN | single items, mainly in Europe and worldwide |
| GTIN-12 | UPC | single items, mainly in North America |
| GTIN-8 | EAN-8 | very small items, e.g. cosmetics or confectionery |
| GTIN-14 | – | cases and packaging units |
Books, by the way, have an ISBN, which also has 13 digits and fits into the same system.
The neat part: all four lengths can be brought to 14 digits by adding leading zeros. The 13-digit GTIN 9506000134352 becomes the GTIN-14 09506000134352 (an example number of the kind used in GS1 documents). Same number, uniform format – exactly what QR codes, databases and interfaces need.
Where does "EAN" come from?
EAN originally stood for European Article Number. The name stuck so firmly that, especially in Europe, almost everyone still says "EAN" when they mean the 13-digit GTIN. Not wrong, just imprecise.
Back in 2009 I wrote on the Mobile-Tagging blog about Barcoo (in German), a Berlin start-up that let you scan EAN codes in the supermarket with your phone – adding at the time "worldwide name: GTIN". Not much of the confusion has changed since.
How the check digit works
The last digit of every GTIN isn't product information but a check digit, calculated from all the others. If someone types a digit wrong or swaps two, the check digit no longer matches – and the number is flagged at once.
Here's how, using 200123456789 + check digit:
- Starting from the right, multiply every digit alternately by 3 and by 1.
- Add everything up. Here that gives 97.
- The difference to the next multiple of ten is the check digit: 100 − 97 = 3.
So the full number is 2001234567893. I chose a number starting with 20 on purpose: the range 200 to 299 is reserved for restricted circulation numbers, for example scale labels in your own store. It is not a real GTIN – but ideal for practising, because it belongs to no brand.
The GTIN in a QR code
Today the GTIN lives in the barcode. In future it will also live in the QR code – via GS1 Digital Link. The number is built into an ordinary web address:
https://id.brand.com/01/09506000134352
The 01 says: a GTIN follows. Then come the 14 digits. The phone opens the web page; the till reads the number. Batch (/10/) and serial number (/21/) can optionally follow – handy for recalls or authenticity checks.
That's why the clean 14-digit format matters. A 13-digit EAN without the leading zero after /01/ is a mistake you'll later find on every printed pack.
The most common mistakes
The most common mistakes are pretty unspectacular:
- Made-up numbers. A GTIN must be licensed through GS1. An invented number may belong to another company.
- Wrong check digit. One typo in the spreadsheet and a thousand packs carry an invalid number.
- Missing leading zero. In a Digital Link QR code the GTIN must have 14 digits.
- Internal numbers in the QR code. Numbers from the 200–299 range are not GTINs. According to GS1 they must not be encoded with the identifier
01– so they don't belong after/01/. - One number for several variants. Every size, colour or fill quantity needs its own GTIN.
What you should do now
- Collect your GTINs. Which products and variants have which number? Usually it's already in your shop system – in Shopify, for example, in the barcode field.
- Check the check digits. Run every number through a check once.
- Pad to 14 digits. Use leading zeros for Digital Link and databases.
- Request missing numbers from GS1. Don't invent them, don't buy them from third parties.
Our verdict
GTIN, EAN, UPC – three names for a system that has worked for decades. The only new thing is where the number lives: soon not just in the barcode but in the QR code too. At Tagvio we check the check digit when you create a code, pad the number to 14 digits automatically and build the Digital Link code from it. You bring the GTIN yourself – it is only issued through GS1.
The number stays the same. Only the code around it gets smarter.
Frequently asked questions
Is an EAN the same as a GTIN?
Almost. EAN is the common name for the 13-digit GTIN-13. GTIN is the umbrella term for all four lengths.
What's the difference between EAN and UPC?
The UPC has 12 digits and is mainly used in North America; the EAN has 13 and is common in the rest of the world. Both are GTINs.
What is a GTIN-14 used for?
For cases and packaging units. Also, every GTIN is written as a 14-digit number in a QR code with GS1 Digital Link.
Can I make up my own GTIN?
No. GTINs are licensed through GS1. Numbers starting with 200 to 299 are reserved for restricted use and are not GTINs.
How do I calculate a GTIN check digit?
Multiply the digits from the right alternately by 3 and 1, add everything up; the difference to the next multiple of ten is the check digit.
Sources: GS1, What is the difference between a GS1 GTIN, a barcode, an EAN and a UPC?; GS1, GTIN Executive Summary; GS1 UK, Which barcode should I use?; GS1, GS1 Prefixes; GS1, GSCN 23-006: Restricted Circulation Numbers; Mobile-Tagging, Barcoo – 1D Barcode Tagging (7 Apr 2009, in German).