EAN numbers and selling
EAN-13 and GTIN — how they differ and why it is confusing
GTIN is the number, EAN-13 is the way it is drawn in bars. Where the names GTIN-8, GTIN-12, GTIN-13 and GTIN-14 come from, and when you need which.
5 min read
The question "what is the difference between EAN and GTIN" keeps coming back, because in practice people use the two words interchangeably. The difference is simple, and it is worth getting straight once, because it puts everything else in order.
GTIN is a number. EAN-13 is the barcode the number is written in.
Just as a phone number is not the same thing as the scrap of paper it is written on. You can write the same number in pen, print it or show it on a screen — the number does not change.
One number, four lengths
GTIN, the Global Trade Item Number, comes in four lengths. The name tells you how many digits it has:
- GTIN-8 — eight digits, written as an EAN-8 barcode. For small packages that an EAN-13 would not fit on.
- GTIN-12 — twelve digits, written as a UPC-A barcode. Used mainly in the United States and Canada.
- GTIN-13 — thirteen digits, written as an EAN-13 barcode. This is the one you see on every product in a Polish shop.
- GTIN-14 — fourteen digits, written as an ITF-14 barcode or inside GS1-128. It marks an outer case, not a single product.
Hence the confusion. When somebody says "EAN code", they almost always mean a GTIN-13 written as an EAN-13. When an IT system asks for a "GTIN", it wants the digits alone, without the picture.
Why systems ask for a GTIN rather than an EAN
Because the lengths can be brought to one. A shorter number is padded with zeros on the left up to fourteen digits, and then they all look the same:
| Number | 14-digit form |
|---|---|
GTIN-8 96385074 | 00000096385074 |
GTIN-12 036000291452 | 00036000291452 |
GTIN-13 5901234123457 | 05901234123457 |
That way a database can hold one field of fixed length and not care which market a product comes from. If you have ever seen your thirteen-digit number with a zero in front — that is what it is, not a mistake.
What is inside the number
A GTIN-13 splits into three parts, although the boundary between them is not fixed:
- The company prefix — issued by GS1 and assigned to one business. The larger the pool of numbers a company has paid for, the shorter its prefix, because more room is left for its own numbers.
- The item reference — this part the company assigns itself, from the pool it was given.
- The check digit — the last one, calculated from the others.
The first three digits are sometimes called the "country prefix", but that name is misleading. They stand for the national GS1 organisation that issued the prefix to the company, not the country of production. A product whose number starts with 590 was registered by a company that is a member of GS1 Polska — the Polish GS1 organisation — but it could have been made in a factory anywhere. The reverse holds too: a Polish manufacturer can have a number with a quite different prefix.
The check digit
The last digit carries no information about the product. Its only job is to catch errors: it picks up every mistake in a single digit and most swaps of two neighbouring digits. Thanks to it, a scanner or a warehouse system rejects a number copied with a typo, instead of accepting it as some other existing product.
It is calculated the same way for GTIN-8, GTIN-12, GTIN-13 and GTIN-14, by the modulo 10 method. If you want to see the whole calculation step by step, there is a check digit calculator — it shows the weights, the products and the sum, not just a verdict.
Which barcode when
The choice of carrier depends on what you are marking, not on what you prefer:
- A product on a shop shelf — EAN-13. Retail tills are built around it.
- A small package an EAN-13 will not fit on — EAN-8, but GTIN-8 numbers are allocated separately and by nature there are few of them.
- An outer case — ITF-14 with a GTIN-14. It is printed straight onto corrugated board, which is rough, so the barcode is larger and has a frame.
- A pallet or a shipment — that is no longer a GTIN but an SSCC, the Serial Shipping Container Code, written in a GS1-128 barcode.
What a GTIN does not do
The number identifies the product line, not a particular item. Every bottle of the same juice in the same size has the same GTIN. To tell items apart you need a serial number, and that is written with a separate application identifier in a GS1-128 or GS1 DataMatrix barcode.
A change that affects what the buyer gets for their money needs a new number: another size, flavour or volume, another count of items in the pack. A change to the packaging artwork alone does not.
In short
- GTIN is the number, the barcode is how it is written. One does not replace the other.
- The four GTIN lengths describe four situations, not four standards.
- The first digits point to the GS1 organisation that issued the prefix, not the country of production.
- The check digit is there only to catch errors and is calculated the same way at every length.
Once you have a number, the EAN-13 generator draws a barcode from it at the size you give, and you can download it as SVG or PDF.
When you need a new number
This question comes back with every change to a product, and the answer comes down to one rule: you need a new number when the buyer gets something different for their money.
A new number:
- another volume, weight or count of items in the pack,
- another flavour, scent, colour or size,
- a change of ingredients that matters to the buyer, for example removing an allergen,
- a promotional bundle whose contents differ from the regular pack.
The same number:
- new packaging artwork with the same contents,
- a price change,
- a change of production plant,
- correcting a typo on the label.
Borderline cases are settled in favour of a new number. Two different products under one number cause ordering errors that cannot be untangled; one product under two numbers means, at worst, two entries in a catalogue.
Sources
Where we state a price, a date or a standard, we say where it came from and when we checked it. Sources change without our involvement.