GS1 check digit calculator.
Enter an EAN, UPC, GTIN, GLN or SSCC without its last digit — the calculator adds the check digit using the GS1 algorithm and shows the calculation digit by digit.
7 digits (EAN-8), 11 (UPC-A), 12 (EAN-13 / GTIN-13 / GLN), 13 (GTIN-14), 16 (GSIN) or 17 (SSCC).
To check complete numbers and GS1 element strings, use Check a barcode.
Which numbers it handles
The format follows from the number of digits you enter.
| Format | Input | With check digit | Used for |
|---|---|---|---|
| EAN-8 (GTIN-8) | 7 | 8 | Small packages |
| UPC-A (GTIN-12) | 11 | 12 | North American retail |
| EAN-13 (GTIN-13) | 12 | 13 | Retail item number |
| GLN | 12 | 13 | Location and party number |
| GTIN-14 / ITF-14 | 13 | 14 | Outer case, trade unit |
| GSIN | 16 | 17 | Shipment number |
| SSCC | 17 | 18 | Pallet, logistic unit |
How the check digit is calculated
- Multiply the digits alternately by 3 and 1, from right to left.
- Add up all products.
- Subtract the sum from the next multiple of ten — the result is the check digit.
Check digits verified on every scan
The barValid app verifies the check digit of every GTIN and SSCC the moment you scan the code — together with expiry date, batch and every other application identifier.
Frequently asked questions
How is the GS1 check digit calculated?
Is the calculation the same for EAN, UPC, GTIN, GLN and SSCC?
I have 13 digits — is that an EAN-13 or a GTIN-14 without its check digit?
Does the check digit give me a valid barcode number for my product?
What is the difference to checking a number?
Are my numbers stored?
What (01), (17) or (10) stand for is listed in the GS1 AI database.