Log inBook a demo

Shopify barcodes: how to add, generate and print them, and the new EU rules

Shopify now lets you add up to 20 barcodes to every product or variant, each with a type, and since 1 November 2026 they also matter at EU customs. How to add barcodes in Shopify, the CSV format, where barcodes come from and how to generate them, how to print labels, and what Google and the EU need from them.

CEO & founder

  • 10 min read
On this page

In short: in Shopify, you add barcodes in a product’s Inventory section, or with Edit barcodes on its variants. Each product or variant can have up to 20 barcodes, and each has a type, such as GTIN, EAN, UPC or Custom. Shopify doesn’t issue GTINs: license them from GS1 for products you make, and use the manufacturer’s barcode for products you resell. Shopify’s Retail Barcode Labels app creates 8-digit Code 128 barcodes for scanning in your own store, but they don’t work for Google Shopping. And since 1 November 2026, parcels sent to EU customers from outside the EU need a standardized identifier for every item, or a declaration that the product has none.

The barcode types in Shopify

Each barcode in Shopify has a type that records which standard its value follows, and the value has to match that standard’s length and characters:

TypeAccepted valuesUse it for
GTIN8, 12, 13 or 14 digitsThe global product number. UPC, EAN and ISBN are all GTINs
UPC8 or 12 digitsRetail products, mostly in North America
EAN8 or 13 digitsRetail products, mostly outside North America
ISBN10 or 13 characters, can include XBooks and e-books
ASIN10 letters or digitsAmazon’s catalog number for a product or variant
NS-PIDAny value, up to 255 charactersThe manufacturer’s model number, part number or style code, used for EU customs
CustomAny value, up to 255 charactersThe default, for codes outside a standard, such as Code 128 labels for your warehouse

When you enter a barcode that’s registered with GS1, Shopify sets the type to GTIN for you, and if your product name and vendor don’t match GS1’s listing for that barcode, it shows a warning. A Custom barcode whose value is a valid GTIN gets GTIN suggested as its type. Checked against the Shopify Help Center on 21 November 2026.

How to add barcodes in Shopify

  1. From your Shopify admin, go to Products and open the product.
  2. In the Inventory section, click the Barcodes field and enter the barcode.
  3. Optional: choose the barcode type in the drop-down menu, which shows Custom until you change it.
  4. Optional: click Add barcode to add another one.
  5. Click Save.

For a product with variants, every variant gets its own barcodes: in the Variants section, select the variants, choose Edit barcodes, enter a barcode and a type for each, click Done and then Save. In the Shopify app, you can scan a barcode with your phone’s camera instead of typing it. A product or variant can’t list the same barcode value twice.

Adding barcodes to many products

In the bulk editor, add the Barcodes column and type or scan. With a barcode scanner in keyboard mode, there are two ways to scan:

  • One barcode per variant: select a Barcodes cell and scan, and the selection moves to the next row. Each scan replaces every barcode the variant already has, so use it on variants without barcodes.
  • Several barcodes on one variant: open that variant’s barcodes, click Add barcode and scan them one after another, up to 20. The scanner has to send a return or tab after each barcode.

In a CSV import, every barcode goes in the Barcodes column, separated by semicolons, with the type and a colon before each value, such as gtin:5790001234560; LER-TOF-MOS-350. The second value has no type, so it’s imported as Custom. To use a backslash, semicolon or colon inside a value, write \\, \; or \:. Older files have a singular Barcode column, which becomes Barcodes the next time you export, and a file with both columns fails to import. Format the column as text before you edit, so the spreadsheet keeps leading zeros.

Generating barcodes: which one you need

A barcode generator only draws the bars. What matters is the number, and where it comes from depends on what you sell:

  • You make the product and sell it through retailers, marketplaces or Google Shopping: a GTIN, printed as EAN-13 or UPC-A, licensed from GS1 in your country.
  • You resell another brand’s products: the manufacturer’s GTIN, from the packaging or the supplier’s product data. Never create your own barcode for another brand’s product.
  • You only scan products in your own store or warehouse: an internal barcode, such as Code 128, from Shopify’s Retail Barcode Labels app or built from your SKUs.
  • Handmade or one-of-a-kind products: often no GTIN at all. Give Google the brand and MPN, and use the declaration for EU customs described below.

Shopify’s Retail Barcode Labels app can create barcodes for all your products or for selected ones. It only generates 8-digit Code 128 barcodes, built from the last 8 digits of each variant’s ID, so in rare cases two products get the same barcode. Shopify notes that these barcodes aren’t suitable for Google Shopping, because several stores can share them, and that third-party channels like Google need unique barcodes from GS1.

For your own products, GS1 is the source. Each GS1 organization licenses GTINs in its own country, usually as a company prefix that covers a range of products, and some, such as GS1 US, also sell single GTINs. Every variant needs its own number: a T-shirt in three sizes and three colors needs nine. See EAN codes explained for how a GTIN is built, and why cheap barcodes from resellers cause trouble.

Printing barcode labels

The Retail Barcode Labels app designs and prints labels from the Shopify admin on desktop or from the Shopify app, but not from Shopify POS. It supports set label sizes from Dymo, Zebra and Avery, and you need a supported label printer connected to your computer. Four limits to know before you rely on it:

  • No CSV upload or automatic bulk printing. You pick each variant and the number of labels by hand.
  • Alphabetical order. Labels print in order of product title.
  • Special characters such as ě, š or ř might not display correctly, which matters for product names in many European languages.
  • Prices on labels only work in currencies that Shopify Payments supports.

