Introduction
A check digit is the last number in a barcode. It is a safety number. It proves the other digits were typed or scanned right. If one digit is wrong, the check digit will not match, and the mistake gets caught.
This Check Digit Calculator works out that last digit. Type your number without the check digit, and the tool picks the right format on its own. It handles GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN and GLN), GTIN-14, SSCC, and Bill of Lading numbers.
The math is the GS1 modulo-10 rule, the same rule used across supply chains worldwide. You get the check digit, the full number, a step-by-step breakdown, and a chart that shows how each digit adds up. One click copies the finished number.
Use it to build new barcodes, check labels before printing, or fix a number that will not scan. Right numbers mean fewer shipping errors, fewer returns, and less wasted time.
How to use our Check Digit Calculator
Type your GS1 number without its last digit. The calculator shows the correct check digit plus the full, finished number.
Enter your number (without the check digit): Type or paste the digits in the main box. Use 7, 11, 12, 13, 16, or 17 digits. Spaces and hyphens are removed for you.
Detected format: Watch this box. It tells you which format your number matches, such as GTIN-13, SSCC, or Bill of Lading. If it says "No match," check how many digits you typed.
Calculate Check Digit button: Click it to get your check digit, the full number, the step-by-step math, and the chart. Pressing Enter does the same thing.
View as GTIN-14 button: Click it to see your number padded with zeros to 14 digits. Click again to go back to the original format.
Copy button: Click it to copy the full number, check digit included, so you can paste it into your label or system.
Reset button: Click it to put back the sample numbers and start over.
GTIN-8 row: Type the first 7 digits, then click Calculate to get the 8th digit.
GTIN-12 / UPC row: Type the first 11 digits, then click Calculate to get the 12th digit.
GTIN-13 / EAN / GLN row: Type the first 12 digits, then click Calculate to get the 13th digit.
GTIN-14 row: Type the first 13 digits, then click Calculate to get the 14th digit.
SSCC row: Type the first 17 digits of your pallet label, then click Calculate to get the 18th digit.
Bill of Lading row: Type the first 16 digits, then click Calculate to get the 17th digit.
Clear buttons: Click Clear on any row to empty that row and type a new number.
What Is a Check Digit?
A check digit is the last number in a barcode number. It is not random. It is worked out from all the digits before it using a math rule. Its job is to catch mistakes. If someone types or scans one wrong digit, the math will not match, and the system knows the number is bad.
How the GS1 Check Digit Works
Almost all supply chain barcode numbers use the same rule, called GS1 Modulo 10. Here is the idea in plain steps:
- Count the digit spots from the right, starting at 1.
- Multiply digits in odd spots by 3.
- Multiply digits in even spots by 1.
- Add all those answers together.
- Round that total up to the next multiple of 10.
- The gap between the total and that multiple of 10 is your check digit.
If the total already lands on a multiple of 10, the check digit is 0.
Numbers That Use a Check Digit
- GTIN-8 is 8 digits. Small items like gum or candy bars.
- GTIN-12 (UPC) is 12 digits. Common on store shelves in the U.S. and Canada.
- GTIN-13 (EAN) is 13 digits. Used worldwide. A GLN (Global Location Number) also has 13 digits and names a company or a place, like a dock door or warehouse.
- GTIN-14 is 14 digits. Used on cases and pallets of the same item.
- SSCC is 18 digits. A one-of-a-kind number for a single pallet or carton. It is the number on most shipping labels and ASN files.
- Bill of Lading is 17 digits. Tracks a shipment from pickup to drop-off.
Why It Matters in Logistics
Every pallet, case, and shipping label moves through many hands. Labels get smudged, scanners misread, and people type numbers by hand. A check digit stops most of these errors before they enter your system. A bad number can mean a lost pallet, a wrong invoice, a chargeback from a retailer, or a failed EDI message.
You need to work out a check digit when you make new item numbers, print your own labels, build SSCC codes for shipping, or check a number that a partner sent you.
Things to Remember
- Enter only the digits before the check digit. The tool adds the last one for you.
- Only numbers 0 through 9 work. No letters, dashes, or spaces.
- Keep leading zeros. A zero at the front changes the math and the final digit.
- A short number like a GTIN-12 can be padded with zeros on the left to make a GTIN-14. The check digit stays the same, since zeros add nothing to the total.
- A check digit catches single wrong digits very well, but it can miss some swapped-pair errors. It is a safety net, not a full proof.