Skip to the content
Start free

Barcode look-up

A barcode look-up is a web address that turns a product’s barcode number (its GTIN) into the product’s full record, so a person or an AI holding only the barcode can get the facts back. The number is the same in every shop, so it is a clean way to say “this exact product”. A look-up only helps if the number is genuine, written the same way everywhere, and answers clearly when it is unknown.

What is the number behind a barcode? #

GS1 UK’s page on GTINs and barcodes says the GTIN is “the number you see under a barcode”, also known as an EAN or UPC, and “a globally unique identification number for an item or product”. The stripes are just a way for a scanner to read it. GS1 UK describes GS1 as “the only authorised provider of unique GTINs”. See GTIN (barcode number) for the number itself.

Which barcode carries which number? #

GS1 UK’s guide to types of barcodes lists the common ones:

Barcode Number it carries Where it is used
EAN-13 GTIN-13 retail tills and general distribution, worldwide
UPC-A GTIN-12 mostly US retail
EAN-8 GTIN-8 very small packs, such as small sweets and cosmetics
ITF-14 the GTIN cases and cartons, printed on cardboard
GS1-128 GTINs, batch, serial and dates pallets and logistics units
GS1 DataMatrix lots of data in a small square mainly healthcare

Google ties GTINs to product matching. Its merchant listing guide says to “Include all applicable global identifiers” and to “use the most specific GTIN that applies to your product”. In Google Merchant Center, the GTIN attribute is “Recommended for all products with a GTIN assigned by the manufacturer”. Google says a product that has a GTIN and leaves it out “could be disapproved”, and missing or wrong GTINs “may have limited visibility”. See Merchant Center disapprovals, free product listings and Shopping ads. The same number belongs in a Meta catalogue and any other product feed you send out.

Why does it matter for AI answers? #

An AI assistant comparing products has to know that two pages describe the same thing. Names change from shop to shop; the GTIN does not. A barcode on your page, in your product structured data and in your shopping feed ties them together as one entity. Shops that copy the manufacturer’s text end up with duplicate product descriptions; the GTIN still ties every copy to one product. A wrong or reused number does the opposite: it can merge your product with someone else’s, the kind of mix-up behind an AI hallucination. As AI agents start buying for people, see agentic commerce, an exact product number matters more, not less. See selling through ChatGPT.

How is the number written? #

There are three common forms, and they disagree on leading zeros:

  • Schema.org. The gtin property takes “an all-numeric string of either 8, 12, 13 or 14 digits, or a “GS1 Digital Link” URL based on such a string”. It says “Left-padding of the gtin values is not required or encouraged”, and the value should have a valid GS1 check digit.
  • Google. The merchant listing guide says “Make sure the GTIN value is in the numerical form; we don’t support the URL form for GTINs.” Its example uses "gtin14": "00012345600012".
  • GS1 Digital Link. The web address form pads every GTIN to 14 digits (see below).

So in your schema markup, use the plain number as it is printed. In a web address, use the padded Digital Link form.

GS1 publishes the Digital Link standards for putting its identifiers into web addresses. One explains the address syntax. Another, the GS1-Conformant Resolver Standard, covers “Resolving GS1 identification keys to one or more sources of related information and/or services”. That is exactly what a barcode look-up does. The URI syntax standard (release 1.7.0, ratified August 2026) gives this as the canonical address for the GTIN 9520123456788:

https://id.gs1.org/01/09520123456788

The 01 marks the number that follows as a GTIN. The barcode has 13 digits, but the address has 14: the standard says GTIN-8, GTIN-12 and GTIN-13 numbers get leading zeros to reach 14. More can follow. A batch number (10) or serial number (21) goes in the path; an expiry date (17, as YYMMDD) goes in the query string.

A worked example #

A garden centre wants a look-up so that anyone holding a barcode can reach the right product. It plans the rules first:

  1. Clean the input. Remove spaces and dashes. Google’s Merchant Center help says it accepts them but ignores them; a look-up should do the same.
  2. Normalise. Pad to 14 digits inside the look-up, so 9520123456788 and 09520123456788 find the same product. They are the same GTIN.
  3. Validate. Reject a number with the wrong length or a wrong check digit, with a plain message.
  4. Keep the address simple. One short, stable URL pattern, such as /barcode/9520123456788, is easy to share and to test. See SEO-friendly URL.
  5. Answer. A known barcode sends a 301 redirect to the product page, the one named in its canonical tag. Each size or flavour has its own GTIN, so each lands on its own variant.
  6. Say “not found” properly. An unknown barcode returns a real 404 with a short page, not the home page. See 404 and 410 and soft 404.

