Work out or check the last digit of any barcode number - EAN, UPC, GTIN, SSCC, GLN, ISBN or ISSN.
Paste one number or thousands, and click any row to see every step of the maths.
Numbers are checked as you type, right in your browser. Ready to print one? Open it in the Barcode Generator, or read one off a pack with the Barcode Scanner.
Something went wrong. Please try again.
Still having trouble? Please contact us and we'll be happy to help!
Auto picks the type from the length: 7-8 digits EAN-8, 11-12 UPC-A, 12-13 EAN-13, 14 GTIN-14, 17-18 SSCC, 9-10 ISBN-10, 0000-000 ISSN.
For every lineOne digit short gets its check digit; a full number is checked.
| # | You typed | Type | Result | Full number |
|---|
Checking a list of products before ordering labels? Paste the whole column from Excel, download the CSV, and print the good ones in bulk with the Barcode Generator.
| Number | Digits | Rule | Used on |
|---|---|---|---|
| EAN-8 (GTIN-8) | 8 | GS1 mod 10 | Small retail packs |
| UPC-A (GTIN-12) | 12 | GS1 mod 10 | Retail in the US and Canada |
| EAN-13 (GTIN-13) | 13 | GS1 mod 10 | Retail everywhere else |
| GTIN-14 | 14 | GS1 mod 10 | Cartons and cases (ITF-14) |
| GLN | 13 | GS1 mod 10 | Companies and locations |
| SSCC | 18 | GS1 mod 10 | Pallets and shipping units |
| ISBN-13 | 13 | GS1 mod 10 | Books (978, 979) |
| ISBN-10 | 10 | Mod 11 (X = 10) | Books before 2007 |
| ISSN | 8 | Mod 11 (X = 10) | Magazines and journals |
Not sure which barcode goes with which number? See barcode types explained.
Every GTIN, EAN, UPC, GLN and SSCC uses the same check.
Counting from the right is why one rule works for every length - an EAN-8 and an 18-digit SSCC are checked the same way. A wrong digit or two swapped digits almost always change the sum, which is how tills spot a misread.
The last digit of a barcode number, worked out from all the other digits. When a scanner or a person reads the number, the check digit catches almost every single wrong digit and most swapped pairs - the number simply does not add up any more.
Start from the right-hand end of the number without its check digit. Multiply the digits by 3, 1, 3, 1... going left, and add everything up. The check digit is the amount needed to reach the next multiple of 10.
For 590123412345 the sum is 83, so the check digit is 7 and the full EAN-13 is 5901234123457. Click any row above to see the steps for your own number.
Yes. EAN-8, UPC-A, EAN-13, GTIN-14, GLN and the 18-digit SSCC all use the same GS1 rule, just with different lengths. Pick Auto and we tell them apart by length - or pick the type yourself.
ISBN-10 uses modulus 11: multiply the 9 digits by 10, 9, 8... down to 2, add them up, and the check digit is what brings the total to a multiple of 11. It can be 10, which is written as X. ISBN-13 uses the normal GS1 rule - and we convert between the two for you.
Yes - paste up to 5,000 numbers, one per line, or load a CSV or text file. Each line is calculated or checked, and Download CSV gives you the results for Excel or Google Sheets.
One digit was probably mistyped or two digits were swapped. We show the check digit it should have, but do not just replace it - check the original first, because the mistake may be in another digit. If the number came from a barcode, scan it with the Barcode Scanner.
No. It only means the number is well-formed. Whether it belongs to a real product depends on the GS1 registry (or the ISBN agency for books). The GS1 prefix we show tells you which GS1 office the brand joined, not where the product was made.
No. The calculator runs in your browser - your numbers never reach our servers.