Check Digit Calculator

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.

Your numbers

0 lines
Number type

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 line

One digit short gets its check digit; a full number is checked.

How to Calculate a Check Digit

  1. Paste your numbers. Type or paste one number per line - spaces and hyphens are fine - or load a CSV or text file.
  2. Pick the type or keep Auto. Auto works out GTIN, UPC, EAN, SSCC, ISBN or ISSN from the length. Pick a type when two could fit.
  3. Read the results. Numbers one digit short get their check digit; full numbers are checked. Click a row to see every step of the maths.
  4. Use them. Copy the full numbers, download a CSV, or open one in the Barcode Generator to print it.

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.

Which Numbers Use Which Rule

NumberDigitsRuleUsed on
EAN-8 (GTIN-8)8GS1 mod 10Small retail packs
UPC-A (GTIN-12)12GS1 mod 10Retail in the US and Canada
EAN-13 (GTIN-13)13GS1 mod 10Retail everywhere else
GTIN-1414GS1 mod 10Cartons and cases (ITF-14)
GLN13GS1 mod 10Companies and locations
SSCC18GS1 mod 10Pallets and shipping units
ISBN-1313GS1 mod 10Books (978, 979)
ISBN-1010Mod 11 (X = 10)Books before 2007
ISSN8Mod 11 (X = 10)Magazines and journals

Not sure which barcode goes with which number? See barcode types explained.

The GS1 Rule in Three Steps

Every GTIN, EAN, UPC, GLN and SSCC uses the same check.

  1. Weight the digits. From the right, multiply the digits by 3, 1, 3, 1... - so the digit next to the check digit is always times 3.
  2. Add them up. For 590123412345 that gives 83.
  3. Round up to ten. The next multiple of 10 is 90, so the check digit is 90 - 83 = 7.

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.

Frequently Asked Questions

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.

Guides & Tutorials

All 40 guides
New Guide Barcode Types Explained: EAN, UPC, Code 128, ISBN and More Oct 28, 2026 · 8 min read Read New Guide Twitter (X) Image and Video Sizes for 2026 - Header, Profile, Posts Oct 28, 2026 · 5 min read Read New Tutorial How to Download Pinterest Videos and Images (iPhone, Android, PC) Oct 27, 2026 · 6 min read Read