Skip to content

GTIN, UPC and barcodes for online sellers

Short answer

A GTIN is the number under a product's barcode, issued through GS1. A UPC is a 12-digit GTIN and an EAN is a 13-digit one. Google wants the manufacturer's GTIN whenever one exists, OpenAI's feed lists it as optional, Shopify stores it in the barcode field, and Amazon offers a GTIN exemption for products without one. Never invent a number.

By , Founder, SourceVision. Published .

On this page
  1. What is a GTIN number?
  2. What is the difference between GTIN, UPC and EAN?
  3. Do you need a UPC to sell on Shopify, Google, ChatGPT and Amazon?
  4. How do you get UPC codes?
  5. How do you get a GTIN exemption on Amazon?
  6. Can you sell products without a barcode?
  7. Frequently asked questions
  8. Related guides
  9. Sources

GTIN and UPC are two names for the number under a product’s barcode, and every channel you sell on asks about it in a slightly different way. Shopify gives it a field, Google Merchant Center and ChatGPT’s product feed each have a gtin attribute, and Amazon matches listings by a product ID such as a UPC or EAN, with an exemption for products that have none. This guide covers what the codes are, where to get them, which channel needs what, and what to do when a product has none.

What is a GTIN number?

A GTIN, or Global Trade Item Number, is the number printed under a product’s barcode. It comes from GS1, which Shopify describes as a not-for-profit standards organization, and identifies one trade item anywhere in the world. A GTIN has 8, 12, 13 or 14 digits, and UPC and EAN codes are both GTINs.

GS1 US explains the split on its GTIN page. The barcode is the data carrier, the bars a scanner reads. The GTIN is the data, the number those bars encode. When someone says “UPC”, they usually mean the 12-digit number, not the bars.

A GTIN is not a SKU. Your SKU is your own internal code, and you can name it however you like. A GTIN is universal, and GS1 US says only GS1 issues it. Two stores selling the same jar of honey will often have different SKUs and the same GTIN.

GS1 also sets the basic rule of use. One GTIN can be assigned to only one product, but you print it on every unit of that product, per GS1’s support article. Every bottle of the same cola carries the same number. A new size, flavor or pack is a new product and gets its own.

For an online seller, the point is matching. GS1 US says GTINs help make sure the item listed is the one that gets picked, packed and shipped, and let trading partners match product data across their systems.

What is the difference between GTIN, UPC and EAN?

GTIN is the family name. A UPC is a 12-digit GTIN, called GTIN-12, used mostly in North America. An EAN is a 13-digit GTIN, called GTIN-13, used mostly elsewhere. GS1 US says EAN was built as a compatible extension of UPC, so the two work together.

The four GTIN formats
DigitsCommon nameWhere it is used
GTIN-12 12UPC, printed as a UPC-A barcodeRetail products, mostly in North America
GTIN-13 13EAN, printed as an EAN-13 barcodeRetail products, mostly outside North America
GTIN-8 8GTIN-8Small items, mostly outside North America
GTIN-14 14GTIN-14Cases and other groupings, not scanned at checkout

UPC and EAN are not rival systems. Both are GTINs, and channels accept either.

Source: What is a GTIN?

GS1’s support article adds two names you will meet. A GTIN-13 is also called a JAN, the name Google ties to Japan, and ISBN is the 13-digit number for books. Google’s GTIN page accepts all of them, asks for books as ISBN-13, and asks you to convert a short UPC-E code to its full 12 digits first.

Three habits keep a GTIN valid on every channel in this guide:

  • Digits only. OpenAI’s feed schema asks for no spaces or dashes. Google accepts them but ignores them.
  • Keep leading zeros. OpenAI says to keep identifiers as strings so the zeros survive. A spreadsheet that formats the column as numbers will drop them.
  • The last digit is a check digit. It is calculated from the others, so a typo usually produces an invalid code. Google requires a correct check digit, and OpenAI’s schema asks for a valid one.

Do you need a UPC to sell on Shopify, Google, ChatGPT and Amazon?

