Guide
How to Add Barcodes and GTINs to Shopify Products
A “missing GTIN” warning looks like a data-entry problem. Sometimes it is — the number exists on the packaging and was never typed in. Sometimes it is a sourcing problem: the product genuinely has no GTIN yet, and no amount of typing will invent one. This guide separates the two, because the fix is different for each.
First, three words that are not the same thing
SKU is your own stock-keeping unit. You invent it, it means something only inside your store, and it can be letters, numbers or both.
Barcode is the printed symbol — the bars, or the square — that a scanner reads.
GTIN is the number inside a retail barcode: the Global Trade Item Number, in 8, 12, 13 or 14 digits, ending with a check digit that scanners and software can verify. UPC in North America and EAN in most other markets are GTIN formats. An ISBN identifies a book in the same system.
In Shopify, the field labelled Barcode on each variant is where the GTIN goes. Google’s Google & YouTube channel reads that field and sends it to Merchant Center as the product’s GTIN. Your SKU, typed into that field, is not a GTIN — it will fail validation or, worse, match a different product in Google’s catalogue.
Where a real GTIN comes from
- You resell another brand’s product. The GTIN is the manufacturer’s number, printed on the packaging or available from the supplier. Use that number, unchanged, for that exact variant.
- You make or brand the product yourself. GTINs are licensed through your national GS1 member organisation, which allocates you a company prefix to build numbers from. That licence is what makes the number uniquely yours worldwide.
- The product has no GTIN at all. Handmade, custom, vintage and some unbranded goods have none. That is a legitimate state, not an error — handle it the way the next section describes, instead of filling the field with a placeholder.
What Google actually requires
Google requires a unique product identifier for each product so it can match your item with similar products. The rule, stated plainly:
- If the product has a GTIN, you must submit it before the product can be published. In Shopify terms, that means the barcode field on the variant must hold it.
- If the product has no GTIN, submit its brand and MPN (manufacturer part number) in the Google & YouTube channel instead. For a custom product with neither, mark it as a custom product in that channel.
- Books need an ISBN. Music, movies and video games need a UPC, EAN or JAN.
Incorrect identifiers are worse than missing ones: Google may refuse to publish the products, and repeated bad data can put the account at risk. A product whose GTIN was never submitted can also lose visibility even when it is not blocked outright. So the order of work is always: get the right number first, then type it in.
Add a barcode to one variant
- In your Shopify admin, go to Products and open the product.
- In the Inventory section of the variant, find the Barcode field. A product with variants has one barcode field per variant — each size or colour that is sold separately needs its own GTIN.
- Type or scan the GTIN exactly as printed, digits only.
- Save, then check the product in the Google & YouTube channel after it syncs. A warning that disappears was a data-entry problem. A warning that stays is a sourcing problem.
Add barcodes in bulk with a CSV file
For a catalogue, edit the export instead of opening products one by one.
- Go to Products, click Export, choose all products or a filtered set, and export a CSV file. Keep an untouched copy as your backup.
- Open the copy in a spreadsheet. Find the Variant Barcode column — that is the GTIN column. The neighbouring columns you will use to check your work are Title and Variant SKU: they tell you which product and variant each row belongs to.
- Fill in one GTIN per variant row. Watch the two classic spreadsheet traps: leading zeros being dropped from UPCs, and long numbers being rewritten in scientific notation. Format the column as text before you type or paste.
- Save as CSV and import the file back from the Products page, choosing to overwrite products with matching handles. Spot-check three products in the admin before you trust the import.
- Let the Google & YouTube channel re-sync, and work through whatever warnings remain — those are the products that still need a number from a supplier or from GS1.
Check the number before you trust it
A GTIN ends with a check digit calculated from all the digits before it, so a mistyped digit almost always breaks the check. That makes validation cheap and worth doing before anything is printed or submitted:
- Count the digits: 8, 12, 13 or 14. Anything else is not a GTIN.
- Run the number through a check-digit validator — the QR-DigitalCode generator validates the check digit as you type, free, before it draws anything.
- One GTIN, one variant. Two variants sharing a number, or one product reusing last season’s number, will confuse every system downstream, from Google to your own till.
Once the GTIN is in Shopify, what else can it do?
The same GTIN that satisfies Google can also carry more than itself. A GS1 Digital Link QR code holds the GTIN plus batch, expiry date or serial number, and opens product information on a phone. Retailers worldwide are working toward accepting 2D codes like it at the point of sale under the Sunrise 2027 milestone, alongside the EAN and UPC codes used today.
The low-risk way in is dual-code: keep the 1D barcode, add the 2D code beside it with the same GTIN, pilot it on a few SKUs, then generate the rest in bulk from a product list — up to 3,000 rows per batch. Three pages on this site walk through it:
- Start small: Dual-code a few SKUs first, then roll out
- Go bulk: Bulk 2D QR codes from Excel or CSV
- For Shopify merchants: GS1 Digital Link QR codes from your Shopify export
Mistakes that cause most GTIN warnings
- SKU in the barcode field. Your internal code is not an identifier Google can match.
- One barcode for every variant. Variants that are sold separately are separate trade items, with separate GTINs.
- A supplier’s number for a different pack size. The GTIN belongs to the exact item and quantity being sold.
- Placeholder values. “N/A”, a row of zeros, or a number copied from another product all count as incorrect identifiers.
- Fixing the warning instead of the data. Marking a branded product as custom to silence a warning hides the problem; the product still will not match in Google’s catalogue.
Frequently asked questions
Can I generate my own GTINs for free?
You can generate numbers that look like GTINs, but a number is only a GTIN when it is built from a GS1-licensed prefix or assigned by the manufacturer. Self-invented numbers can collide with another company’s products and will be treated as incorrect identifiers.
My supplier will not give me GTINs. What now?
Ask for the manufacturer’s barcode for each item in writing — most brands publish them on packaging or in a product data sheet. For products that truly have none, use brand and MPN in the Google & YouTube channel rather than inventing a number.
Does adding a QR code to my packaging fix a missing GTIN?
No. Google reads identifiers from your product data. Add the GTIN to the variant in Shopify first; then, if you want a scannable 2D code on the pack, generate it from that same GTIN.
GTINs in place? Check a number’s check digit and preview its 2D code free — no account, no install.
Shopify is a trademark of Shopify Inc.; Google, Merchant Center and YouTube are trademarks of Google LLC. QR-DigitalCode is an independent tool and is not affiliated with, endorsed by or sponsored by Shopify or Google.