GTIN check digit and barcode scan checker
Type the number under a barcode to test its check digit. Or paste what a scanner read from a QR code and see what a 2D-ready till would make of it. Nothing you enter leaves your browser.
Want every part of a link explained, with a fix for each problem? Use the GS1 Digital Link checker.
What a GTIN check digit is
A GTIN is the number under a barcode. Its last digit is not part of the product number. It is a check digit, worked out from all the digits before it. If one digit is mistyped, or two neighbours are swapped, the sum no longer fits and the number is rejected. That is how a till, a retailer's listing form or a label printer catches a typing mistake before it costs anything.
A correct check digit shows that a number is well formed. It does not show who holds the number. For that, a retailer can look the number up in Verified by GS1, the registry run by GS1.
How the check digit is calculated
- Leave the last digit off. What remains are the data digits.
- Start at the right. Multiply the right-most data digit by 3, the next one to the left by 1, the next by 3, and so on.
- Add the results.
- Find the gap to the next multiple of ten. That gap is the check digit. If the sum already ends in a zero, the check digit is 0.
A worked example
Take 9520000000011, a 13 digit number on the GS1 demonstration prefix 952. The data
digits are 952000000001 and the last digit, 1, is the one to test.
Working from the right: 1 × 3 = 3. The eight zeros add nothing. Then 2 × 1 = 2, 5 × 3 = 15 and 9 × 1 = 9.
3 + 2 + 15 + 9 = 29. The next multiple of ten is 30, and 30 minus 29 is 1. The check digit is 1, so
9520000000011 is a well formed GTIN. Change any one digit and the sum moves off 29,
so the number fails.
GTIN-8, GTIN-12, GTIN-13 and GTIN-14
- GTIN-13 (EAN-13) has 13 digits. It is the barcode on most retail packs in South Africa and Europe.
- GTIN-12 (UPC-A) has 12 digits and is common in North America.
- GTIN-8 (EAN-8) has 8 digits, for packs too small for a full barcode.
- GTIN-14 has 14 digits. It is used on cases and cartons, and it is the form every GTIN takes inside a GS1 Digital Link QR code.
One method covers all four, because the weights are counted from the right. Putting zeros in
front of a shorter number to make it 14 digits long does not change its check digit: zero times
any weight is still zero. That is why 9520000000011 and 09520000000011
are the same number.
What this checker does
It answers one question: what would a 2D-ready till get from this scan? Paste the text a scanner produced, or type the number under a barcode. The check runs in your browser, so nothing you paste is sent to us.
- A barcode number. A GTIN of 8, 12, 13 or 14 digits has its check digit tested and is shown padded to 14 digits.
- A web address from a QR code. If it is a GS1 Digital Link, you see the GTIN the till would charge for, plus any batch, serial number or dates found in it.
- Anything else. A plain marketing QR code or a mistyped number is reported as not recognised or invalid, with the reason.
Some scanners put a short prefix such as ]Q1 in front of what they
read. The checker removes it and tells you it was there.
Which checker should I use?
- Use this page for a quick answer at the till or the packing bench: is this barcode number well formed, and is there a valid GTIN in this scan.
- Use the GS1 Digital Link checker when you are building or fixing a link. It explains every application identifier in a table, lists each problem with a fix, and covers links built on keys other than a GTIN.
Neither tool opens the link or looks at a printed code. To find out whether a scanner can read 2D codes, use the scanner test. To turn a barcode number into a QR code, use the free generator. In South Africa the number itself comes from GS1 South Africa: GS1 QR codes in South Africa explains how to get one.
Sources
Last reviewed by the PaqLink team. Each source below was opened and read on the date shown. Rules and fees change, so check the source before you rely on a figure.
- GS1 US, How to calculate a check digit. Checked 18 November 2026.
- GS1 South Africa, Verified by GS1. Checked 18 November 2026.