It depends on the channel. Shopify says barcodes might be required for marketplaces, wholesale and warehouses, and by some sales channels. Google wants the manufacturer’s GTIN whenever one exists. OpenAI’s product feed lists GTIN as optional. Amazon uses a product ID such as a UPC or EAN, or a GTIN exemption.

Where each channel stands on GTINs
Is a GTIN required?Where it goesIf the product has none
Shopify Only where a sales channel or marketplace needs oneBarcode field, up to 20 per product or variantLeave it empty, or use the Custom type for an internal code
Google Merchant Center Recommended whenever the manufacturer assigned onegtin attribute, 8, 12, 13 or 14 digitsSend brand and MPN, or identifier_exists set to no
ChatGPT product feed Optionalgtin field, exactly 8, 12, 13 or 14 digitsOmit it, and never invent an MPN to fill the gap
Amazon A product ID, or a GTIN exemption if there is noneProduct ID: 12 digits for UPC, 13 for EAN, 14 for GTINRequest a GTIN exemption through Seller Central

Compiled from Shopify's barcode help page, Google's GTIN page, OpenAI's product feed schema and Amazon's Selling Partner API docs, all opened November 16, 2026.

Shopify. The barcode help page lets you add up to 20 barcodes to a product or variant, so codes from different suppliers or marketplaces can sit on the same item. Each barcode can get a type, such as GTIN, UPC, EAN, ISBN or ASIN, and Custom is the default. If you enter a GTIN registered with GS1, Shopify sets the type for you, and warns you when your product name and vendor do not match the GS1 listing. Shopify also says some sales channels might require a GTIN before they publish a product. If you resell another brand’s goods, ask the manufacturer for the GTIN.

Google Merchant Center. Google recommends a GTIN for every product that has one assigned by its manufacturer. A product that has a GTIN and is submitted without it could be disapproved, and missing or wrong GTINs may get limited visibility. Google also does not accept some ranges: prefixes 02, 04 and 2 are restricted, and 05, 98 and 99 are coupon ranges. If you have not set Merchant Center up yet, start with our Merchant Center guide.

ChatGPT. OpenAI’s product feed schema takes one GTIN per row, exactly 8, 12, 13 or 14 digits with a valid check digit, and says to omit it if none is assigned. It also says a GTIN identifies the specific trade item, not the variant group, so each variant row carries its own. The rest of the feed, from titles to availability, is in our guide to feed optimization, and the matching markup on your own pages is in product structured data.

Amazon. Amazon’s developer docs list the expected lengths and show that a product ID is fixed once a listing exists. The exemption route is in its own section below.

Why does a barcode matter for AI shopping at all? Shopify’s page on AI platforms lists barcode among the product details AI platforms and shopping sites consider, and adds that other factors specific to each platform also affect results. Google puts the matching problem plainly: “Accurate matching to products can’t be assured when GTIN is missing.” A correct GTIN tells every system which product you mean. It does not, by itself, get the product recommended.

That last part is what SourceVision measures. We report how often your products appear in assistants’ answers, with the range across repeated runs, so you can see where you stand before and after a change. We propose fixes to your product pages from facts you confirm, and nothing changes until you approve it. We do not issue or sell barcodes. When we measured one of our users in September 2026, its brand appeared in 1 of 225 answers (0.44%). The method is on how it works, and the idea behind it is in AI visibility.

SourceVision is in an invite-only beta.

Request an invite

How do you get UPC codes?

You license them from GS1. In the US, GS1 US sells a single GTIN for $30 with no renewal fee, or a Company Prefix that covers many products from $250 plus a yearly fee. Outside the US, GS1 says to contact your local GS1 member organization.

Getting a GTIN and putting it to work
  1. Count your items

    Every size, color, style and pack is its own product

  2. Pick a license

    A single GS1 US GTIN, or a Company Prefix with room to grow

  3. Buy from GS1

    GS1 US in the US, your local GS1 office elsewhere

  4. Assign the numbers

    Create GTINs and barcode artwork in GS1 US Data Hub

  5. Add them to your store

    Shopify's barcode field, one GTIN per variant

  6. Send them on

    The gtin field in Google and OpenAI feeds, the product ID on Amazon

