Skip to content

Tools

Check a barcode

Type the digits under the bars and we'll check whether the barcode (EAN, UPC or GTIN) is valid: whether it's well formed, what type it is and what its prefix says, and doesn't.

Between 8 and 14 digits, with or without spaces. Example: 8 410000 00000 0

The parts of an EAN-13 code

The barcode of a supermarket product has 13 digits (GTIN-13). This is how they're divided:

Company prefix · 7 to 10 digits
It identifies the company that registered the code. Its first three digits are the GS1 prefix of the organisation that issued it (84… in Spain).
Product reference · up to digit 12
The company assigns it to each of its products: it's what tells one item from another.
Check digit · digit 13
It's calculated from the other twelve to detect reading errors. It isn't product data.

Frequently asked questions about barcodes

What is a GTIN?

GTIN stands for Global Trade Item Number: the number that identifies a product all over the world. The barcode of a supermarket product is a 13-digit GTIN (GTIN-13 or EAN-13). There are also GTIN-8, GTIN-12 (UPC-A) and GTIN-14 (cases). Full definition in the glossary (in Spanish)

How do I know whether a barcode is valid?

It has to have 8, 12, 13 or 14 digits, and its last digit, the check digit, must match the one calculated from the others. Type it above and we'll check it. How the check digit is calculated

What's the difference between EAN-13 and UPC-A?

UPC-A has 12 digits and is used mainly in the United States and Canada. A UPC-A is equivalent to an EAN-13 with a 0 in front, and today's till scanners usually read both. What an EAN-13 is, in the glossary (in Spanish)

Can you tell where a product is from by its barcode?

No. The first three digits say which GS1 organisation gave the code to the company, not where the product was made or where what it contains comes from. To know the origin, check the label or the product page. What the prefix says (and doesn't)

How do I know who a barcode belongs to?

GS1 offers a public lookup, Verified by GS1, where you search for a GTIN to see the company that registered it. That tells you who registered the code, not where the product comes from: for the origin, check the label or the product page. Look it up in Verified by GS1

Which barcode do I need to sell on Amazon?

Amazon identifies each product with a GTIN (an EAN, a UPC…) and each one must have its own, unique code. If you sell a product that's already in its catalogue, you don't have to provide one. Amazon checks UPCs against the GS1 database and recommends getting them from GS1 rather than from resellers. Guide: barcodes for Amazon (in Spanish)

Other tools

See all the tools

Where to start with barcodes? Start here (in Spanish): short, free paths in the Academy, depending on what you're here to do.