Log inBook a demo

EAN codes explained: what they are, how to get them and how to use them on Shopify

An EAN code is the 13-digit number behind most product barcodes in Europe. Google Shopping, marketplaces and AI shopping assistants use it to know exactly which product you sell. What an EAN is, how it relates to GTINs and UPCs, how to get your own, and how to get them onto every variant in Shopify.

CEO & founder

  • Updated
  • 8 min read
On this page

In short: an EAN code (European Article Number) is a 13-digit product identifier, printed as the barcode on the product or its packaging. Today it is officially a GTIN-13, part of the GS1 system of Global Trade Item Numbers. Each EAN identifies one specific product, down to the size and color, everywhere it is sold. You get your own by licensing a company prefix from the GS1 organization in your country. On Shopify, the number goes in each variant’s barcodes, typed as EAN or GTIN, from where Google Shopping, other channels and EU customs declarations pick it up.

EAN, GTIN and UPC: what is the difference?

The names cause most of the confusion. They all belong to one numbering system run by GS1, the non-profit standards body behind barcodes:

NameDigitsWhere you see it
GTIN8, 12, 13 or 14The umbrella term for all of them, used by Google and marketplaces
EAN-13 (GTIN-13)13Most consumer products in Europe and much of the world
UPC-A (GTIN-12)12Products sold in the US and Canada
EAN-8 (GTIN-8)8Very small packaging where a 13-digit barcode doesn’t fit
GTIN-1414Outer cases and trade units, not single consumer items
ISBN13Books, as an EAN-13 starting with 978 or 979

So when a Shopify app asks for a GTIN and your supplier sends an EAN, they mean the same thing. A UPC can be turned into a GTIN-13 by adding a leading zero.

How an EAN-13 is built

Take the number 5790001234560. It has three parts:

  • GS1 company prefix (for example 5790001): issued to one company. The first three digits show which GS1 organization issued it, here GS1 Denmark.
  • Item reference (23456): the number the company gives this specific product.
  • Check digit (0): calculated from the other twelve digits, so scanners and systems can catch typos.

The prefix doesn’t say where a product was made, only where the company prefix was licensed. Some common ones in Europe:

PrefixGS1 organizationPrefixGS1 organization
400 to 440Germany570 to 579Denmark
500 to 509United Kingdom730 to 739Sweden
870 to 879Netherlands700 to 709Norway
300 to 379France640 to 649Finland
800 to 839Italy590Poland
840 to 849Spain540 to 549Belgium and Luxembourg

How to check an EAN’s check digit

The last digit protects against typos, and checking it takes four steps. Using 5790001234560:

  1. Add the digits in odd positions of the first twelve: 5 + 9 + 0 + 1 + 3 + 5 = 23.
  2. Add the digits in even positions and multiply by three: (7 + 0 + 0 + 2 + 4 + 6) × 3 = 57.
  3. Add both results: 23 + 57 = 80.
  4. The check digit is what it takes to reach the next multiple of ten: 80 is already a multiple of ten, so the check digit is 0. It matches.

A wrong check digit is one of the most common reasons Google rejects a GTIN, usually caused by a copy-paste error or a spreadsheet that turned the number into scientific notation.

How to get EAN codes for your own products

  1. Contact the GS1 organization in your country and license a company prefix. The fee depends on how many numbers you need and on your turnover, and it is usually paid yearly.
  2. Assign one GTIN per product variant. Every size and color gets its own number. A bundle of products gets its own number too.
  3. Register the products in GS1’s registry, so retailers, marketplaces and search engines can see that the numbers belong to your brand.
  4. Print the barcodes on packaging or labels, and add the numbers to your product data.

Avoid cheap barcodes from resellers. They scan, but the registry shows another company as the owner, and Amazon and other marketplaces check the brand behind the number. For products you resell, never create your own barcode: use the manufacturer’s.

Why Google Shopping and marketplaces need them

