Labels that pass at the dock
ES

GTIN Check Digit Calculator

Calculate or validate the check digit for any GTIN-14 (case code), GTIN-13 (EAN), or GTIN-12 (UPC-A) — free and instant.

Enter your GTIN digits above. With 11, 12 or 13 digits the check digit is calculated; with 12, 13 or 14 digits the complete code is validated.

How the GTIN check digit works

Every GTIN — whether it's a 12-digit UPC-A on a retail item, a 13-digit EAN, or a 14-digit case code in a GS1-128 barcode — ends with a check digit computed by the GS1 Mod-10 algorithm. Reading the number right to left and starting with the digit before the check digit, each digit is multiplied alternately by 3 and 1; the results are summed, and the check digit is the amount needed to reach the next multiple of ten. Scanners and receiving systems use it to catch typos and misreads: a case with a wrong check digit will fail validation at the distribution center.

GTIN-14 and produce case labels

For PTI produce case labels, the GTIN-14 is built from an indicator digit (the packaging level, usually 1 for a case), your GS1 company prefix and item reference, and the check digit. GTINs are licensed through GS1; this calculator validates and computes check digits but cannot issue GTINs.

Frequently asked questions

What is a GTIN check digit?

The GTIN check digit is the last digit of a GTIN-12 (UPC-A), GTIN-13 (EAN), or GTIN-14 (case code). It's calculated from the other digits using the GS1 Mod-10 algorithm and lets scanners and receiving systems detect a mistyped or misread barcode before it reaches the dock.

How do I calculate a GTIN-14 check digit?

Enter the first 13 digits of your case code into the calculator above and it returns the correct 14th check digit instantly, using the same Mod-10 algorithm GS1 specifies.

Is a UPC check digit calculated the same way as a GTIN-14?

Yes — GTIN-12 (UPC-A), GTIN-13 (EAN), and GTIN-14 all use the same GS1 Mod-10 check digit algorithm, just with a different number of digits. This calculator supports all three.

Why doesn't my GTIN check digit match what I expected?

A mismatch usually means one of the leading digits was mistyped, or the code was padded to the wrong length. Paste the full code into the validator above (12, 13, or 14 digits) to check whether it's valid.