Count first. Buying a prefix that is too small means buying again later.

Source: Get Your U.P.C. Barcodes from GS1 US

Counting is where most sellers go wrong. GS1 US’s own example on its barcodes page is a t-shirt in three sizes and three colors, which needs nine barcodes. Add three styles and you need 27.

GS1 US prices its options by how many products you need to identify, as listed on November 16, 2026:

  • 1 product: a GS1 US GTIN, $30 once, with no annual fee
  • Up to 10: a Company Prefix, $250 up front and $50 a year
  • Up to 100: $750 up front and $150 a year
  • Up to 1,000: $2,500 up front and $500 a year

GS1 US says it may change these prices, so check the page before you buy. The single GTIN comes with a free lifetime subscription to GS1 US Data Hub, where you create the barcode artwork. GS1 US also says it cannot be used for pharmaceutical products, variable measure products, mixed cases or coupons. A Company Prefix keeps your product data linked to your company as long as you renew.

Outside the US, prices and steps differ by country. GS1’s support article says to contact your local GS1 member organization to join and get your own prefix.

Be wary of numbers from anyone other than GS1. GS1 US warns that GTINs from unauthorized third parties may already be associated with another company or product. Amazon’s troubleshooting page lists the errors that follow: a product ID “either restricted or not registered in GS1”, or a barcode already associated with another ASIN. Both ask for proof such as a GS1 certificate.

How do you get a GTIN exemption on Amazon?

Amazon’s developer docs say a product with no identifier can be created under a GTIN exemption. You submit a manual exemption request through Seller Central, and once it is approved you list the product under the brand name approved for it. Who qualifies is set out in Seller Central help.

Amazon’s Listings APIs FAQ sets out the sequence. You submit a manual exemption request through your Seller Central account. After approval, a listing sent through Amazon’s API gives the brand name approved for the exemption and sets a field declaring that the product is exempt.

Which products qualify is Amazon’s call, and those rules are in Seller Central help rather than the developer docs. GS1 US says Amazon may allow exemptions for some private-label products, and that Amazon continues to encourage GS1-issued GTINs. If your product already carries a manufacturer’s GTIN, that is the number to use.

Three details from Amazon’s troubleshooting page are worth knowing before you create a listing:

  1. The product ID is fixed. Amazon says the external product ID cannot be edited after the product is created, so check it first.
  2. Brand and barcode must agree. If the barcode is not registered for use with the brand on your listing, Amazon asks for proof that the barcode’s owner and your brand are affiliated, such as a license agreement, along with the GS1 certificate.
  3. One SKU, one ID. Each SKU maps to exactly one external product ID.

You may also see FNSKU labels if you use Fulfillment by Amazon. Shopify’s barcode page describes the FNSKU as an Amazon-specific barcode for FBA sellers, beginning with X or B. It is Amazon’s own barcode, not a GTIN. For the listing content itself, see our guide to Amazon listing optimization.

Can you sell products without a barcode?

Yes, if the product truly has none. Handmade, custom, vintage and store-brand goods often have no GTIN. Tell Google with brand and MPN or identifier_exists, leave the GTIN out of OpenAI’s feed, and request an exemption on Amazon. Never invent or borrow a number.

Google is the most specific about this. Its GTIN page says a product sold only by you, or a store brand, generally won’t have a GTIN, and asks for brand and MPN instead. For products with no GTIN, MPN or brand at all, the identifier_exists page asks you to set the attribute to no. Its examples are custom goods, one-of-a-kind items, handmade goods, vintage items and books published before 1970.

Set it only when you are sure. Google warns that a product marked as having no identifier, when evidence of one exists, gets a warning. It also says products submitted without any unique identifiers are hard to classify and may not be eligible for every Shopping program.

