Blog · Labels and barcodes

How to add barcodes to Shopify products

Line drawing of a barcode label marked MUG-SPK-01, with a red scan line across it.
On this page

Shopify can make free barcodes for your own shop, but they won't work everywhere. Here's which barcode you need, where it goes in Shopify, and how to print it.

  • Pick a barcode
  • Add it to each variant
  • Print labels

What you need

You needDetails
A staff roleWith product permissions turned on, to select products for printing.
The appShopify's free Retail Barcode Labels app, to make barcodes and print labels.
A printerA supported Dymo or Zebra label printer connected to a computer, or a laser or inkjet printer with Avery sheets.
GTINs, if you need themFrom the maker, or from GS1. The next section explains when.
A scanner, if you likeA barcode scanner for the bulk editor, or the Shopify mobile app to scan with your phone's camera.

Which barcode you need

It depends on where you sell. A free code works inside your own shop. Any barcode you send to Google, a marketplace or a retailer must be a real, unique number.

If youUseWhy
Sell only in your own store and with Shopify POSFree barcodes from Shopify's app, or your own codesShopify POS finds a product by any of its barcodes, or by its SKU.
Resell products from other brandsThe barcode on the maker's packagingShopify says to ask the maker if you don't have it. Google recommends the maker's GTIN.
Sell your own products on Google ShoppingA GTIN from GS1, or none at allShopify says its app's codes aren't suitable for Google Shopping. Google says a store brand generally has no GTIN and doesn't need one. Submit the brand and MPN instead.
Sell your own products to retailers, wholesale or on marketplacesGTINs from GS1Shopify says third-party channels need unique barcodes from GS1, and some sales channels might require a GTIN before a product can be published.

What GS1 numbers cost in the US

GS1 US licenses a single GTIN for a one-time $30, with no yearly fee. A GS1 Company Prefix for 10 products costs $250, then $50 a year.

Those are GS1 US prices on 5 November 2026, and GS1 US says it can change them. Outside the US, check GS1's site for your country.

Count your variants, not your products. GS1 US says each variation of each product you sell needs a unique barcode. A shirt in 3 sizes and 2 colors, for example, needs 6.

SKU, barcode or GTIN: what goes where

A SKU is your own code for tracking stock. A barcode is a number a scanner reads. A GTIN is a barcode number registered with GS1, and UPC, EAN and ISBN are all kinds of GTIN.

Line drawing of three stacked fields: SKU MUG-SPK-01, a barcode shown as bars, and UPC 012345678905.
Example values, in our drawing. The SKU is your own code, and the UPC is the number you'd enter in the Barcodes field. These bars are drawn for show and don't scan.

In Shopify, the SKU has its own field. Barcodes go in the Barcodes field, and since September 2026 each one can have a type.

TypeWhat it takesUse it for
CustomAny value, up to 255 characters. This is the defaultYour own codes, and non-GTIN codes such as Code 128
GTIN8, 12, 13 or 14 digitsNumbers registered with GS1
UPC8 or 12 digitsMostly North American retail products
EAN8 or 13 digitsMostly products outside North America
ISBN10 or 13 characters, and may include XBooks and e-books
ASIN10 letters or digitsAmazon's own catalog number
NS-PIDUp to 255 charactersA manufacturer product identifier, such as a model or style number, for EU customs declarations
  • Up to 20 per variant: Shopify added this on 8 September 2026. Any of them finds the product at POS.
  • The first one matters most: sales channels read the first barcode, and it's used wherever only one fits. So enter the number your channels need first.
  • GS1 check: enter a GS1-registered number and Shopify sets the type to GTIN. If it can compare the product name and vendor with GS1's listing and they don't match, it warns you.

Step 1: Make free barcodes with Shopify's app

If you only sell in your own shop, Shopify's free Retail Barcode Labels app can make barcodes for you. It's Shopify's own barcode generator, and Shopify's help pages explain how it works.

  1. Install Retail Barcode Labels from the Shopify App Store.
  2. Open the app and choose Create barcodes.
  3. Choose Create barcodes for products without barcodes.

Want codes for only some products? Choose Create barcodes for specific products instead, and pick only products that don't have a barcode yet.

Don't create barcodes for products that already have ones you entered. Shopify says the app overwrites them.

What you should know about the barcodes it makes:

  • Format: Code-128 only, using the last 8 digits of the variant ID.
  • Duplicates: two products can get the same barcode if their variant IDs end in the same 8 digits. Shopify says you can type a different one in by hand.
  • Google Shopping: not suitable, Shopify says, because several stores can share the same codes.

