Check digit calculator

Type a barcode number without its last digit to work the check digit out, or with it to see if it's right. Every step is shown, so you can follow the sum yourself.

Free, no sign-up, no credit card. Codes never expire, and nothing you type is sent anywhere.

Type all 13 digits to check the last one, or the first 12 to work it out. Spaces and hyphens are fine.

Type a number and its check digit appears here, with every step.

How to work out a check digit

  1. Choose the kind of number, such as EAN-13 or UPC-A.
  2. Type the number without its last digit to work it out, or the whole number to check it.
  3. Read the steps under the answer to see how the digit is worked out.
  4. Copy the full number, or make its barcode.

What to know

GS1's method, for UPC, EAN, GTIN-14, SSCC, and ISBN-13

  • Starting from the digit next to the check digit and moving left, multiply the digits by 3, 1, 3, 1 and so on.
  • Add the results, then take the sum away from the next multiple of ten. What's left, from 0 to 9, is the check digit.
  • GS1's own example: for 629104150021 the sum is 57, the next multiple of ten is 60, so the check digit is 3 and the full number is 6291041500213.

Source: GS1, How to calculate a check digit manually

ISBN-13 and the older ISBN-10

Since 2007 every ISBN has 13 digits, starting 978 or 979, and its check digit uses the same method as EAN-13. Older 10-digit ISBNs multiply the first nine digits by 10 down to 2, divide the sum by 11, and take the remainder from 11, so their check digit can be 10, written as X.

Source: International ISBN Agency, ISBN Users' Manual

What a check digit can and can't tell you

A check digit catches most typos, such as one wrong digit or two neighbouring digits swapped. It can't tell you whether a number belongs to a real product or to you. Retail numbers come from GS1, and ISBNs from your country's ISBN agency.

Common problems

My barcode number has one digit too many or too few

Each kind has a set length with its check digit, such as 13 for EAN-13 and 12 for UPC-A. A UPC written with a 0 in front is the EAN-13 form of the same number, so choose EAN-13 for it.

The check digit doesn't match the one printed on the product

Look for a typo in the other digits first, since one wrong digit changes the check digit. If the number was copied from a spreadsheet, a leading 0 may have been dropped.

An ISBN-10 ends in X

X stands for 10 in ISBN-10 check digits. Choose ISBN-10 and type the X as the last character.

Questions

What is a check digit?

The last digit of a barcode number, worked out from the others. Scanners and systems use it to catch typos and misreads before a wrong number is used.

Are UPC, EAN, and GTIN check digits the same?

Yes. They're all GTINs and use GS1's method, so the same digits give the same check digit. A UPC-A with a 0 in front is the same as its EAN-13.

Does it work for an SSCC?

Yes. An SSCC has 18 digits, and the last one is worked out with the same GS1 method.

Is anything I type sent anywhere?

No. Your codes are made in your browser. Nothing you type is sent anywhere.