Skip to content

EAN and GTIN Validator

Paste an EAN-13, EAN-8, UPC-A or GTIN-14 number and the tool detects the format, checks the last digit and shows what it should be. You can also complete a code that is missing its check digit, or paste a whole list, one code per line, and validate everything at once.

One code per line: EAN-13, EAN-8, UPC-A or GTIN-14. A code missing its last digit is completed.

3 of 4 valid

CodeFormatResult
5901234123457EAN-13Valid
96385074EAN-8Valid
036000291452UPC-AValid

As an EAN-13 body the full code would be 0360002914522.

5901234123458EAN-13Invalid

Wrong check digit. It should be 7.

Your data stays on your device.

How does it work?

  1. 1Paste or type one or more codes, one per line.
  2. 2The tool detects each format from its digit count: 8, 12, 13 or 14 digits.
  3. 3Read the verdict for every line: valid or invalid, with the correct check digit shown.
  4. 4If a code is missing its last digit, copy the completed version the tool proposes.

What is EAN / GTIN Validator?

EAN, UPC and GTIN are one family of product numbers managed by GS1. Only the length changes. GTIN-8 (EAN-8) has 8 digits and is used on very small packs. GTIN-12 (UPC-A) has 12 digits and is common in North America. GTIN-13 (EAN-13) has 13 digits and is used almost everywhere else. GTIN-14 has 14 digits and identifies cartons or cases that contain trade items.

In every format the last digit is a check digit. Starting from the digit next to it and moving left, the other digits are multiplied alternately by 3 and 1, the results are added up, and the check digit is whatever brings the total up to the next multiple of 10. This catches every single-digit typing error and most swaps of two neighbouring digits.

A valid check digit only shows that a number is well-formed. It does not prove that the number has been issued to a company or attached to a real product. To be listed by retailers, a number must come from GS1 or its national member organisation.

When should you use it?

  • You typed or imported product numbers into a spreadsheet and want to catch typos before uploading a catalogue.
  • A marketplace or retailer rejects a code and you need to know whether the check digit is the reason.
  • You have a list of 12-digit stems from your own numbering and need the missing final digit.
  • You want to audit an entire export of barcodes quickly, one code per line.

The GTIN family at a glance

GTIN-8 / EAN-8: 8 digits, for small items with little room for a symbol.

GTIN-12 / UPC-A: 12 digits, the standard retail code in the United States and Canada. A UPC-A is the same as an EAN-13 with a leading 0, and the check digit is identical.

GTIN-13 / EAN-13: 13 digits, the worldwide retail standard. ISBN-13 book numbers are EAN-13 numbers beginning with 978 or 979.

GTIN-14: 14 digits, the first of which is the packaging indicator. It is printed on cartons, often as ITF-14 or GS1-128.

Privacy

This tool runs in your browser. What you type, paste or open is processed on your device by JavaScript and is not sent to our servers, stored or shared. Your data stays on your device.

Frequently Asked Questions

How does the tool decide which format a number is?

By length after removing spaces and hyphens: 8 digits is EAN-8, 12 is UPC-A, 13 is EAN-13 and 14 is GTIN-14. Only digits are allowed, so a letter or another character will be reported as invalid.

Can I check many codes at once?

Yes. Paste one code per line and each line gets its own result, so a mixed list of EAN-13, UPC-A and other codes can be checked in a single pass.

Is a UPC-A the same as an EAN-13?

They are compatible. Add a 0 in front of a UPC-A and you have a valid EAN-13 with the same check digit, which is why scanners around the world read both.

My check digit is valid, so is the code registered?

Not necessarily. The check digit only protects against typing mistakes. Whether a number belongs to a brand is recorded by GS1, not by the number itself.