Fixing “Invalid GTIN” Barcode Errors on Shopify
Your products look fine in Shopify, but the Google & YouTube channel keeps flagging them: invalid GTIN, missing GTIN or MPN, products stuck as not approved. Almost always the culprit is the barcode field — and it is fixable in an afternoon.
Shopify will happily save almost anything into a product's barcode box — an internal SKU, a supplier reference, a UPC missing a digit. The error only appears when a channel pushes that value out as a real product identifier and the receiving system validates it. The store looks healthy while the shopping feed quietly fails.
What this error actually means
The barcode field on a Shopify product (or on each variant) is meant to hold a GTIN — a Global Trade Item Number. UPCs, EANs, and ISBNs are all GTINs of different lengths, and Shopify's own documentation warns merchants not to invent one.
When the Google & YouTube channel syncs a product, the barcode value becomes the gtin attribute in Google Merchant Center, which runs real checks that Shopify never did:
- Digits only — letters, spaces, or hyphens fail immediately.
- Length — exactly 8, 12, 13, or 14 digits (GTIN-8, GTIN-12/UPC, GTIN-13/EAN or ISBN-13, GTIN-14).
- Check digit — the last digit must match the value computed from the others; a single typo breaks it.
- Prefix ranges — numbers starting with 2, 02, or 04 sit in ranges reserved for restricted, in-store style uses and are refused, as are numbers from ranges GS1 has not yet released.
- Plausibility — a structurally valid number that belongs to a different product can be flagged as an incorrect GTIN.
Other channels read the same field — Meta's Facebook and Instagram listings, feed apps — so one bad barcode can produce several differently worded errors at once. If your errors appear inside Merchant Center itself, our companion page on the Merchant Center “invalid GTIN” error covers Google's side of the wall.
The fix path, in order
Work through these checks in order and stop at the first failure — that is almost certainly your problem.
- Read the exact error text first. “Invalid GTIN” or “unsupported format” means the number is malformed. “Missing GTIN or MPN” means the channel has no usable identifier at all — usually an empty barcode field with no brand and MPN entered either. “Incorrect GTIN” means the number is well-formed but does not appear to match your product. Each points to a different fix.
- Count the digits and strip non-digits. The value must be 8, 12, 13, or 14 digits with nothing else — no stray space, no hyphens copied from an ISBN, no apostrophe left over from a spreadsheet. Eleven digits usually means a lost leading zero (more below);
8.85E+11means a spreadsheet switched the barcode to scientific notation before you pasted it. - Verify the check digit. Paste the number into our GTIN check digit calculator. If the final digit does not match, one digit was mistyped — re-enter it from the physical packaging or the manufacturer's spec sheet, not from another spreadsheet. (The math is explained in how check digits work.)
- Restore lost leading zeros. An 11-digit barcode is usually a 12-digit UPC-A whose leading zero Excel or Google Sheets silently dropped during a bulk edit — put the zero back and re-check. Our guide to preserving leading zeros in spreadsheets shows how to stop it recurring; the UPC to EAN converter turns a UPC-A into its EAN-13 form and re-validates in one step.
- Make sure it is a GTIN at all. Letters, dashes, or your internal naming scheme mean someone pasted a SKU or supplier code into the barcode field. Move it to Shopify's separate SKU field, then enter the real GTIN from the packaging or leave the barcode empty for now.
- Check the prefix. A number starting with 2, 02, or 04 is refused by Google even with a perfect check digit — those ranges are reserved for restricted, in-store style uses. If a supplier gave you such a number as a “UPC,” ask for the manufacturer's real code.
Audit every barcode at once, not one by one
If one product had a bad barcode, others probably do too — especially if barcodes were ever bulk-edited in a spreadsheet. In the Shopify admin go to Products → Export, download the CSV, and paste the barcode column into the bulk barcode validator. It checks length, characters, and check digit for every row in one pass and reports exactly which entries fail and why. Fix the failures in the CSV (formatting the column as text first, so zeros survive), re-import, and let the channel resync. Google typically re-evaluates corrected items within a couple of days.
No GTIN? Leave it empty — never fake it
Handmade, vintage, private-label, and unbranded products often have no GTIN — a legitimate state. The Google & YouTube channel accepts a brand plus manufacturer part number (MPN) as an alternative identifier, and Google's product data spec has a dedicated way to declare that no identifier exists. Use those routes.
Do not fill the field with an invented number or a “valid-looking” one generated to pass a checksum. A check-digit pass proves only internal consistency — nothing about registration or ownership. Marketplaces and shopping feeds increasingly cross-check submitted GTINs against GS1's registry data, so a fabricated number that syncs today can strand your listings later. Amazon already enforces this aggressively (see fixing invalid GTIN errors on Amazon), and eBay applies similar checks to UPCs (eBay's “invalid UPC” error). Booksellers: an ISBN-13 is a GTIN and goes straight into the barcode field, hyphens removed; for identifier trouble on Amazon's publishing side, see KDP ISBN rejections.
What to send support if nothing works
If every barcode passes validation and the channel still rejects the product, gather these before contacting support — it turns a multi-day back-and-forth into one message:
- The product title and handle (or ID), and the affected variant.
- The exact barcode value, copied from a fresh CSV export — not retyped — so hidden characters survive.
- The exact error string and where it appears (Shopify channel status or Merchant Center diagnostics), ideally with a screenshot.
- Where the GTIN came from: manufacturer spec sheet, packaging, or your own GS1 license — if you own the number, your GS1 certificate or licensed prefix is the strongest evidence you can attach.
- What you have already verified — length, check digit, prefix — so support can skip the basics.
What won't work
A few dead ends worth naming. Deleting and re-adding the product does not reset validation — the same barcode produces the same error. Recomputing a check digit onto a random 11-digit base creates a number that passes checksum tools but is still nobody's GTIN, and registry-level checks will catch it. No tool — ours included — can tell from the number alone whether a GTIN is registered to you; validators test structure, not ownership, which is a question for GS1 and the manufacturer.
FAQ
Where is the barcode field in Shopify?
On the product page in the Shopify admin; for products with variants, each variant has its own barcode box in its inventory details. Shopify labels it “Barcode (ISBN, UPC, GTIN, etc.)” and expects a Global Trade Item Number, not an internal SKU — but it accepts almost any text, which is why mistakes surface later as channel sync errors.
Can I leave the Shopify barcode field empty?
Yes. Shopify itself does not require a barcode. The Google & YouTube channel, however, asks for either a GTIN in the barcode field or a brand plus manufacturer part number (MPN) entered in the channel. If your product genuinely has no GTIN — handmade, vintage, or unbranded goods — use those routes rather than inventing a number.
My barcode passes a check-digit test — why does Google still reject it?
A passing check digit only proves the number is internally consistent. Google also rejects GTINs with restricted prefixes (2, 02, or 04), numbers from ranges GS1 has not released, and valid numbers that belong to a different product. A checksum pass does not prove the GTIN is registered to you.
Can I use my SKU as the barcode in Shopify?
No. A SKU is your internal stock-keeping code; the barcode field is for a GTIN (UPC, EAN, or ISBN), and Shopify has a separate SKU field. A SKU pasted into the barcode field is one of the most common causes of “invalid GTIN” errors at sync time.
Audit your whole catalog in one paste
Export your products to CSV and paste the barcode column into the bulk barcode validator for a row-by-row verdict — length, characters, check digit — before the Google channel finds the problems first.
General information only, based on publicly documented Shopify and Google Merchant Center behavior as of July 2026; platform rules change, so confirm against the official help pages. CodeClassify is not affiliated with Shopify, Google, GS1, or any marketplace. Checksum validation confirms internal consistency, not that a GTIN is registered or owned by you; for GTIN licensing consult GS1.