Is this barcode number valid?

Paste one barcode number or a list, one per line: EAN-13, UPC, GTIN-8 or GTIN-14. You see whether the length and the check digit are right, the right check digit when it is not, and the GS1 prefix range the number falls in.

One number per line. Spaces and dashes are ignored. Up to 5,000 lines; the list never leaves your browser.

What it checks

  • The length. A GTIN has 8 digits (GTIN-8, EAN-8), 12 (GTIN-12, UPC-A), 13 (GTIN-13, EAN-13) or 14 (GTIN-14). Spaces and dashes are ignored. A number that lost its leading zero in a spreadsheet, or was typed without its check digit, is pointed out.
  • The check digit. The last digit is worked out from the others with GS1's method: from the right, the digits are multiplied by 3, 1, 3, 1 and so on, the results are added up, and the check digit is what takes the sum to the next multiple of ten. The page shows the sum, so you can follow it. Source: GS1, how to calculate a check digit manually.
  • The GS1 prefix. The first digits of the 13-digit form of the number, matched against GS1's list of prefixes: the GS1 office that issued the company prefix, or what the range is kept for, such as books (978 and 979), periodicals (977), coupons or numbers for use inside a company. A UPC is read with a zero in front, as GS1 says, and a GTIN-14 without its first digit. Source: GS1 Company Prefix, read in November 2026.
  • Duplicates in a list. The same number written as a UPC and as a 13 or 14-digit GTIN counts as one. The CSV has every line with its result.

What it cannot tell you

A valid check digit does not prove the number is registered to anyone. Any twelve digits can be given a correct thirteenth. Whether a number was issued to a company, and to which product, only GS1 can say through its own lookup services.

The prefix is not the country of origin. GS1 says its prefixes do not identify where a product was made: 520 means the company prefix was issued through GS1 Association Greece, and the product may be made anywhere.

GTIN-8 prefixes are not read, and the tool does not read barcode images. Nothing you paste leaves your browser.

Questions

Does a barcode starting with 520 mean the product is Greek?

No. GS1 lists 520 and 521 for GS1 Association Greece, so the company that owns the number got its company prefix there. GS1 says its prefixes do not identify the country of origin, because companies make their products anywhere in the world.

What is the difference between EAN, UPC and GTIN?

GTIN is GS1's name for all of them. EAN-13 is a 13-digit GTIN, UPC-A a 12-digit one, EAN-8 an 8-digit one. A 12-digit UPC is the same number as the 13-digit GTIN with a zero in front: GS1 calls it an implied leading zero.

What is a GTIN-14?

A number for a pack or case of products. Its first digit is the indicator: 1 to 8 for packaging levels and 9 for items of varying weight or size, as GS1 Sweden's guide explains. A GTIN-14 that starts with 0 is a shorter GTIN padded with zeros.

How do I check the GTINs in my Google Shopping feed?

Paste the GTIN column here for the check digits and the prefixes. To check the whole feed, including the other fields, use the Merchant Center feed checker.