Skip to content

Free tools

GTIN check digit calculator

Type a barcode number to get its last digit or to test it before you print. You also get the 14-digit GTIN and the GS1 Digital Link for your QR code.

7, 11, 12, 13, 16 or 17 digits. Spaces and hyphens are fine.

Runs in your browser with no sign-up.

How the GTIN check digit works

The last digit of a GTIN is a check digit. It is calculated from the other digits, so a scanner can detect a mistyped or misread number.

  1. Take every digit before the last one.
  2. Start at the right. Multiply the first digit by 3, the next by 1, the next by 3, and continue to the left.
  3. Add the results.
  4. Subtract the sum from the next multiple of 10. The answer is the check digit.

For 950600013435 the sum is 78. The next multiple of 10 is 80, so the check digit is 2. The full number is 9506000134352.

A GLN, a GSIN and an SSCC use the same method.

A wrong digit on printed packaging means a reprint.

What a wrong check digit costs you

A checkout scanner tests the check digit on every scan. A UPC or EAN barcode with a wrong digit does not read at the register.

Retailers and marketplaces run the same test on the product data you send them. A number that fails can get your listing rejected. Marketplaces also look up which company licensed the number. See Verified by GS1.

An SSCC with a wrong digit can fail when a warehouse scans the pallet label at receiving.

DLCode tests the check digit of each GTIN you add or import, so a wrong check digit never reaches the press. Start free

UPC, EAN and GTIN-14: which number you have

NumberDigitsWhere you see it
GTIN-8 (EAN-8)8Very small retail packs
GTIN-12 (UPC-A)12Retail products in the US and Canada
GTIN-13 (EAN-13)13Retail products in most other countries
GTIN-1414Cases and cartons
GLN13Locations and companies
GSIN17Shipments
SSCC18Pallets and other logistics units

For what the 12 digits of a UPC mean, see UPC barcodes: the basics.

A GS1 Digital Link always carries the GTIN as 14 digits. Add zeros to the front of a shorter GTIN until it has 14. The check digit stays the same.

https://id.gs1.org/01/09506000134352

A GTIN-14 for a case starts with an indicator digit from 1 to 8. Its check digit is different from the check digit of the unit inside the case.

Once the number is right, check the full link in the validator or see how big its QR code prints.

Frequently asked questions

It is the last digit of the GTIN. It is calculated from the other digits and lets a scanner detect a mistyped or misread number.

Take the first 11 digits. Start at the right and multiply them by 3 and 1 in turn. Add the results and subtract the sum from the next multiple of 10.

Yes. GTIN-8, GTIN-12, GTIN-13 and GTIN-14 use the same method. GLN, GSIN and SSCC use it too.

Add two zeros to the front of the 12 digits. An EAN-13 takes one zero. The check digit does not change. DLCode pads the number for you when it builds the link.

Yes. Paste up to 1,000 numbers, one per line. You get the correct number for each one that fails, and a CSV file of the result. DLCode runs the same test when you import your product list.

No. The check digit shows that the number is well formed. A GTIN is yours when GS1 has licensed it to your company.

Don't print a dead link — host it through 2030, paid once

Monthly QR tools cost $900–$2,940 through 2030 and break printed packs when you cancel. DLCode hosts your codes through December 31, 2030 on your own domain, with instant link edits and batch recalls — 10 products free, then from $249 once.

30-day money-back guarantee. Full refund to your original payment method.