Check Product $1.00 / 1,000 calls

EAN or GTIN code exists (EAN 8/12/13/14/18, GTIN 8/12/13/14)

What this tool does

This tool tells whether an EAN or GTIN barcode is well formed: it checks that the code contains only digits, that its length is one of the retail/logistics lengths (EAN 8, 12, 13, 14, 18 and GTIN 8, 12, 13, 14) and that its check digit matches the GS1 modulus-10 calculation. Numbers shorter than 13 digits are zero-padded to 13 before the check, mirroring the legacy behaviour, so a UPC-A and its EAN-13 form are treated as the same code.

When to use it

  • Filtering a product feed and dropping malformed EAN or GTIN codes.
  • Validating codes coming from an ERP, a scanner or a CSV before import.
  • Checking a GTIN 14 case code from a logistics file.

What to expect

A yes/no verdict: true when the code is numeric, has an accepted length and its check digit is correct, false otherwise. The check is local and instant.

Limitations

  • It validates the code format only; it does not confirm that the product exists or is registered.
  • Lengths other than 8, 12, 13, 14 and 18 are rejected.
  • Values with spaces, hyphens or letters must be cleaned before calling.

When it fails

  • The value contains non-digit characters.
  • The length is not one of the accepted EAN/GTIN lengths.
  • The check digit does not match the GS1 calculation.

Good to know

  • EAN and GTIN share the same check-digit algorithm: GTIN 13 is EAN 13 and GTIN 12 is UPC-A.
  • For a length-agnostic check use the canonical EAN or GTIN code is valid tool.

Input data

Parameter Required Example Description
code Yes 0635753490879 Enter the EAN or GTIN code as text (EAN 8/12/13/14/18 or GTIN 8/12/13/14, for example '40063812' or '4006381333931'). This field is required. The legacy parameter names 'ean' and 'gtin' are also accepted.

Output data

Field Description
result A yes/no indicator showing if the barcode format is mathematically valid. It will always be 'False' for this specific tool configuration, meaning it does not confirm live product existence.