GTIN check digit calculator
Calculate the check digit of an EAN-13, UPC-A, GTIN-8 or GTIN-14 – or paste a complete number to check it. You also get the GTIN-14 for GS1 Digital Link and a warning for numbers that don't belong on a product.
Runs in your browser – nothing you enter is sent to a server.
How the check digit is calculated
The last digit of every GTIN is a check digit. It's calculated from the other digits, so a scanner or a system can catch a mistyped or misread number. The rule is the same for all lengths:
- Starting from the right (without the check digit), multiply the digits alternately by 3 and 1.
- Add up the results.
- The check digit is the number you need to add to reach the next multiple of 10.
| Digit | 9 | 5 | 0 | 6 | 0 | 0 | 0 | 1 | 3 | 4 | 3 | 5 | ? |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 | |
| Product | 9 | 15 | 0 | 18 | 0 | 0 | 0 | 3 | 3 | 12 | 3 | 15 |
Sum: 78. Next multiple of 10: 80. Check digit: 2 → 9506000134352
GTIN-8, -12, -13 and -14 – what's the difference?
EAN-8
For very small packs with little room for a barcode.
UPC-A
The classic in the USA and Canada. With a leading zero it becomes a GTIN-13.
EAN-13
The most common product number in Europe and most of the world.
ITF-14 / GS1-128
For cartons and cases (first digit = packaging level) – and the 14-digit form used in GS1 Digital Link, with leading zeros.
Number ranges to watch out for
A valid check digit only says the number is well formed. Some ranges aren't meant for products in trade:
| Prefix | What it is | In Tagvio |
|---|---|---|
| 200–299 | In-store numbers, e.g. scale labels with weight or price | Rejected |
| 020–029, 040–049 (UPC 2…, 4…) | Restricted circulation within a region or company | Rejected |
| GTIN-8 starting with 0 or 2 | Reserved for internal use | Rejected |
| 977 | ISSN – newspapers and magazines | Accepted |
| 978, 979 | ISBN – books | Accepted |
| 980–984, 99 | Refund receipts and coupons | Accepted, but not meant for products |
GTIN check digit calculator
What is a GTIN check digit?
The last digit of a GTIN. It's calculated from all other digits with alternating weights of 3 and 1. If a single digit is mistyped, the check digit no longer matches – which is how scanners and systems catch errors.
Are GTIN, EAN and UPC the same thing?
Almost. GTIN is the umbrella term; EAN-13 and UPC-A are names for the 13- and 12-digit versions. The details are in our article <a href="/blog/gtin-ean-upc-difference/">GTIN, EAN, UPC: three names, one number</a>.
Why does GS1 Digital Link use 14 digits?
GTIN-14 is the common format for all lengths: shorter GTINs are padded with leading zeros. 4006381333931 and 04006381333931 are the same product.
Where do I get a GTIN?
From the GS1 organisation in your country, which licenses a company prefix to your business. Tagvio never sells or assigns GTINs – you bring your own. A correct check digit doesn't prove that a number has been assigned to you.
Can I use numbers starting with 2?
Only inside your own shop or system, e.g. for scale labels. They aren't GTINs for trade and must not be used in a GS1 Digital Link code – Tagvio rejects them for GTIN codes.
Is my number stored?
No. The calculator runs entirely in your browser; nothing is sent to us or anyone else.
Give every product a voice.
Free plan forever. No credit card. Early access: we activate new accounts within one working day.