Skip to content
TrySitePrice

GTIN, UPC and EAN validator

Paste one number or a column of them. Each is stripped of spaces and hyphens, checked for a real GTIN length, and tested against the check digit the rest of its digits require — with the arithmetic shown rather than just a verdict.

One per line, or separated by commas. Spaces and hyphens are ignored. Checked in this tab — nothing is looked up or sent anywhere.

Nothing to check yet

Paste one number or a whole column. Each one is checked for a valid GTIN length and for whether its last digit is the check digit the rest of the number requires.

This is a format check, not a lookup. A number that passes is well-formed; whether it is actually assigned to a product, and to which one, is something only GS1's own registry can answer. The arithmetic above is the standard EAN/UPC modulo-10 calculation. The four valid lengths and the fact that the final digit follows the standard modulo 10 calculation are documented — the Wikipedia article on the Global Trade Item Number states both — but the weighting itself, alternating 3 and 1 from the rightmost data digit, is not quoted from GS1 here, because GS1's own page describing it was not reachable when this tool was written.

Questions about GTINs

01What is the difference between a GTIN, a UPC and an EAN?

They are the same numbering scheme at different lengths. UPC-A is the twelve-digit form used in North America, EAN-13 the thirteen-digit international form, EAN-8 the short form for small packages and ITF-14 the case or pallet code. GTIN is the umbrella name, and all four share one check digit calculation. One thing the names hide: an EAN-8 is not a shortened EAN-13 — it is a separate allocation a brand applies for, because the package is too small to carry the longer barcode.

02Can I just add a zero to turn a UPC into an EAN?

Yes — leading zeros are how the shorter forms are expressed at a longer length, and the check digit does not change, which is why the padded 14-digit form is shown for each valid number. What you cannot do is remove digits from the front of a longer code to shorten it.

03Is an ISBN a GTIN?

ISBN-13 is, and it validates here like any other thirteen-digit code. The older ten-digit ISBN is not: it uses a modulo-11 calculation with a possible X as its check character, so it is reported as an invalid length rather than quietly run through the wrong arithmetic.

04My number passes. Does the product exist?

Not necessarily. This is a format check — it proves the digits are internally consistent, not that the number was ever assigned or to what. Only GS1's own registry can answer that, and nothing here is looked up.

Related checks

The same identifiers are checked in context by the Merchant Center feed validator, and on the landing page by the product schema validator.