OpenAI’s rule is shorter. Leave gtin out if none is assigned, and send an mpn only when the manufacturer assigned one, together with the brand. The schema says not to invent one to replace a missing GTIN.

On Shopify, a product with no GTIN can still carry an internal code. The Custom barcode type takes any value up to 255 characters, which suits warehouse scanning. Keep those codes out of any gtin field, because they are not GTINs.

Bundles and multipacks need one more rule. Google says a bundle or multipack made by the manufacturer uses its own GTIN, not the GTINs of the items inside. If you put a bundle together yourself, use the GTIN of the main product in it, and for a multipack you made, use the GTIN of the single product.

Frequently asked questions

Can I make my own UPC code?

Not one that counts as a GTIN. GS1 says your GTINs should be created from the GS1 Company Prefix assigned to your company, and GS1 US warns that numbers from unauthorized sources may already belong to another company or product. Shopify lets you store an internal code with the Custom barcode type, but that is not a GTIN and should not go into a gtin field.

How much does it cost to buy a UPC code?

In the US, GS1 US charges $30 for a single GS1 US GTIN with no renewal fee. A Company Prefix for 10 products costs $250 up front and $50 a year, and larger prefixes cost more. GS1 US says it may change its pricing, and outside the US your local GS1 office sets its own fees.

What is the difference between a UPC code and a barcode?

The barcode is the pattern of bars a scanner reads, and the UPC is the number it carries. GS1 US calls the UPC-A barcode the data carrier for a 12-digit GTIN. People often use UPC for both.

Are ISBN and UPC the same?

No, but both are GTINs. An ISBN identifies a book edition and a UPC identifies a retail product, mostly in North America. Google accepts ISBN-13 in its gtin attribute, and OpenAI's feed takes an ISBN-13 as a 13-digit GTIN but not an ISBN-10.

Does Amazon require GS1 barcodes?

Amazon's developer docs list errors for a product ID that is not registered in GS1 or is already tied to another product, and both ask for proof such as a GS1 certificate. A product with no identifier can be listed under a GTIN exemption instead. GS1 US says Amazon encourages GS1-issued GTINs.

Does each size or color need its own UPC?

Yes. GS1 US says each variation of each product needs a unique barcode, so a shirt in three sizes and three colors needs nine. Google asks for a separate GTIN per variant too, and OpenAI says a GTIN identifies one trade item, not the variant group.

  • Product descriptions for AI shopping

    How to write product descriptions that shoppers, search engines and AI assistants read correctly: structure, facts with units, feeds and what to leave out.

  • Product titles for AI shopping

    Write product titles for AI shopping, Google Shopping and marketplaces: what to include, in what order, each channel's length limit and what to leave out.

  • How to write robots.txt for AI crawlers

    Write robots.txt for AI crawlers: how groups and rules work, example groups for search and training crawlers, where to edit the file and how to test it.

Sources

  1. What is a GTIN?, GS1 US, accessed .
  2. Get Your U.P.C. Barcodes from GS1 US, GS1 US, accessed .
  3. What is the difference between a GS1 GTIN, a barcode, an EAN and a UPC?, GS1, accessed .
  4. How many GS1 GTINs do I need for my products?, GS1, accessed .
  5. Why do I need to have a GS1 Company Prefix?, GS1, accessed .
  6. How do I ensure I am using correctly assigned numbers?, GS1, accessed .
  7. GTIN [gtin], Google Merchant Center Help, accessed .
  8. Identifier exists [identifier_exists], Google Merchant Center Help, accessed .
  9. Using barcodes for your products, Shopify Help Center, accessed .
  10. Optimizing your products for AI platforms, Shopify Help Center, accessed .
  11. Product feed schema, OpenAI Developers, accessed .
  12. Listings APIs FAQ, Amazon Selling Partner API, accessed .
  13. Listings Items API Issues Troubleshooting, Amazon Selling Partner API, accessed .

The beta is invite only for now.

Free during the founding beta. Founding partners get 50% off list price after the beta.