GTINs tell Google, marketplaces and AI shopping assistants exactly which product you sell, so they can match it to searches, reviews and other sellers’ offers. In Google Merchant Center, products that have a GTIN from the manufacturer should always include it. Without it, products often show as Limited performance due to missing identifiers, and in some categories they are not shown at all. See the Google Shopping feed for Shopify for every attribute Google asks for and where it comes from in Shopify.

The same applies beyond Google. Marketplaces in Europe ask for EANs on most listings, and Amazon, eBay and Walmart require an identifier for listings sent from Shopify with Marketplace Connect. The identifier is also one of the facts AI agents use to tell similar products apart. See agentic commerce for how agents use product data.

Customs now asks for them too. Since 1 November 2026, the EU requires a product identifier for every item in a parcel sent to an EU customer from outside the EU and worth €150 or less, such as a GTIN, EAN or UPC. Shopify reuses the barcodes saved on each variant on labels and customs declarations (Shopify Help Center). Some goods are exempt based on their HS code, see HS codes in Shopify.

How to add EAN codes in Shopify

  1. One product: open the product and add the EAN in the Barcodes section. For a product with variants, select the variants and choose Edit barcodes. Set the barcode type to EAN or GTIN. Shopify selects GTIN automatically when the number is registered with GS1, and suggests it when a Custom barcode is a valid GTIN.
  2. Many products: use the bulk editor, where you can also scan barcodes, or export products as CSV, fill the Barcodes column with the type before the value, such as gtin:5790001234560, and import the file again. Format the column as text first, so the spreadsheet doesn’t drop leading zeros or switch to scientific notation.
  3. Several barcodes: a product or variant can have up to 20 barcodes, so a supplier’s own code or the manufacturer’s part number can sit next to the EAN. A code that follows no standard keeps the Custom type. Your own SKU has a separate field, see Shopify SKUs.
  4. Sales channels: the Google & YouTube app and most feed apps use the GTIN from the variant’s barcodes. For products that genuinely have no GTIN, use the channel’s setting for products without identifiers instead of entering a made-up value.
  5. Several stores: the same variant must carry the same barcode in every expansion store, or channels see two different products.

Steps checked against the Shopify Help Center on 19 November 2026. For every barcode type, scanning, printing labels and the EU customs rules, see Shopify barcodes.

The hard part is rarely the field. It is finding the right number for thousands of variants across supplier price lists, old imports and manufacturer sites, and keeping it right as new products arrive.

How Covada fills barcodes across the catalog

Covada matches every variant to its GTIN from your supplier files first, researches the ones that are missing by brand, MPN and product name, validates the check digit, checks for duplicates and writes the result to Shopify. Values it can’t confirm are held back for review, with the reason why. The GTIN Flow does this for every new product, and as a sweep across the catalog:

Flow diagram: fill missing GTINs before Google Shopping

Figure 1The GTIN Flow in Covada: look in your own data first, research what is missing, hold back what can’t be confirmed.

Frequently asked questions

What is the difference between an EAN and a GTIN?

GTIN, the Global Trade Item Number, is the family name. An EAN, or EAN-13, is a 13-digit GTIN, now officially called GTIN-13. A UPC is a 12-digit GTIN used mainly in North America. Every EAN is a GTIN, but not every GTIN is an EAN.

Does an EAN code show the country a product was made in?

No. The first digits show which GS1 member organization issued the company prefix, such as GS1 Denmark for 570 to 579. A Danish brand can make its products anywhere, and the barcode stays the same.

Can I buy cheap EAN codes online?

Barcode resellers sell numbers that were originally licensed to someone else. They scan, but GS1’s database won’t show your company as the brand owner, and marketplaces such as Amazon check that. For your own products, license a company prefix from the GS1 organization in your country.

Do I need EAN codes for products I resell?

Use the manufacturer’s barcode. A product keeps one GTIN wherever it is sold, so you should never create your own barcode for another brand’s product.

What if my product doesn’t have a GTIN?

Handmade, custom, vintage and own-label products sometimes have no GTIN. In Google Merchant Center, submit the brand and MPN where you have them and tell Google the product has no identifier, rather than inventing one. For parcels sent to EU customers from outside the EU, Shopify has a setting to declare that a product has no standardized identifier.