Introduction
This GS1 Check Digit Calculator finds the last digit of a barcode number for you. Type in the digits you have, and the tool adds the correct check digit at the end.
The check digit is a safety digit. Scanners use it to make sure the rest of the number was read right. If one digit is wrong, or two side-by-side digits get swapped (unless they differ by exactly 5), the check digit will not match, and the scan fails. That stops bad data from moving through your supply chain.
The calculator works with these GS1 numbers:
- GTIN-8 — enter 7 digits (small packs)
- GTIN-12 — enter 11 digits (UPC)
- GTIN-13 / GLN — enter 12 digits (EAN and location numbers)
- GTIN-14 — enter 13 digits (cases and pallets)
- SSCC — enter 17 digits (shipping labels)
- Bill of Lading — enter 16 digits
Pick your format, type your digits, and the answer shows up right away. You also get the math laid out step by step, a chart of how each digit is weighted, and a table that breaks the number into its parts. You can copy the full number with one click, or view it padded out to 14 digits for GTIN work.
How to use our GS1 Check Digit Calculator
Pick your barcode format and type in your number without the last digit. The calculator works out the GS1 check digit, shows the full identifier, and walks you through each step of the math.
Format tabs: Click the tab that matches your number — GTIN-8, GTIN-12, GTIN-13 / GLN, GTIN-14, SSCC, or Bill of Lading. Each tab sets how many digits you need to enter.
Number field: Type your digits here, using only 0–9. Leave off the check digit. The counter under the box tells you how many digits you still need. For a GTIN-14, the first digit must be 1 through 9.
Calculate button: Press this (or hit Enter) to get your check digit and the full number. The result, the step-by-step math, and the chart all update at once.
Clear button: Press this to empty the box and start a new number in the same format.
View as 14-digit GTIN button: Press this to add leading zeros and see your GTIN in the 14-digit form used in many data feeds. Press it again to go back to the normal view.
Copy result button: Press this to copy the finished number, check digit and all, straight to your clipboard.
What Is a GS1 Check Digit?
A GS1 check digit is the last number in a barcode number. It is not random. It is worked out from all the other digits using a simple math rule. Its job is to catch mistakes. If someone types or scans a digit wrong, the check digit will not match, and the scanner knows the number is bad.
Where GS1 Numbers Are Used
GS1 numbers run through the whole supply chain. They sit on retail products, cases, pallets, and shipping papers. Each number type has a set length, and the final digit is always the check digit.2
- GTIN-8 – 8 digits. Used on small items with little label space.2
- GTIN-12 (UPC) – 12 digits. Common in the United States and Canada.
- GTIN-13 (EAN) – 13 digits. Used on retail products around the world. A GLN (Global Location Number) also has 13 digits and uses the same rule.2
- GTIN-14 – 14 digits. Used for cases and cartons. The first digit is an Indicator Digit. Digits 1 to 8 mark packaging levels, and 9 marks a variable measure item.2
- SSCC – 18 digits. A one-of-a-kind number for a pallet or shipping unit.2
- Bill of Lading – 17 digits. This is the GS1 shipment number (GSIN), which is referenced in the bill of lading.2
How the Check Digit Math Works
The rule is the same for every GS1 number.2 It is called Modulo 10.
- Write down the digits you have, without the check digit.
- Give the digit on the far right a weight of 3. Then go left and switch: 1, 3, 1, 3, and so on.
- Multiply each digit by its weight.
- Add all those answers together. This is the weighted sum.
- Divide that sum by 10 and keep the remainder.
- Take 10 minus the remainder. If you get 10, use 0. That answer is your check digit.
Example: for the GTIN-12 number 03600029145, the weighted sum is 58. The remainder is 8. So 10 − 8 = 2, and the full GTIN-12 is 036000291452.
Why the 14-Digit Format Matters
Many warehouse and trading systems store every GTIN as 14 digits. Shorter numbers get zeros added to the front. A GTIN-13 like 4006381333931 becomes 04006381333931. The zeros do not change the number or the check digit. They just make all records the same length so computers can match them.
Tips for Getting It Right
- Never make up a check digit. One wrong digit can stop a pallet at a receiving dock.
- Use only digits 0 through 9. Letters and dashes are not part of a GS1 number.
- Keep leading zeros. They do not change the check digit, but they keep the number at its right length.
- Check the digit again after any edit to the number.
- A new GTIN-14 grouping starts with an Indicator Digit from 1 to 8, and Indicator Digit 9 is kept for variable measure items.2