Saltar al contenido
Back to blog Guides

EAN barcodes for Shopify: guide and where to buy them

If you sell online and want to add EAN barcodes for Shopify, this guide makes everything clear: where to enter the EAN in the dashboard, why it opens the door to Google Shopping and other channels, and how to get official codes without any hassle. Shopify is one of the most widely used ecommerce platforms in the world and, although you can sell without a barcode, assigning an EAN/GTIN to each product multiplies your visibility and prevents channel rejections. If you already know all this and just want the codes, you can buy EAN codes for Shopify and receive them by email in minutes.

In short

  • The EAN goes in the "Barcode (ISBN, UPC, GTIN…)" field in Shopify, which sits in the Inventory section of each product or each variant.
  • Every variant (size/colour) needs its own unique EAN: count your codes by variants, not by products.
  • The GTIN is almost mandatory for Google Shopping, Amazon and Meta: without it Shopify still syncs the catalogue, but many listings end up limited or rejected.
  • EAN-13 is the format for Europe and UPC-A (12 digits) for the US; both are valid GTINs and go in the same Shopify field.
  • It must be an official GS1 code with a correct check digit: made-up numbers trigger the "Invalid GTIN" error.
  • You can buy them without registering with GS1: with EAN CODA you receive them by email in minutes, from 3 €, one-off payment, no annual fees.

EAN, UPC and GTIN: which number Shopify needs

Before touching the dashboard, it helps to clear up the terminology, because Shopify mentions them all together. GTIN (Global Trade Item Number) is the global product identifier, and it covers the formats you already know:

FormatDigitsTypical use
EAN-13 (GTIN-13)13Standard in Europe and most of the world
UPC-A (GTIN-12)12Common in the US and Canada
EAN-88Very small products with little room on the packaging

In practice, for a Shopify store aimed at the European market you will use EAN-13 in almost every case. If you also sell to the US, a UPC-A works just as well; both are valid GTINs and Shopify accepts them in the same field. If you are unsure when to use one format or the other, we explain it in the difference between EAN-13 and EAN-8, and if you want to understand the standard from scratch, here we explain what an EAN barcode is.

One important note: the country prefix (for example, 84x for Spain) goes inside the digits of the EAN-13; there is no such thing as an "EAN-84" format. The organisation that manages those prefixes worldwide is GS1. The prefix indicates where the code was registered, not necessarily where the product is made, so an EAN starting with 84 works perfectly for selling from any country.

Where the barcode goes in Shopify: product and variant

Shopify stores the EAN in a single field called Barcode (ISBN, UPC, GTIN…), but that field appears in two different places depending on how your product is built, and it pays not to confuse them:

  • Product without variants: the field is inside the Inventory card, on the product page itself, just below the SKU. A product with no options = one EAN.
  • Product with variants: the "Barcode" field on the main page disappears and moves inside each variant. You have to open variant by variant (or edit them in bulk) and add an EAN to each one.

This distinction is the source of most errors. Many people add a single code at product level thinking it covers every size, but as soon as the product has options Shopify stops using that field and asks for the code at variant level. If you push the catalogue to Google or Amazon with variants that have no barcode, those listings end up without a GTIN.

How to add an EAN code in Shopify step by step

Assigning the EAN in Shopify takes less than a minute per product. This is the current path in the dashboard:

  1. Go to your Shopify admin and open Products.
  2. Open the product you want to assign the code to.
  3. Scroll down to the Inventory section (or, if the product has variants, open the specific variant from the variants table).
  4. Find the Barcode (ISBN, UPC, GTIN…) field.
  5. Paste your EAN-13 (all 13 digits, no spaces or hyphens) and save the changes.

That's it: Shopify stores the number and will automatically send it to the channels you connect. The field label is exactly "Barcode (ISBN, UPC, GTIN…)", so you can't miss it. Bear in mind that Shopify neither generates nor validates the code for you: it accepts any text you paste, including a made-up one, and the rejection only shows up later when the sales channel checks the check digit. That's why it's best to start from official codes.

Products with variants: a unique EAN per size and colour

This is the most common mistake. If you sell a t-shirt in three sizes and two colours, it is not one product: it is six variants, and each one needs its own unique EAN. Reusing the same code across several variants causes rejections on Google and incorrect matches on marketplaces, because the GTIN is designed to identify one specific sales unit, not a family of products.

To load many variants at once, use Shopify's CSV import: the export template includes a Variant Barcode column where you place the EAN for each row. Fill it in, upload it, and Shopify assigns each code to its variant. It's the fastest route when you have dozens or hundreds of variants and want to avoid manual copy-paste. Work out how many codes you need by counting variants, not products: 40 references with three sizes each is 120 EANs, not 40.

