Logo von nextlevels
DEEN
Request a project

GTIN (Global Trade Item Number)

Last updated on

In short

The GTIN (Global Trade Item Number) is the globally unique identification number for a trade item. It sits behind every barcode on a package and ensures that a particular item (in exactly one version, size and colour) is named unmistakably worldwide.

Anyone who scans a bottle of cola in the supermarket is essentially reading a GTIN. For e-commerce, it is far more than a checkout barcode: it is the key with which marketplaces, price comparison engines, Google Shopping and increasingly also AI answer engines assign a product unambiguously to a data record.

GTINs are issued and administered by the international standards body GS1. To do this, a retailer buys a so-called base number (GS1 company prefix) from its national GS1 organisation and forms the individual item numbers from it. It is precisely this central, controlled allocation that is the reason why a GTIN is considered a trustworthy identifier: it is not made up freely but tied to a registered company. Without this anchoring, the number would just be an arbitrary sequence of digits; only the unambiguous assignment to a real company makes it a reliable signal for retail and search engines.

A brief look at the history

The roots of the GTIN go back to the early 1970s. In the USA, the Universal Product Code (UPC) became the first barcode to be used on a wide scale; the first item scanned commercially was a packet of chewing gum in 1974. Europe followed shortly afterwards with the European Article Number (EAN), which extended the American code by one digit to represent country codes. For decades, UPC and EAN existed side by side, which made international trade unnecessarily complicated.

In 2005, the responsible organisations were unified under the GS1 umbrella, and in 2009 GS1 brought the various barcode standards together under the umbrella term GTIN. Since then, EAN has no longer been a standard in its own right, merely the familiar name for a particular GTIN length. This history explains why three terms (EAN, UPC and GTIN) are still often used for the same number in practice today.

Structure and variants of the GTIN

The GTIN is a purely numerical code that comes in different lengths depending on region and use case. The common forms are:

  • GTIN-13 – corresponds to the classic European EAN-13 barcode, the standard in German-speaking retail.
  • GTIN-12 – corresponds to the North American UPC-A code.
  • GTIN-8 – the shortened variant (formerly EAN-8) for very small packages on which a 13-digit code would not physically fit.
  • GTIN-14 – for outer packaging and shipping units (cases, cartons, pallets); it contains an additional packaging level digit.

At its core, every GTIN is made up of three parts: the GS1 company prefix (which identifies the manufacturer or brand owner), the item reference (which distinguishes the individual products of that company) and the final check digit. The length of the company prefix is not fixed but depends on how many items a company is expected to have to label: a small manufacturer with few products receives a longer company prefix and therefore fewer free item digits, while a large corporation receives the reverse.

Important in practice: terms such as EAN and UPC ultimately refer to the same number space. If a supplier talks about an EAN and a shop system requires a GTIN field, the same number is generally meant. A 12-digit UPC can also be converted losslessly into a GTIN-13 by adding a leading zero; the number remains identical in content.

The check digit: why the last digit is no coincidence

The last digit of a GTIN is a check digit. It is calculated from the preceding digits using a fixed procedure (a weighted digit sum with the factors 1 and 3). The purpose: a typing error or a transposed pair of digits can be detected immediately, because the check digit then no longer fits. A GTIN with an incorrect check digit is not an "almost correct" number but simply invalid.

The calculation for a GTIN-13 takes four steps: you take the first twelve digits, multiply them alternately by 1 and 3 from right to left, add up the results and then determine the number that brings this sum up to the next multiple of 10. Take the example base 400638133393: the weighted sum produces a certain value, and the check digit is the difference to the next ten. If the sum is already divisible by 10, the check digit is 0. It is precisely this check that is the reason why reputable product data tools validate a GTIN before it is published: an incorrect check digit is rejected as faulty by Google and other systems.

The GTIN in relation to other product identifiers

The GTIN is not the only identifier in everyday product data. Distinguishing it clearly from related numbers prevents typical maintenance errors:

IdentifierWhat it identifiesWho issues it
GTIN / EAN / UPCA trade item, uniquely worldwideGS1 (tied to the manufacturer)
MPN (manufacturer part number)The manufacturer's part numberThe manufacturer, freely
ASINA product within AmazonAmazon
ISBNA book title (a special GTIN-13, prefix 978/979)ISBN agencies via GS1
SKU (stock keeping unit)An item in your own warehouseThe retailer, freely

The decisive difference: SKU, MPN and ASIN are tied to a system or company and are ambiguous outside it. The GTIN, on the other hand, is globally unique and machine-readable across manufacturers. That is why it is the attribute that Google Shopping, price comparison sites and AI answer engines prefer to use to merge identical offers. An interesting aside: a book's ISBN is technically nothing other than a GTIN-13 with the prefix 978 or 979; books were one of the earliest use cases for standardised global item numbers.

