Sunrise 2027: checkouts are switching to 2D codes – is your packaging ready?Learn more →
Free tools › GTIN check digit calculator

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.

7, 11, 12 or 13 digits → calculate the check digit · 8, 12, 13 or 14 digits → check a complete number

Try:

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:

  1. Starting from the right (without the check digit), multiply the digits alternately by 3 and 1.
  2. Add up the results.
  3. The check digit is the number you need to add to reach the next multiple of 10.
Digit950600013435?
Weight×1×3×1×3×1×3×1×3×1×3×1×3
Product9150180003312315

Sum: 78. Next multiple of 10: 80. Check digit: 2 → 9506000134352

GTIN-8, -12, -13 and -14 – what's the difference?

GTIN-8

EAN-8

For very small packs with little room for a barcode.

GTIN-12

UPC-A

The classic in the USA and Canada. With a leading zero it becomes a GTIN-13.

GTIN-13

EAN-13

The most common product number in Europe and most of the world.

GTIN-14

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:

PrefixWhat it isIn Tagvio
200–299In-store numbers, e.g. scale labels with weight or priceRejected
020–029, 040–049 (UPC 2…, 4…)Restricted circulation within a region or companyRejected
GTIN-8 starting with 0 or 2Reserved for internal useRejected
977ISSN – newspapers and magazinesAccepted
978, 979ISBN – booksAccepted
980–984, 99Refund receipts and couponsAccepted, but not meant for products
FAQ

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.