Why the EAN improves your visibility on Shopify

  • Google Shopping: the GTIN is practically mandatory on Google Shopping for your products to appear in ads and in the free listings. Without it, many campaigns are limited or rejected, and you lose the automatic matching that improves listing quality.
  • Other sales channels: when you connect Shopify with Amazon, Meta (Facebook and Instagram Shopping) or marketplaces, the EAN lets you match your offer to the channel's catalogue and avoid duplicates.
  • Shopify Markets and international selling: if you sell to several countries with Shopify Markets, a consistent GTIN helps the same product be recognised across each market's feeds, rather than being treated as separate items in each language or currency.
  • Inventory management: it makes it easier to use barcode scanners in the warehouse and at the point of sale with Shopify POS, speeding up stock intake and checkout in your physical store.

Connecting the GTIN with the channels (Google and Meta)

Once the EAN is on every variant, install the relevant channel from Shopify: Google & YouTube for Google Shopping and Facebook & Instagram for Meta. When you sync the catalogue, Shopify automatically maps the "Barcode" field to the GTIN attribute each platform requires. You don't have to fill in anything by hand: if the code is entered correctly, the channel recognises it. If Google flags a product as "Invalid GTIN" or "Incorrect GTIN", first check that the code is on the variant (not just at product level) and that it has 13 digits with a correct check digit. To sell on the Amazon marketplace, in this other post we explain how to upload products to Amazon with an EAN.

Common mistakes (and how to fix them)

  • "Invalid GTIN": it is almost always an incorrect check digit or a made-up number. A legitimate EAN-13 has its last digit calculated from the previous twelve; use official codes and this error disappears.
  • Duplicate EAN across variants: Google and Amazon detect it and reject the listing. Assign a different code to each variant.
  • Code at product level instead of variant: if the product has options, Shopify ignores the field on the main page. Make sure you fill in the "Barcode" inside each variant.
  • Number with spaces or hyphens: enter only the 13 digits in a row, with no separators and without the country prefix added separately.
  • Wrong format: don't put a 12-digit UPC where the channel specifically asks for an EAN-13; both are GTINs, but check the requirements of the destination channel.

How to get your EAN codes for Shopify

You have two routes. You can register directly with GS1, which involves a joining fee and recurring annual fees, or you can buy legitimate GS1 codes through a reseller like EAN CODA, a faster and cheaper option for stores that only need the numbers for their listings.

With EAN CODA you choose the quantity of codes you need, pay once and receive them by email in minutes. They are official codes associated with the GS1 database, from 3 €, one-off payment, no annual fees, ready to paste into the "Barcode" field of each Shopify variant. If instead of Shopify you use another platform, we can also help you with PrestaShop using the same procedure.

Buy EAN codes for Shopify now →

Frequently asked questions

Where do you put the barcode in Shopify?

In the "Barcode (ISBN, UPC, GTIN…)" field, inside the Inventory section. If the product has no variants, it is on the product page itself; if it has variants, the field appears inside each variant and you must fill it in one by one or via CSV import.

Is the EAN mandatory in Shopify?

Not to create the product: Shopify lets you sell with the field empty. But it is practically mandatory if you want to advertise on Google Shopping or sync with Amazon and Meta, where the lack of a GTIN limits or rejects your listings.

Does any EAN work?

No. It must be a valid EAN-13 (with the correct check digit) and unique per variant. Randomly generated codes or codes reused from another product end up producing "invalid GTIN" or duplicate errors on Google and Amazon.

Do I need to register with GS1?

It is not essential. Registering with GS1 involves a joining fee and annual fees; buying legitimate GS1 codes from a reseller like EAN CODA is faster and cheaper when you only need the numbers for your Shopify listings.

How many EANs do I need?

One for each variant you are going to sell, not per product. If an item has several sizes or colours, count each combination as a separate code: 30 products with two sizes each require 60 EANs.

How do I load many EANs at once in Shopify?

With CSV import. Export your products, fill the "Variant Barcode" column with the EAN for each row and re-import the file. Shopify assigns each code to its variant without you having to edit product by product.

Do EANs expire or have an annual fee?

The codes we sell are a one-off payment: they don't expire and have no annual fees. Once assigned to your products, they are yours forever.

Ready to get started? Get your official EAN codes and have them in your inbox in minutes, with no paperwork or waiting.

Do you need EAN codes for your products?

Buy EAN