Step 2: Add barcodes you already have

If your products came with barcodes, or you bought GTINs, type or scan them into Shopify. Each variant needs its own.

One product

  1. In your Shopify admin, go to Products and open the product.
  2. In the Inventory section, click the Barcodes field.
  3. Enter the number in Barcode.
  4. To set its type, click the Custom drop-down and pick one.
  5. Optional: to add another, click Add barcode and repeat.
  6. Click Save.

In the Shopify mobile app, the same field has a barcode icon, so you can scan the number with your phone's camera.

A product with variants

  1. Open the product, and in the Variants section select the variants to edit.
  2. Click the horizontal menu icon, then Edit barcodes.
  3. Open each variant's drop-down and enter its barcode, and its type if you want.
  4. Click Done, then Save.

Many products at once

  • Bulk editor: Shopify says you can add barcodes there, and scan them in with a barcode scanner.
  • CSV import: use the Barcodes column, with up to 20 per variant. Separate them with a semicolon. Shopify's changelog calls it Variant Barcodes.
  • Types in a CSV: put the type and a colon before a value, as in gtin:00012345678905; upc:012345678905; INTERNAL-123. A value with no type imports as Custom.
  • Older files: exports now use Barcodes instead of the old single Barcode column. A file with both columns won't import.
  • Safe updates: export your products first and change only the barcodes. Keep the URL handle, Title and Option1 columns, and choose Overwrite products with matching handles when you import.

Keep the Option1 columns. Shopify warns that if you leave out the Option1 name and Option1 value columns, a new default variant is created and existing variants are deleted.

Watch your zeros. Microsoft says Excel removes leading zeros and turns large numbers into scientific notation. Format the barcode column as Text before you enter the numbers, or import it as text.

Step 3: Print the labels

Shopify's app prints from the product list, on the printer and labels from What you need.

  1. In your Shopify admin, go to Products and select the products.
  2. Click the horizontal menu icon, then under Apps select Print barcode labels.
  3. Choose a label template that matches the labels you have.
  4. Enter the number of labels for each variant.
  5. Check the printer settings in the Print job section, then click Print labels.
  6. To keep a copy, set Destination to Save as PDF.
  7. Apply the print settings Shopify recommends, then click Print.

Printing labels for a delivery you just received? See how to print labels for received stock.

Label sizes

BrandSizes Shopify lists
Dymo30252, 30336, 30332 and 30299. The 30299 price tag size isn't available in the UK
Avery5160 and 5167, on a laser or inkjet printer
Zebra10010037, 10010038, 10010039, 10015340, 10010043, 10010044, ZSB-LC6, ZSB-LC7 and ZSB-LC8

You can't add custom sizes. For anything else, Shopify suggests a third-party app.

What to watch for

  • Every count is manual: the app has no automatic bulk printing or CSV upload.
  • Print order: labels come out alphabetically by product title.
  • No POS or iPad printing: for an iPad, Shopify points to the Dymo Connect app instead.
  • Print quality: Shopify's tips are 300 DPI or higher, at least 1.5 in wide and 1 in tall, dark ink and the number under the bars. Some smaller label sizes may fall below that, so test one sheet before a big run.

Common problems

What happenedWhat to do
The app replaced barcodes you'd enteredYou created barcodes for products that already had them. Enter the old numbers again by hand, or import them from a product CSV you exported earlier. Follow the safe-update steps in Step 2, since that file can also undo other changes.
Two products share a barcodeThis can happen with the app's codes. Type a different barcode on one of them.
A product has limited reach on GoogleGoogle says missing or wrong GTINs can limit visibility. Use the maker's GTIN or one from GS1, not the app's code. Never make one up.
Zeros vanished from your CSVYour spreadsheet removed them. Format the column as text, fix the numbers and import again.
Shopify warns about a GTINThe product name or vendor doesn't match GS1's listing. Check the number and your product details.
A label won't scanCheck Shopify's print tips above. Keep labels flat and off product edges, and don't cover the barcode with tape or shrink wrap.

What we couldn't confirm

  • The app's code type: Shopify's pages don't say which type its 8-digit codes get under the new barcode types.
  • Labels with several barcodes: Shopify's changelog says the first barcode is used wherever one is expected, and that labels keep working. The app's page doesn't say which one its labels print.
  • Which stores can install the app: its listing says it works only with certain stores.
  • Reordering barcodes: we couldn't find how to move a barcode to first place on a variant.

Sources

All checked 5 November 2026. Shopify's screens can change, so go by your admin if it differs.

Keep reading