UPC Check Digit Calculator

Paste UPC, EAN, ITF-14 or ISBN numbers, one per line, to get the check digit of each or find the ones that are wrong, then draw their barcodes, without the numbers leaving your device.

How to calculate a UPC check digit

  1. Paste the numbers

    This page opens on Check digits with UPC-A chosen. Choose the number type above the box (UPC-A, EAN-13, EAN-8, ITF-14 or ISBN), then type or paste up to 1,000 numbers of that type, one per line: for UPC-A, 11 digits to get the check digit, 12 to check it.

  2. Read each line

    Each line gets "Valid", "Check digit added: 6" or "Should be 6", followed by the full corrected number, so a typo shows at once. A line that is not a number of that type gets the reason, such as "Use digits from 0 to 9."

  3. Keep the result

    Copy corrected list copies the corrected numbers, and Download CSV saves barcodes.csv with the line, the corrected number and the result. Draw these sends the numbers that were valid or had their digit added to Many at once to make their barcodes.

What a check digit can and cannot tell you: the guide.

How the UPC check digit is calculated

The last digit of a UPC is calculated from the 11 before it, so a scanner or a person can tell when a digit was misread or mistyped. GS1 US's own example number is 6 14141 99999 6. Here is how its final 6 is found, with the rule from the GS1 General Specifications, section 7.9.1:

1. Add the digits in the odd positions, counting from the left: 6 + 4 + 4 + 9 + 9 + 9 = 41. 2. Multiply by 3: 123. 3. Add the digits in the even positions: 1 + 1 + 1 + 9 + 9 = 21. 4. Add the two results: 123 + 21 = 144. 5. Subtract from the next multiple of ten, or from the number itself if it is one: 150 − 144 = 6.

GS1 states the same rule from the right: the digit next to the check digit is multiplied by 3, the next by 1, and so on. Counted that way, it works for every length.

EAN-13, EAN-8, GTIN-14 and ISBN

GS1 says its check digit algorithm "is identical for all fixed length numeric GS1 data structures", so the same calculator serves EAN-13 (GTIN-13), EAN-8 (GTIN-8) and the 14-digit GTIN of an ITF-14 case code. ISBN-13 uses it too: the International ISBN Agency describes the check digit as "a Modulus 10 system with alternate weights of 1 and 3". The ISBN type also takes a 10-digit ISBN: the tool checks its own last character (a digit or X) and turns it into its ISBN-13, 978 followed by its first nine digits, with a new check digit. Nine digits get the same ISBN-13 with its check digit added.

A correct check digit is not a licensed number

A valid check digit only means the number is well formed. It does not mean the number is licensed to you, or to anyone. Marketplaces check the GS1 database for who owns a number, and GS1 US says Amazon may reject a UPC when the GTIN is not licensed to the brand owner. To get numbers of your own, see how to get a UPC code.

Frequently asked questions

What is a UPC check digit?

The 12th digit of a UPC-A. It is calculated from the first 11 with GS1's formula, and a scanner repeats the calculation to confirm the number was read correctly.

Can I check many UPCs at once?

Yes. Paste up to 1,000 numbers of one type, one per line, and every line gets its own result. You can copy the corrected list or download it as CSV.

Why does a line say "Should be" another digit?

The last digit does not match the other digits. Usually one digit was mistyped, two were swapped, or an 11-digit number was pasted with an extra digit. Check the number against your GS1 records before you fix it.

Does a valid check digit mean the UPC is registered?

No. Any 11 digits get a valid check digit. Only GS1's records show who a number is licensed to.

Are my numbers uploaded?

No. The check digits are calculated in your browser and the numbers never leave your device. From the tool, Google Analytics receives only the number type, how many numbers you checked and how many were wrong, as ranges, and error codes; Microsoft Clarity's recording of the page masks the tool.