Calculate and validate barcode check digits

Calculate or validate the last digit used by many retail barcode numbers.

GTIN check digit

Validate
Paste the number with or without spaces. 7 and 11 digit bodies get a check digit. 12 and 13 digit numbers are shown both ways, since they can be a complete code or a body.
As a complete code: invalid (check digit should be 2). As a body without a check digit: the full code would be 5901234123457.

Two readings

712 digits entered
A valid check digit only proves the number passes the math rule. It does not prove the number is officially assigned to you.

When to check a barcode digit

Check digit calculators catch simple typing errors before a barcode is generated or printed. They do not prove ownership of a number, but they do tell you whether the number passes the expected math rule.

Use it as a math check

A check digit catches typing errors, not ownership problems.

  • Enter only the digits required for the chosen format.
  • Compare the result with your product or shipment record.
  • Recheck the full number after copying it into artwork.

Passing the math check does not make a number officially assigned.

Calculate or validate a check digit

  1. Enter the barcode number body to calculate a check digit or the full number to validate it.
  2. Use the EAN, UPC, GTIN or ISBN-specific calculator when you know the exact format.
  3. Compare the calculated or validation result with your product, book or logistics record.
  4. Fix any typing or padding mistake before generating barcode artwork.
  5. Remember that a valid check digit is not the same as official number assignment.

Where check digits help

  • GTIN checks
  • EAN checks
  • UPC checks

Number checks before artwork

  • Check digits catch common typing errors before labels are printed.
  • Use GTIN validation for GTIN-8, GTIN-12, GTIN-13 and GTIN-14 values.
  • Use ISBN-specific checks for book identifiers because ISBN-10 and ISBN-13 use different rules.

Check digit mistakes to avoid

  • Using a valid check digit as proof that a product, book or carton number is officially assigned.
  • Letting spreadsheets remove leading zeros before validation.
  • Mixing EAN, UPC, GTIN and ISBN rules instead of using the format-specific calculator.

Check digit questions

What is a check digit?

A check digit is the final digit calculated from the other digits. It helps scanners and systems catch common number entry errors.

Does a valid check digit prove the number is official?

No. It only proves the number passes the math rule. Check your GS1 account or ISBN registry to confirm the number is assigned to your product or book.

Can I use this before making a barcode?

Yes. It is a useful step before generating EAN, UPC, GTIN or ISBN barcode artwork.

Where do I find my product's GTIN?

Use your official product records, GS1 records, retailer setup documents or packaging data source. Do not copy a GTIN from another product or invent one because the check digit happens to validate.

How does the modulo 10 check digit formula work?

The digits are multiplied by alternating weights of 1 and 3, then summed. The check digit is whatever number brings that total up to the next multiple of 10. This catches most single-digit errors and transpositions.

Can a random number pass the check digit test?

Yes. About 1 in 10 random numbers will have a valid check digit by chance. That is why passing the math test does not prove the number is registered or belongs to any product.

Do different barcode types use different check digit formulas?

UPC, EAN and GTIN all use the same modulo 10 formula with 1 and 3 weights. ISBN-10 uses a different modulo 11 system. Use the format-specific calculator to avoid mixing up the rules.