How to add GTINs to Shopify variants and make GS1 QR codes
A variant with no GTIN can be blocked from your sales channels, and a wrong GTIN on a printed label means a reprint. This guide shows how to fill the Barcodes field for your whole catalog and turn each GTIN into a GS1 QR code that opens the variant's page.
DLCode · Updated · 7 min read
The Barcodes field holds your GTIN
Shopify stores the GTIN in the Barcodes field of each product or variant. You find it in the Inventory section of the product page. A GTIN is the number printed under your UPC or EAN barcode.
Each barcode in Shopify has a type. The GTIN type takes 8, 12, 13 or 14 digits. The UPC type takes 8 or 12 digits, and the EAN type takes 8 or 13. The Custom type is for codes that follow no standard.
When you enter a barcode registered with GS1, Shopify sets the type to GTIN for you. If your product name or vendor does not match the GS1 record, Shopify shows a warning.
Some sales channels block a product until it has a GTIN. Every variant without one is a listing you cannot publish.
Get one GS1 GTIN for each variant
Every variant you sell needs its own GTIN. GS1 US gives the example of a t-shirt in 3 sizes, 3 colors and 3 styles, which needs 27 barcodes.
In the US, you license GTINs from GS1 US. A single GTIN costs $30 with no renewal fee. A Company Prefix for 10 GTINs costs $250, plus $50 each year.
Get your GTINs from GS1 directly. GS1 US warns that barcodes from third-party sellers may belong to another company. Amazon checks UPCs against the GS1 database and treats numbers that do not match as invalid.
Add a GTIN to each variant in the admin
Use the product page when you have a few products. These are the steps for a product with variants.
- In your Shopify admin, go to Products and open the product.
- In the Variants section, select the variants you want to edit.
- Click the menu with the three dots, then click Edit barcodes.
- Enter the GTIN for each variant.
- Click Done, then click Save.
For a product with no variants, enter the GTIN in the Barcodes field of the Inventory section and click Save. In the Shopify app on your phone, you can scan the barcode on the package with the camera.
Add GTINs to many variants at once
The bulk editor shows each variant as a row in a table. Use it for a catalog of a few dozen variants.
- Go to Products and select the products with the checkboxes.
- Click Bulk edit.
- Click Columns, then select Barcodes.
- Enter a GTIN in the row for each variant.
- Click Save.
For a large catalog, use a product CSV file. Export your products, fill in the Barcodes column, and import the file again. Older exports call this column Barcode. A file with both columns fails to import.
Write the type before the value, followed by a colon, as in gtin:09520123456788. Separate two barcodes on one variant with a semicolon. A barcode with no type imports as Custom.
Put the GS1 GTIN first, and check for mistakes
Since September 8, 2026, a Shopify variant can hold up to 20 barcodes. Shopify POS finds the variant from any of them. Sales channels, feeds and apps that expect one barcode read only the first one.
Make the GS1 GTIN the first barcode on every variant. If an internal code sits first, your feeds send that code and your channels get the wrong number. Add internal codes, such as a warehouse label, after the GTIN with the Custom type.
Before you print, export a product CSV and sort it by the Barcodes column. A mistake you find here costs a minute. The same mistake on a printed label costs a print run. Look for these.
- Two variants with the same GTIN. Each variant needs its own number.
- A GTIN with the wrong number of digits. Fix the typo, or confirm the number in GS1 US Data Hub.
- A GTIN licensed to another company. Look it up in the GS1 Database from GS1 US, which gives 30 free searches per day.
- A variant with no barcode. It cannot get a GS1 QR code until it has a GTIN.
Turn each variant GTIN into a GS1 QR code
A GS1 Digital Link QR code holds a web address with the GTIN in it. A checkout scanner that reads 2D barcodes takes the GTIN from the code. A phone opens the address.
The address has your domain, then /01/, then the GTIN with 14 digits. GTINs with 8, 12 or 13 digits get leading zeros. The EAN 9520123456788 becomes https://qr.yourbrand.com/01/09520123456788.
Point each address at the variant's page in your store. A variant page has the form yourbrand.com/products/oat-bar?variant= followed by the variant ID. The shopper lands on the size or flavor in their hand.
- Choose the domain for your codes before you print. See Use your own domain for GS1 QR codes.
- Make the code for each GTIN. The free DLCode generator takes a GTIN and your link domain, and gives SVG, PNG, PDF or EPS files.
- Set up a redirect from each /01/ address to its variant page. See How to make a QR code you can change after printing.
- Place the QR code next to the UPC or EAN. See Print specs for a QR code next to your UPC or EAN.
- Print a proof and scan it with more than one phone.
For more on the standard, see What is GS1 Digital Link? A guide for consumer brands.
Code every variant this week with DLCode
Install the DLCode: GS1 QR Codes app, click Create QR codes, and every variant with a valid GTIN gets a print-ready GS1 QR code that opens its own page in your store.
- The app reads the barcode on every variant straight from your store, so there is no file to export.
- It flags variants with no barcode and barcodes that are not valid GTINs, before anything goes to print.
- Each code opens the exact variant, so the shopper lands on the size or flavor in their hand.
- Change where any code goes at any time, with no reprint.
- Print files come as SVG, PDF, EPS and PNG, with the barcode and QR code side by side and no watermark.
- Paid packs add lot codes, lot recalls, a page per country and one free domain registered to your company.
Start free for 10 products, with no card. When you need more, pay once: $249 for 25 products, $499 for 100 or $1,490 for 1,000. Hosting and unlimited scans are included through December 31, 2030. There is no subscription. Shopify bills each pack as a one-time charge.
Your catalog is already in Shopify. Start free and have your first codes ready to print today, or see pricing. For the app, see DLCode for Shopify.
Sources
- Using barcodes for your products · Shopify Help Center
- Bulk editing · Shopify Help Center
- Using CSV files to import and export products · Shopify Help Center
- Product variants now support multiple barcodes · Shopify Changelog
- How to get a UPC barcode · GS1 US
- What is a GS1 Company Prefix? · GS1 US
- Barcodes for Amazon · GS1 US
- GS1 Database · GS1 US
- GS1 Digital Link · GS1
- GS1 Digital Link Standard: URI Syntax · GS1
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.