Barcode guide

How Barcode Check Digits Work (EAN-13, UPC-A, ITF-14)

The last digit of an EAN-13, UPC-A, EAN-8 or ITF-14 is not part of your number - it is a check digit, a small piece of math that lets the scanner detect a misread before it enters the till. It is always computed from the other digits, so you should never have to type it.

What a check digit does

If a barcode is scratched or scanned at an angle, one digit can read wrong. The check digit makes the scanner verify the whole number: if the check does not match, the scan is rejected and re-read. That one digit prevents most mis-scans from ever reaching the checkout or stock system.

How it is calculated

For the EAN/UPC family and ITF-14, the rule is the same: starting from the right, alternate the weights 3 and 1 across the digits, add them up, and the check digit is what brings the total to a multiple of 10. Because the math is fiddly to do by hand and easy to get wrong, barcode generators compute it automatically from the number you enter.

Why you should never type a check digit

If you type 13 digits for an EAN-13, the last one must be the correct check for the first 12 - and a wrong one makes an invalid, non-scannable code. The safe habit is to enter only the real digits (11 for UPC-A, 12 for EAN-13, 13 for ITF-14) and let the generator append the check digit for you.

Which barcodes have check digits

  1. EAN-13, UPC-A, EAN-8, ITF-14, GS1-128 (GS1 fields): always have a check digit.
  2. Code 128 and Code 93: include an internal check character, handled automatically.
  3. Code 39 and Code 32: check optional; Code 32 adds its own check character.
  4. QR, DataMatrix and other 2D codes: error correction instead of a check digit.

Reference

Frequently Asked Questions

Do I need to type the last digit of a barcode?
No. Enter the number without the check digit (11 digits for UPC-A, 12 for EAN-13) and the generator calculates and appends it.
What happens if I type a wrong check digit?
The barcode may render but is invalid - retail and Amazon systems can reject it. Let the generator compute the check digit to stay valid.
Do QR codes have check digits?
QR and other 2D codes use built-in error correction instead, so there is no separate check digit to enter.
Can I use this generator to check my number?
Yes - paste the digits without the final one and the generator shows the correct check digit, so you can verify the number you were given.

Related barcode tools

Related guides