GTIN, EAN, UPC: the identifier that lets AI recognize your products
Updated November 26, 2026 · Gridnorm product team
In short
A GTIN is the global number a manufacturer assigns to each item (UPC-A with 12 digits in North America, EAN-13 in Europe). Shopping engines and AI assistants use it to recognize the same product across sellers. A GTIN must have a correct check digit, must not start with a reserved prefix (2, 02, 04 for in-store codes; 05, 98, 99 for coupons) and must never be made up. Without a GTIN, provide the brand and the manufacturer part number (MPN).
Why the GTIN matters to AI assistants
When a shopper asks for “this fitting at the best price”, the assistant has to know that your page and a competitor's describe the same item. Titles and descriptions vary from site to site; the GTIN is the same everywhere. It is the key that links your data to comparisons, reviews and availability.
Google Merchant Center requires the GTIN for mass-produced products that have one, and the ChatGPT product feed carries it in the gtin field. A page with no identifier, or a wrong one, is less likely to be shown.
EAN-13, UPC-A, GTIN-8, GTIN-14
| Format | Digits | Use | Example |
|---|---|---|---|
| UPC-A (GTIN-12) | 12 | United States, Canada | 036000291452 |
| EAN-13 (GTIN-13) | 13 | Europe and most countries | 4006381333931 |
| EAN-8 (GTIN-8) | 8 | Small items | 96385074 |
| ITF-14 (GTIN-14) | 14 | Cases and multipacks | 10012345678902 |
A UPC-A can also be written with 13 digits by adding a leading 0: 036000291452 and 0036000291452 are the same item. Do not list them as two products.
Checking the check digit
The last digit is computed from the others. Starting from the right (without the check digit), multiply alternately by 3 and 1, add everything up, then take the difference to the next multiple of 10.
- Example 400638133393: 3×3 + 9×1 + 3×3 + 3×1 + 1×3 + 8×1 + 3×3 + 6×1 + 0×3 + 0×1 + 4×3 + 0×1… = 89.
- Next multiple of 10: 90. Check digit = 90 − 89 = 1.
- The full code is 4006381333931.
Codes Google rejects
- Prefixes 2, 02 and 04: reserved for internal use (weighed items, in-store codes).
- Prefixes 05, 98 and 99: reserved for coupons.
- Made-up or borrowed codes: never use another product's GTIN to signal compatibility (ink cartridges, accessories).
An in-store code stays useful in your shop, but it must not be sent as a GTIN in your feeds.
When a product has no GTIN
Custom work, handmade items, manufacturer-specific parts: provide the brand (brand) and the manufacturer part number (mpn). If you are the manufacturer and the only seller, put your own reference in mpn. Set identifier_exists to no only when the product truly has neither GTIN nor MPN; misusing it hurts visibility.
Checking your codes automatically
Gridnorm checks the check digit of every EAN, UPC or GTIN extracted from your catalogs, flags rejected prefixes and only sends publishable codes to your feeds. Missing codes are flagged, never invented. Try the product page check.
Frequently asked questions
Are UPC and GTIN the same thing?
UPC-A is the 12-digit form of the GTIN used in North America. GTIN covers the whole family (8, 12, 13 and 14 digits).
Can I buy cheap barcodes online?
Codes should be assigned by GS1 to the brand owner. Resold codes may already belong to another product and be rejected.
Is a code starting with 2 valid?
It may have a correct check digit, but it is reserved for internal use: Google rejects it as a GTIN.
What if my product has no barcode?
Provide the brand and manufacturer part number (MPN). Only set identifier_exists to no if the product has neither GTIN nor MPN.
How do your current product pages score?
Paste a product page URL and see in 20 seconds which attributes AI assistants are missing.
Related integrations
Related guides
Official sources
- Google Merchant Center — GTIN [gtin]
- Google Merchant Center — Identifier exists [identifier_exists]
- Google Merchant Center — Restricted GTIN
- GS1 — How to calculate a check digit
Written by the team that builds Gridnorm's connectors and feed generators, based on the official specifications listed at the end.