GTIN Check Digit Calculator

Enter a GTIN without its last digit and get the check digit instantly. Works for GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN) and GTIN-14 case codes, with the working shown.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

Enter the digits without the check digit: 7 (EAN-8), 11 (UPC-A), 12 (EAN-13), 13 (GTIN-14).

Check digit2
Full GTIN-1410012345678902

How it was calculated

GTIN-14 uses the GS1 modulo 10 algorithm: starting from the rightmost digit, multiply alternately by 3 and 1, add the products, then find the amount needed to reach the next multiple of 10.

Position12345678910111213Sum
Digit1001234567890
× Weight3131313131313
= Product300163125187249088

Round 88 up to the next multiple of 10 (90). 90 − 88 = 2, so the check digit is 2.

How to calculate a GTIN check digit

  1. Enter the GTIN without its check digit: 7, 11, 12 or 13 digits.
  2. The tool detects GTIN-8, 12, 13 or 14 from the length and shows the check digit.
  3. Copy the full GTIN, or click Generate this barcode.
  4. For case codes, build the GTIN-14 from indicator digit + first 12 digits of the item’s GTIN-13, then calculate.

One formula for every GTIN length

Write the GTIN right-aligned in 13 positions (without the check digit). Multiply from the right by 3, 1, 3, 1 … , add, and subtract from the next multiple of 10. Shorter GTINs are just longer ones with leading zeros.

GTINBarcodeDigits before checkTypical use
GTIN-8EAN-87Very small retail packs
GTIN-12UPC-A11Retail in the US and Canada
GTIN-13EAN-1312Retail everywhere else
GTIN-14ITF-14, GS1-12813Cases, cartons, outer packs

Worked example: a GTIN-14 case code

A carton of 12 holds items with GTIN-13 0012345678905. The brand gives the carton indicator digit 1 and drops the item's check digit, leaving 1001234567890. Multiplying from the right by 3 and 1:

1×3 + 0×1 + 0×3 + 1×1 + 2×3 + 3×1 + 4×3 + 5×1 + 6×3 + 7×1 + 8×3 + 9×1 + 0×3 = 88

The next multiple of 10 is 90, so the check digit is 2 and the case GTIN-14 is 10012345678902. Note the check digit differs from the item's, because the indicator digit changed the sum.

Indicator digits

In a GTIN-14, indicator digits 1–8 mark different packaging levels of the same item (for example 1 = inner pack, 2 = case, 3 = pallet), chosen by the brand owner. 0 means the GTIN-14 is just a GTIN-13 or GTIN-12 padded with zeros, and 9 is reserved for variable-measure items such as cheese sold by weight. Read more in What is a GTIN?

Frequently asked questions

How do I calculate a GTIN check digit?

Starting from the right of the number without its check digit, multiply the digits by 3, 1, 3, 1 and so on, add them, and subtract the sum from the next multiple of 10. The rule is identical for GTIN-8, GTIN-12, GTIN-13 and GTIN-14.

What is the GTIN-14 check digit for 1001234567890?

It is 2. The weighted sum is 88, and 90 − 88 = 2, so the GTIN-14 is 10012345678902.

What is the difference between GTIN-8, 12, 13 and 14?

Length and use. GTIN-12 is the UPC-A, GTIN-13 the EAN-13, GTIN-8 the EAN-8 for small packs, and GTIN-14 identifies cases and cartons, usually printed as ITF-14 or in GS1-128.

If I change the indicator digit of a GTIN-14, does the check digit change?

Usually yes. The indicator digit (the first digit) has weight 3, so changing it changes the sum. Always recalculate the check digit for each packaging level.

Can I pad a GTIN with zeros?

Yes. Leading zeros don’t change the sum, so a GTIN-12 written as 14 digits with two leading zeros keeps the same check digit. This is how databases store every GTIN as 14 digits.

Do GTINs and SSCCs use the same algorithm?

Yes. SSCC-18, GLN and GSIN use the same GS1 mod 10 rule. Pick them from the type menu on the check digit calculator.

Related free tools