GTIN check digit
GTIN check digit calculator
Work out the check digit for any GTIN, UPC, EAN or ISBN — or paste a whole column and have every one of them verified, with the arithmetic shown. Pure arithmetic, in this page, with nothing sent anywhere.
How the check digit works
Number the digits from the right, starting at 1. Multiply odd positions by 1, even positions by 3, and add them all up. The check digit is whatever makes that total a multiple of ten.
4006381333931
- Multiply each digit by its weight:4×1 + 0×3 + 0×1 + 6×3 + 3×1 + 8×3 + 1×1 + 3×3 + 3×1 + 3×3 + 9×1 + 3×3 + 1×1
- Add them up:90
- Check the remainder:90 mod 10 = 0— a multiple of ten, so this GTIN is valid.
The last digit is the check digit. Change any other digit and the total stops being a multiple of ten — which is exactly how a typo gets caught.
The four lengths
All four use the same mod-10 weighting, so the same calculator handles every one of them. A GTIN-12 and the GTIN-13 with a leading zero are the same number — which is why this tool compares values in canonical GTIN-14 form when looking for duplicates.
8GTIN-8 · EAN-812GTIN-12 · UPC-A13GTIN-13 · EAN-1314GTIN-14
A GTIN-14 that starts with 9 is a variable-measure item — sold by weight or volume rather than as a fixed pack. That is legal, but Merchant Center treats it differently and expects a unit price.
Try it on your own numbers
Paste one value per line — or copy a column straight out of your spreadsheet. Each row gets its check digit verified, its canonical GTIN-14 form, and any duplicate found across formats. You can then copy the normalised column straight back.
Validate GTIN, UPC, EAN and ISBN
Check the check digit before Google does.
Paste one GTIN per line. Every check digit is verified here in your browser — there is no server call, and no AI in this tool at all.
Check digit questions
What is a check digit?
The last digit of a GTIN is not part of the product number. It is computed from the other digits so that a single typo — a transposed pair, a wrong key — makes the whole number fail a simple arithmetic test. A GTIN is valid only if the weighted sum of its digits is a multiple of ten.
How is it calculated?
Number the digits from the right, starting at 1. Multiply odd positions by 1 and even positions by 3, add everything up, and the check digit is whatever makes that total a multiple of ten. The calculator on this page shows the full working for every value you paste, so you can check the arithmetic yourself.
Does it work for UPC-A, EAN-8 and GTIN-14 too?
Yes — all four lengths use the same mod-10 weighting, so one calculator covers GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13) and GTIN-14. It also normalises each value to the canonical GTIN-14 form, which is the form Google recommends submitting.
Do I need a GS1 membership to use this?
No. This is arithmetic, not a registry lookup. It tells you whether a number is structurally valid. It cannot tell you whether a GTIN is actually assigned to your product — only GS1 and the brand owner can confirm that, and Merchant Center will reject a GTIN it cannot match.
Does anything leave my browser?
No. Parsing and every check-digit calculation run as deterministic TypeScript inside this page. There is no server call at all — and unlike the other tools here, there is no AI anywhere in this one, so there is not even a prompt to send.