Barcode validator: check if a barcode is valid

Validate EAN-13, UPC-A, UPC-E, ISBN-10/13, and GTIN-8/12/13/14 in one place. The tool tells you why a code is invalid, such as a wrong length, an invalid prefix or a bad check digit.

How to check if a barcode is valid

A barcode is valid when it has the right number of digits for its type and its last digit matches the GS1 check digit of the digits before it. The validator above runs these checks in this order:

  1. Length. 8 digits for GTIN-8, 12 for UPC-A, 13 for EAN-13 and ISBN-13, 14 for GTIN-14. ISBN-10 has 10 characters and can end in X.
  2. Prefix. An ISBN-13 starts with 978 or 979. A UPC-E must expand to a correct UPC-A.
  3. Check digit. Leave out the last digit. Multiply the other digits by 3, 1, 3, 1 from the right and add them up. The last digit must bring that sum to the next multiple of ten.

A valid code is not always a registered one: the math can pass for a number that no brand uses. To see which product a valid code belongs to, open the sneaker barcode lookup or the style code lookup. To compute a missing last digit, use the check digit calculator. To change a UPC into an EAN or a GTIN-14, use the GTIN converter. The parts of a 13-digit code are in what is EAN-13.

Supported barcode standards

This validator is built for common retail and publishing identifiers used in GS1 and ISBN workflows:

How to interpret invalid results

Incorrect length: each identifier has strict digit counts, so missing or extra digits always fail even when the rest of the number looks correct.

Invalid prefix: some standards reserve specific prefix ranges. ISBN-13 should begin with 978 or 979, and UPC-E has number-system constraints.

Bad check digit: GS1-style modulo 10 checks (plus ISBN-10 checksum rules) catch common transposition and keying mistakes.

If your code validates but is still rejected by a channel, the cause is usually registration, ownership or data-mapping rules, not check-digit math.

Example codes copied from documentation often fail the check digit. See our study of invalid example barcodes in public documentation.

Which product is this barcode?

Checking a sneaker or streetwear barcode? Look it up to see the product it belongs to. Free, no account.

Have manufacturer style codes in a CSV? Enrich your catalogue in bulk. For a recurring integration, the barcode lookup API returns product, size and images for each code, with a 7-day free trial. The sneaker price API adds resale prices for the size of each barcode.

Learn more