Toolstia / EAN and UPC check digit calculator

EAN and UPC check digit calculator

Every barcode number ends in a check digit that catches typing mistakes. Enter the digits without the check digit to get it, or enter a full code to see whether it is valid.

Starting from the right of the digits before the check digit, multiply by 3, 1, 3, 1 and so on, add them up, and the check digit is whatever brings the total up to the next multiple of 10. This works for UPC-A, EAN-8, EAN-13 and GTIN-14. Spaces and hyphens are ignored.

How it works

  1. Choose to find a check digit or to validate a full code.
  2. Pick the code type and enter the digits.
  3. Read the check digit or the verdict and copy the full code.

How it is calculated

Starting from the right of the digits before the check digit, multiply by 3, 1, 3, 1 and so on. Add the results, and the check digit brings the total up to the next multiple of 10.

Code types

EAN-13 has 12 digits plus a check digit, UPC-A has 11, EAN-8 has 7 and GTIN-14 has 13.

Validating

A full code has 8, 12, 13 or 14 digits. The tool works out the type from the length and tells you the correct last digit if yours is wrong.

Spaces and hyphens

They are ignored, so you can paste a code the way it is printed.

Questions

Is my number sent anywhere?

Everything happens in your browser, and nothing you enter is sent anywhere.

Does a valid check digit mean the product exists?

No. It only means the number was typed without a common mistake. Product registration is separate.

Is an ISBN the same?

ISBN-13 uses the same method as EAN-13. ISBN-10 uses a different one, so use an ISBN tool for that.