Home / Free tools / GTIN and UPC checker

GTIN checker and UPC check digit validator

A GTIN is valid when it has 8, 12, 13 or 14 digits and its last digit matches the GS1 check digit calculated from the others. Paste your codes below to see which ones fail and why.


Runs in your browser. Nothing you paste or open here is uploaded; it stays on your device.

How to use it

  1. Paste your product codes into the box, one per line, or load a CSV export of your catalog.
  2. Read the result table. Each failing code shows the problem and, for a wrong last digit or dropped leading zeros, a suggested fix.
  3. Compare failing codes with the product packaging or your supplier's sheet. Do not just accept the suggested fix, since a typo in any digit breaks the check.
  4. If a code is missing its check digit, type the digits into the calculator to get the full code.
  5. Correct the codes in your store or feed, then resubmit. Download the results as a CSV to hand to whoever maintains the catalog.

GTIN formats at a glance

Valid GTIN lengths
LengthNameWhere you see it
8GTIN-8 (EAN-8)Small packages
12GTIN-12 (UPC-A)North American retail products
13GTIN-13 (EAN-13)Most of the rest of the world, and books as ISBN-13
14GTIN-14Cases and multipacks

Google Merchant Center also needs the right code for the right item: a GTIN for a multipack belongs to the multipack, not the single unit. See the guide to missing or incorrect GTIN, which also covers limited performance from a missing GTIN.

Questions

How is the GTIN check digit calculated?

Number the digits from the right, starting at the one before the check digit. Multiply the first by 3, the next by 1, then keep alternating 3 and 1. Add everything up. The check digit is the amount needed to reach the next multiple of 10.

Which GTIN lengths are valid?

8 digits (GTIN-8), 12 (UPC-A), 13 (EAN-13) and 14 (GTIN-14). Anything else, such as 10 or 11 digits, is usually a code that lost a leading zero or its check digit.

Why did my spreadsheet break my UPCs?

Spreadsheets treat long digit strings as numbers. They drop leading zeros and can switch to scientific notation like 1.23457E+11, which permanently cuts the digits. Format the column as text before pasting or importing.

Can I invent a GTIN for a product that has none?

No. GTINs are issued by GS1 to the brand owner, and Google checks submitted ones against its records. Use the real code. For custom or vintage items, mark identifier_exists as false instead of making a number up.

Does a valid check digit mean the GTIN is correct?

Not by itself. It proves the digits are consistent, not that the code belongs to your product. A code with a valid check digit can still be a different item's code, which Merchant Center can also flag.

Why are some valid codes marked as reserved prefix?

GS1 sets aside certain prefixes, such as 02, 04, 05 and 20 to 29, for in-store, variable-weight and coupon use. They pass the math but are not unique worldwide, so they do not work as product GTINs.

Sources

A bad GTIN is only one thing Merchant Center flags

The Missing or incorrect GTIN guide covers why Merchant Center shows the message, how to fix it and what to check on your site. Merchant Center also reviews the store behind the feed, and Listvane scans your site for what those reviews look at, such as missing policies, thin contact details and checkout problems, with a score before you pay.

Read the GTIN fix guide