How to Add GTINs and Barcodes to Shopify Products (and Why AI Shopping Cares)

Last checked: October 14, 2026.

The Barcode field is one of the easiest product fields to ignore, and one of the few that AI shopping channels and Google treat as a hard identifier. This guide covers what goes in it, where the numbers come from, how to add them in Shopify after the September 2026 multi-barcode update, and the mistakes that cause more harm than an empty field.

GTIN, UPC, EAN, ISBN: what's the difference?

A GTIN (Global Trade Item Number) is the internationally recognized number printed under a product's barcode. The common types are all GTINs (Shopify Help: Understanding barcodes):

NameAlso calledDigitsTypically used for
UPCGTIN-1212Consumer products in North America
EANGTIN-13 (or GTIN-8 for small packs)13 or 8Consumer products outside North America
ISBNGTIN-1313Books, one per edition and format
ITF-14GTIN-1414Multipacks and cases

Some codes look similar but aren't GTINs: SKUs, Amazon's ASIN and FNSKU, and warehouse codes such as Code 128. They're useful internally, but they don't identify a product to anyone outside your business.

GTINs are issued by GS1, the not-for-profit standards organization. Every variant that a shopper can tell apart (each size, each color) needs its own GTIN.

Do your products have GTINs already?

  • You resell another brand's products: almost certainly yes. Use the manufacturer's number from the packaging or your supplier's price list. Don't create your own.
  • You make your own products and sell through retailers or marketplaces: you may already have GS1 numbers. Check with whoever set up your packaging.
  • You make handmade, custom or one-off products only you sell: often there's no GTIN, and that's fine. Google's guidance is to leave the field empty for products without one (Google Merchant Center Help: GTIN).

If you need to buy GTINs

In the US, GS1 US sells a single GS1 US GTIN for $30 with no annual renewal, for businesses with only a few products, or a GS1 Company Prefix for larger ranges. Prefix pricing starts at $250 plus a $50 yearly renewal for 10 items (GS1 US get-started guide, prices as listed in October 2026; GS1 US can change them). Outside the US, contact your country's GS1 member organization. GS1 US points businesses to GS1 itself for barcodes; numbers bought from third-party resellers aren't licensed to your company by GS1.

Why AI shopping channels care about barcodes

Shopify lists it. Shopify's guide to optimizing products for AI platforms names Barcode (ISBN, UPC, GTIN) among the product fields AI platforms and shopping sites consider, alongside title, description, images and variants (Optimizing your products for AI platforms).

Google says GTINs affect visibility. Google recommends GTINs for all products that have a manufacturer-assigned one, and says products with missing or incorrect GTINs "may have limited visibility" (Google Merchant Center Help). That matters for AI shopping too: Shopify routes products to Google AI Mode and Gemini through the Google & YouTube channel or Google Merchant Center (Managing agentic storefronts).

It identifies the exact item. OpenAI's product feed specification for ChatGPT merchants has an optional gtin field and describes it as identifying "the specific trade item", with "exactly 8, 12, 13, or 14 digits, including a valid check digit" (OpenAI Commerce: feed reference). When a shopper asks for a specific model, a standard identifier is an unambiguous way to say "this listing is that product". A title alone can't do that reliably.

What no one has published is a measured ranking boost for adding GTINs in ChatGPT or other assistants, so be skeptical of anyone quoting one. The case rests on the platforms' own documentation: they ask for the field, and Google says missing or wrong values can limit visibility.

How to add barcodes in Shopify

Since September 8, 2026, a Shopify variant can hold up to 20 barcodes, each with a type (UPC, EAN, ISBN, GTIN, ASIN or Custom). Shopify validates the value against the chosen standard as you type, so typos get flagged (Shopify Changelog: multiple barcodes in variants).

One rule matters most for AI channels: sales channels read only the first barcode on a variant. Put the real GTIN first, and any internal or Custom codes after it.

One product at a time

  1. In your Shopify admin, open Products and select the product.
  2. Open the variant you want to edit. Shopify's changelog says you add, scan and remove barcodes on the variant details page.
  3. Add the barcode, choose its type (for example UPC or EAN), and save. You can also scan barcodes with the Shopify mobile app.

Many products at once: the bulk editor

Select products in Products, choose Bulk edit, and add the barcode column. Shopify says you can update barcodes across many variants at once there.

Hundreds of products: CSV import

Export your products as CSV, fill the Barcodes column, and import. Per Shopify's CSV guide:

  • The column holds up to 20 barcodes per product or variant, separated by semicolons.
  • You can prefix a type and a colon, for example gtin:00012345678905; upc:012345678905; INTERNAL-123. A barcode with no type is imported as Custom.
  • The older singular Barcode column still works and is renamed to Barcodes on your next export. A file with both columns fails to import.

Watch the spreadsheet. Spreadsheet apps often treat barcodes as numbers, which can drop leading zeros or turn a 13-digit EAN into scientific notation. Format the column as text before you paste values, and spot-check a few rows before importing.

For developers

In the Admin GraphQL API, ProductVariant.barcode is deprecated as of API version 2026-10 in favor of the barcodes connection, written via productSet, productVariantsBulkCreate or productVariantsBulkUpdate. The old field keeps working for now, and Shopify says it will announce a removal date with a full API version of notice (shopify.dev changelog).

Mistakes that are worse than an empty field

  • Making numbers up. Google's rule: "When in doubt don't provide a GTIN (for example, don't guess or make up a value)." A fake GTIN can point to someone else's product.
  • Reusing one GTIN across variants. Each size and color needs its own.
  • Putting a SKU or ASIN in the first barcode slot. Channels read only the first barcode, so they'd receive a code that isn't a GTIN. Keep internal codes in the SKU field or in later barcode slots.
  • Wrong check digit or length. The last digit of a GTIN is a check digit. GS1 provides a check digit calculator. Google also rejects restricted-circulation prefixes (02, 04 and 2) and coupon prefixes (05, 98 and 99).
  • Converting formats badly. Google asks for short UPC-E codes to be expanded to 12 digits and ISBN-10s converted to ISBN-13.

A 20-minute plan

  1. Export your products and sort by vendor. Every product from an outside brand should have a manufacturer GTIN. Collect the missing ones from packaging or suppliers.
  2. Fill them in with the bulk editor or the CSV Barcodes column, GTIN first.
  3. For products you make, decide whether you need GS1 numbers (marketplaces, retail, Google) or can leave the field empty.
  4. Re-check the listing quality view in Sales channels > Agentic and your Google Merchant Center diagnostics a few days later.

Sources