Whatever you print with, follow Shopify’s guidelines: print at 300 DPI or more, make the barcode at least 1.5 × 1 inches (about 3.8 × 2.5 cm), use black or another dark ink and avoid red and brown, print the number below the bars, and test one sheet before a large batch.

Barcodes for EU customs from 1 November 2026

Since 1 November 2026, the EU requires product identifiers for every item in a parcel sent to an EU customer from outside the EU and worth €150 or less. It matters for brands that ship from the UK, Norway, Switzerland or the US, and a parcel without them can be held or rejected at customs, with return-to-origin fees. EU customs asks for three identifiers:

  • M-PID, your own identifier. Shopify uses the variant ID, so there is nothing to add.
  • S-PID, a standardized identifier: a GTIN, EAN, UPC or ISBN saved with the matching type. A Custom barcode also counts when its value is a valid GTIN of 8, 12, 13 or 14 digits.
  • NS-PID, the manufacturer’s own code, such as a model number or style code, saved as a barcode with the NS-PID type. Without one, Shopify uses the standardized barcode, any other barcode, the SKU or the variant ID, in that order.

A product with no GTIN, such as a handmade or one-of-a-kind item, needs a declaration instead: in the product’s Shipping section, click More details and turn on No EU standardized identifier. Some goods are exempt, including unprocessed agricultural and perishable goods in HS chapters 01 to 15, certain handmade goods, antiques and works of art. Shopify reads the exemption from the variant’s HS code, so the HS codes have to be right. When you buy a label in Shopify for an EU parcel worth €150 or less, an item without a standardized identifier or the declaration blocks the label until you fix it. Checked against the Shopify Help Center on 21 November 2026.

Barcodes for Google Shopping

Google recommends a GTIN for every product that has one from its manufacturer, and products with missing or incorrect GTINs can get limited visibility. The rules are strict: the check digit has to be correct, GTINs that start with 02, 04 or 2 are restricted, 05, 98 and 99 are coupon ranges, every variant needs its own GTIN, and you should never guess or make up a value. If you’re the only seller of a product, it may have no GTIN, and you submit the brand and MPN instead (Google Merchant Center Help). See the Google Shopping feed for Shopify for the rest of the product data Google needs.

Keeping barcodes right across a catalog

The hard part is rarely one barcode. It’s thousands of variants, where some barcodes sit in supplier files, some were typed with a digit missing, and some products never had one. Checking each variant by hand is where the time goes.

In Covada, barcodes are part of the master data that AI enrichment fills, together with weight, country of origin and HS code, and each value is grounded in real data: your catalog, supplier sheets and the manufacturer’s own pages. Optimize fills them for one product or hundreds, only where fields are empty if you want, as suggestions you approve. A Flow can run the full check: look for missing barcodes in your own data first, research the rest by MPN, brand and product name, validate the check digit, look for duplicates and hold back what can’t be confirmed. A correct GTIN pays off twice, since Covada can also search the web by GTIN to fill the product’s other attributes. See the GTIN Flow.

Covada Optimize dialog for 48 products with the Details step selected: enriches title, barcode, weight, country of origin, HS code, collections, template, category, tags, vendor and product type

Figure 1Optimize in Covada for 48 products with the Details step selected, which fills barcodes along with weight, country of origin, HS codes and the other product details.

Common mistakes

  • Made-up barcodes, or cheap numbers that are registered to another company.
  • The Retail Barcode Labels app’s 8-digit codes sent to Google Shopping.
  • One barcode for every variant, instead of one per size and color.
  • Scanning one barcode per variant over variants that already have barcodes, which replaces them.
  • Leading zeros dropped by the spreadsheet in a CSV file.
  • No GTIN and no declaration on products you ship to EU customers from outside the EU.

Frequently asked questions

How do I add a barcode in Shopify?

Open the product in your Shopify admin, click the Barcodes field in the Inventory section, enter the barcode and choose its type, such as GTIN or EAN, then click Save. For a product with variants, select the variants in the Variants section and choose Edit barcodes. In the Shopify app, you can scan the barcode with your phone’s camera.

Does Shopify generate barcodes?

Shopify’s Retail Barcode Labels app can create barcodes, but only 8-digit Code 128 barcodes built from each variant’s ID. They work for scanning in your own store, but Shopify notes they aren’t suitable for Google Shopping. For marketplaces and Google, license GTINs from GS1 or use the manufacturer’s barcode.

How many barcodes can a Shopify product have?

Up to 20 per product or variant, so codes from different suppliers, regions or marketplaces can sit on the same item. Each barcode has a type, such as GTIN, UPC, EAN, ISBN, ASIN, NS-PID or Custom.

How do I import barcodes with a CSV file?

Put every barcode in the Barcodes column, separated by semicolons, with the type and a colon before each value, such as gtin:5790001234560. A barcode without a type is imported as Custom. A file can’t have both the old Barcode column and the new Barcodes column.

Do I need barcodes to ship to customers in the EU?

If you ship from outside the EU, yes. Since 1 November 2026, every item in a parcel worth €150 or less needs a standardized identifier, such as a GTIN, EAN, UPC or ISBN, or a declaration that the product has none. In Shopify, you add the barcode to the variant with the matching type, or turn on No EU standardized identifier in the Shipping section.