Check Product $1.00 / 1,000 calls

EAN or GTIN code is valid (EAN 8/13/14/18, GTIN 8/13/14)

What this tool does

This tool tells whether an EAN or GTIN barcode is valid: it checks that the number contains only digits and that its check digit matches the GS1 modulus-10 calculation. It covers EAN 8/13/14/18 and GTIN 8/13/14 (GTIN 12 is UPC-A), so the same call validates retail units, logistics cases and EDI codes.

When to use it

  • Validating a scanned EAN or GTIN barcode before saving it.
  • Cleaning a product list and removing codes with a wrong check digit.
  • Checking GTIN 14 case codes from logistics or EDI files.
  • Confirming an EAN 8 code read from a small retail package.

What to expect

You get a yes/no verdict: true when the number contains only digits and its last digit is the correct GS1 check digit, false otherwise. The check runs locally and answers instantly.

Limitations

  • It validates the checksum only; it does not check that the product exists or is registered.
  • It does not enforce a specific length: EAN 8/13/14/18 and GTIN 8/13/14 are all accepted.
  • Values with spaces, hyphens or letters are rejected unless they are cleaned first.

When it fails

  • The value contains letters, spaces or separators instead of digits only.
  • The check digit does not match the GS1 calculation.
  • The value is empty or has fewer than two digits.

Good to know

  • EAN and GTIN share the same check-digit algorithm: GTIN 13 is the same as EAN 13 and GTIN 12 is UPC-A.
  • The size-specific checks (EAN 8, GTIN 14 and so on) remain available and delegate to this tool.

Input data

Parameter Required Example Description
code Yes 40063812 Enter the EAN or GTIN code as text (EAN 8/13/14/18 or GTIN 8/13/14, for example '40063812', '4006381333931' or '12345678901231'). This field is required. The legacy parameter names 'ean' and 'gtin' are also accepted. If the value contains non-digits or its check digit is wrong, validation fails.

Output data

Field Description
result A yes/no indicator showing whether the provided EAN format is valid (true) or invalid (false).