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.
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.
- Take every digit before the last one.
- Start at the right. Multiply the first digit by 3, the next by 1, the next by 3, and continue to the left.
- Add the results.
- 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
| Number | Digits | Where you see it |
|---|---|---|
| GTIN-8 (EAN-8) | 8 | Very small retail packs |
| GTIN-12 (UPC-A) | 12 | Retail products in the US and Canada |
| GTIN-13 (EAN-13) | 13 | Retail products in most other countries |
| GTIN-14 | 14 | Cases and cartons |
| GLN | 13 | Locations and companies |
| GSIN | 17 | Shipments |
| SSCC | 18 | Pallets 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.
More free tools
- GS1 Digital Link generatorBuild a GS1 Digital Link for any GS1 key and download the QR code.
- GS1 Digital Link validatorCheck a link against the current GS1 standard and convert it to an element string.
- GS1 barcode decoderRead the data inside a GS1 QR code or barcode from a photo, a PDF or your camera.
- GS1 QR code size calculatorSee the module count and the printed size of the QR code for your link.
- GS1 Application IdentifiersSearch every GS1 Application Identifier by number or name.
- Packaging checkerCheck the barcode and the QR code in your artwork before you print.
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.