In the product’s structured data the same number appears as printed:

"gtin13": "9520123456788",

Where do genuine numbers come from? #

From GS1, through membership. GS1 UK’s get a barcode page says membership is based on annual turnover and the number of barcodes you need, starting at £50 a year for 10 barcodes (24 November 2026, excluding VAT). It says the numbers are “permanently registered in the global GS1 database”. GS1 UK warns that a number bought elsewhere may already be used by another organisation: “It may not even be a genuine GTIN.” That can get products delisted by marketplaces or rejected by retailers. Google’s help says the same in its own way: only submit a GTIN if you are sure it is correct, never make one up, and give each variant its own number. It also refuses GTINs in the restricted prefixes 02, 04 and 2, and the coupon ranges 05, 98 and 99.

Can I check a number someone else gave me? #

Yes, within limits. GS1 UK’s Verified by GS1 search checks a product’s identity against data from manufacturers, and “is limited to 30 searches per day”. The GTIN Check API checks three things: the number’s format, whether its company prefix is licensed to a GS1 member, and whether it matches a record in the GS1 Global Product Registry. GS1 UK says it is built for GS1 UK partners who have been given a key.

Common mistakes #

  • Storing barcodes as numbers in a spreadsheet, which silently drops the leading zeros.
  • Putting your own stock code in the gtin field. A SKU is yours; a GTIN is issued through GS1. Google defines sku as “The merchant-specific identifier for the product”.
  • Putting a Digital Link address in Google’s GTIN field. Google wants the number.
  • One GTIN on every colour and size.
  • Different numbers on the page, in the schema and in the feed.
  • A look-up that sends every unknown barcode to the home page.

How to check it #

  1. Run the Schema Markup Checker on a product page and find gtin, gtin13 or gtin14. If it is missing, the schema generator writes the markup, and the structured data facts extractor lists what is already there.
  2. Check the number matches the barcode on the pack, digit for digit, and that each variant has its own.
  3. Run the Product Page Checker for schema, images, reviews and delivery details together, and the online shop checker for the whole shop.
  4. Check your feed with the product feed checker. If you build it from a spreadsheet, convert it with the CSV to JSON converter and look for lost zeros.
  5. Make sure every copy agrees. The AI Consistency Checker compares the page, schema, llms.txt and feeds. The llms.txt Checker and the Markdown Version Checker show what AI reads.
  6. Test the look-up itself. The Redirect Checker follows a known barcode to its product page. The HTTP Header Checker should show a 404 for a made-up barcode. The Canonical Tag Checker confirms the page it lands on.
  7. Run Can Google index this page? on the product page, and the Image SEO Checker on its pictures. See image SEO.
  8. Run the AI Readiness Checker for the whole site.

Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day. In URSY Pro, opening in stages: the product schema monitor, the Truth Spine for products, with every product fact and its receipt, and AI shopping feeds.

What URSY.com counts #

We count reads, not pages: a bot reading the same page 10 times is 10 requests, and “pages read” figures use distinct paths. So we can show whether AI crawlers ever fetch your product pages and look-up addresses. Bot names are checked against 18 official IP lists, and query strings are never stored, only the path. See our methodology.

Questions #

Is a barcode the same as a GTIN? #

Not quite. The GTIN is the number; the barcode is the printed symbol a scanner reads. GS1 UK calls the GTIN “the number you see under a barcode”.

Should I add leading zeros? #

Not in your schema markup: schema.org says padding is not required or encouraged. A GS1 Digital Link address always uses 14 digits.

Can I make up a GTIN for my own products? #

No. Genuine GTINs come through GS1, and Google says never to guess or make one up.

What if my product has no GTIN? #

Google says products without a GTIN do not need one. Its merchant listing guide also lists mpn, “The manufacturer part number”.

Can I look up any barcode for free? #

GS1 UK’s Verified by GS1 search allows 30 searches a day.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Barcode look-up. URSY. Updated 26 November 2026. https://ursy.com/wiki/barcode-look-up/ · Section links

Tools for this

All 871 wiki entries, A to Z →