Why the GTIN is so important in e-commerce

For an online shop, the GTIN is central in several places:

ChannelRole of the GTIN
Google Shopping / Merchant CenterMandatory or key attribute for product matching and better visibility
Marketplaces (Amazon, eBay)Prerequisite for creating and merging offers
Price comparison sitesMatching identical products across different retailers
Structured data / AIUnambiguous identification in the Product schema (field gtin)

The last point in particular is gaining in importance. The schema.org specification has the property gtin in the Product type. If a shop enters a valid GTIN here, an answer engine can assign the product beyond doubt to a real item that exists in retail, instead of merely guessing it from an ambiguous name. For AI visibility in e-commerce, the GTIN is therefore a trust signal: it proves that this is a real, registered product and not a freely invented catalogue entry.

Real-world example: the GTIN in Google Shopping

For branded products in Merchant Center, Google usually requires the gtin attribute. A well-known example is consumer electronics: for an Apple iPhone in a particular storage variant, there is a fixed GTIN assigned by the manufacturer. If a retailer submits its feed with exactly this GTIN, Google assigns the offer to the correct product node, can aggregate reviews and prices and shows the offer in relevant product comparisons. If the GTIN is missing or the check digit is wrong, the feed may be rejected or visibility may suffer. In practice, retailers regularly report that adding correct GTINs for branded goods noticeably increases the number of products approved in Merchant Center.

Maintaining GTINs in Shopware

In Shopware, the GTIN is kept as a separate field on the product (called "EAN" in older versions). Via the native JSON-LD output, it flows into the structured product data. For a clean GEO and shopping presence: store the correct GTIN issued by the manufacturer for each product variant, never assign a number twice and validate the check digit before publishing. Anyone maintaining many variants should ideally automate this check instead of doing it manually.

A typical error in catalogues that have grown over time: the same GTIN is accidentally attached to several variants because it was copied when they were created and not adjusted. For Google and marketplaces, this is a contradiction, because a GTIN may only designate a single product. An import or maintenance process should therefore check both the check digit and uniqueness across the entire catalogue before the data moves into the feed or the structured data.

The GTIN and the future of AI-supported product search

With the rise of AI answer engines and agentic shopping assistants, the GTIN takes on additional significance. When an AI system compares products on behalf of a user or even prepares a purchase, it must know beyond doubt that two offers refer to exactly the same physical product. A product name such as "wireless headphones black" is too vague for this; dozens of manufacturers could mean the same thing. The GTIN, on the other hand, is a hard, globally valid anchor. It allows a model to bundle offers cleanly across shops, compare prices and cite the right source.

For shop operators, this means: complete, valid GTIN maintenance is no longer just a compulsory exercise for Google Shopping, but increasingly a prerequisite for appearing as an identifiable product in AI answers at all. Anyone who lists their bestsellers without a valid GTIN risks an answer engine being unable to assign them reliably and therefore preferring a competing offer with clean data. In this sense, the GTIN is a small but effective building block of AI visibility in e-commerce.

Validation in practice

Validating a GTIN means two things: first, the check digit must be arithmetically correct; second, the length must match the chosen variant (8, 12, 13 or 14 digits). Many feed management and PIM systems include this check; alternatively, it can be implemented with a few lines of code. It is important to anchor the check as early as possible in the data flow, ideally on import or during maintenance in the PIM, not only when Google rejects the feed. That way, faulty numbers are corrected before they cost visibility.

Frequently asked questions about the GTIN

Is a GTIN the same as an EAN?
In everyday use, yes. EAN-13 is the European form of the GTIN-13. GS1 has brought the various barcode standards together under the umbrella term GTIN.

Do I need a separate GTIN for every product?
For every independent trade unit, yes, i.e. a separate number for each variant in size, colour or quantity. Outer packaging receives a separate GTIN-14.

Where do I get GTINs?
From your national GS1 organisation, which issues a GS1 company prefix. Marketplaces and GS1 expressly advise against using freely invented numbers or individual numbers bought from dubious sources.

What happens with an incorrect check digit?
The GTIN is invalid. Google and marketplaces reject it, and in structured data it can do more damage than a missing number because it sets a false trust signal.

Do I need GTINs for private labels?
Not necessarily for selling in your own shop. But as soon as you want to compete on marketplaces or in Google Shopping, there is practically no way around valid GTINs (or a documented exemption).

Is an ISBN a GTIN?
Yes. An ISBN-13 is technically a GTIN-13 with the prefix 978 or 979. Books are therefore among the oldest globally standardised item numbers.

Changelog

  1. · Created · Slawa Ditzel