What is a GTIN?
What a GTIN identifies
GS1 US describes a GTIN as a GS1 identification key used to identify a trade item: a product or service that is priced, ordered or invoiced. Each variant gets its own number, so a 500 ml and a 1 litre bottle of the same drink have different GTINs, and so does a case of 12. Retailers, marketplaces and distributors use it to look up the item in their systems.
A GTIN is built from a GS1 Company Prefix licensed to the brand owner, an item reference the company assigns, and a check digit. GS1 US also sells single GTINs for companies that need only a few numbers and no prefix.
The four formats
The digits do not change when a GTIN is padded: 4006381333931 and 04006381333931 are the same product.
- GTIN-12: 12 digits, printed as a UPC-A barcode. GS1 US notes it is used mainly in North America at point of sale.
- GTIN-13: 13 digits, printed as an EAN-13 barcode, used at point of sale outside North America.
- GTIN-8: 8 digits, printed as EAN-8, for very small packs.
- GTIN-14: 14 digits, used on cases and cartons, printed as ITF-14 or GS1-128.
- Any GTIN can be written as 14 digits by adding zeros at the front, which is how databases and GS1 Digital Link store them.
How the check digit is calculated
The last digit catches typing and scanning errors. Starting from the digit just left of the check digit and moving left, multiply the digits alternately by 3 and 1, add the results, and choose the check digit that brings the total up to the next multiple of 10. Wikipedia's EAN example: for 400638133393, the weighted sum is 89, so the check digit is 1 and the full GTIN-13 is 4006381333931.
A valid check digit shows the number is well formed, not that it belongs to anyone. Only the GS1 registry says who licensed a prefix.
GTINs in QR codes and BN Shortener
A GS1 Digital Link puts the GTIN in a web address after /01/, written as 14 digits, so one QR code on a pack can work as a product link for shoppers and a product identifier for scanners. Batch, serial and expiry values follow as further segments, such as /10/ for a batch.
In BN Shortener you give a short link a GTIN (GTIN-8, 12, 13 or 14, check digit verified) and it answers at b1.lc/code/01/ plus the GTIN-14, or in the standard form yourdomain/01/GTIN-14 on your own domain. Batch, serial and expiry qualifiers are accepted but ignored: routing and counts are per GTIN. BN does not check GTINs against the GS1 registry. Build the URL with the free GS1 Digital Link generator, and read GS1 Digital Link QR codes for the full picture.
Related: GS1 Digital Link, /tools/gs1-digital-link-generator/, QR code, Data Matrix code
Sources
- GS1 US: What is a GTIN?, checked 2026-10-24
- Wikipedia: Global Trade Item Number, checked 2026-10-24
- Wikipedia: International Article Number (EAN), check digit, checked 2026-10-24
Questions
Is a GTIN the same as a UPC or EAN?
The GTIN is the number; UPC-A and EAN-13 are barcode formats that carry it. A UPC is a GTIN-12 and an EAN is usually a GTIN-13.
Where do I get a GTIN?
From GS1, through your country's GS1 member organization, either by licensing a Company Prefix or, in some countries such as the US, by buying single GTINs.
How do I check if a GTIN is valid?
Recalculate the check digit with the 3 and 1 weights. To see who owns it, look it up in GS1's registry.
Why does my 13-digit GTIN have a 0 in front in the URL?
GS1 Digital Link writes every GTIN as 14 digits, padding shorter ones with leading zeros. The product is the same.
Do I need a new GTIN for every size or pack?
Yes. Each variant that is sold or ordered separately, including a case, needs its own GTIN.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.