Agent Ready Shops

Blog

How to add GTINs to WooCommerce products (no plugin needed)

You don't need a plugin to add GTINs to WooCommerce any more. Since WooCommerce 9.2 (August 2024), every product and every variation has a field called "GTIN, UPC, EAN, or ISBN" on the Inventory tab, right under the SKU. Plenty of guides that still rank for this search were written before then and tell you to install something. Here's the current way, as of WooCommerce 11.3 in November 2026.

What a GTIN is, and why it's worth the time

A GTIN (Global Trade Item Number) is the number under the barcode on a product's box. In the US it's usually a 12-digit UPC, in Europe a 13-digit EAN, and for books an ISBN. It's the one identifier that means the same product everywhere, so it's how Google Shopping, and the AI shopping assistants that lean on the same kind of data, know your listing is the exact item a shopper asked about.

Google's own guidance is that you should submit a GTIN for every product that has one from its manufacturer (Merchant Center: GTIN).

Add a GTIN to a simple product

  1. Go to Products and open the product.
  2. In the Product data box, click the Inventory tab.
  3. Type the number into GTIN, UPC, EAN, or ISBN. Spaces and dashes are fine to leave out.
  4. Click Update.

WooCommerce won't let two products share a GTIN. If you see "Invalid or duplicated GTIN, UPC, EAN or ISBN", that number is already on another product or variation.

Add GTINs to variations

Each variation of a variable product is a separate item with its own barcode, so it has its own field:

  1. Open the variable product and go to Product data > Variations.
  2. Expand a variation. The GTIN, UPC, EAN, or ISBN field sits next to the variation's SKU.
  3. Fill it for each variation, then Save changes.

Don't put one GTIN on the parent and leave the variations blank. WooCommerce's product markup reads each variation's own GTIN and doesn't copy the parent's down, so a blank variation shows no GTIN at all.

Add GTINs in bulk with a CSV

For more than a handful of products, use WooCommerce's built-in CSV tools:

  1. Go to Products > All Products and click Export. Export at least the ID, SKU and GTIN columns.
  2. Open the file. The column is called GTIN, UPC, EAN, or ISBN. Fill it from your supplier's sheet or your packaging.
  3. Back in Products, click Import, choose the file and tick Update existing products.
  4. On the mapping screen, check the GTIN column is mapped to the GTIN field, then run the import.

Keep the barcodes as text in your spreadsheet. Excel likes to turn a long number into 1.23457E+12 or drop a leading zero, and either one ruins the GTIN.

Check the numbers before you save them

A GTIN is 8, 12, 13 or 14 digits, and the last digit is a check digit worked out from the others. Google rejects GTINs whose check digit is wrong, and numbers starting with 2, 02 or 04 (those are for in-store use) (Google's rules). If you're unsure about one, paste it into GS1's check digit calculator.

One WooCommerce detail: the product markup on your pages only includes a GTIN that's 8, 12, 13 or 14 digits long. A 10-digit ISBN is saved but left out, so enter books by their 13-digit ISBN (the number that starts 978 or 979).

Coming from an old GTIN plugin?

Before 9.2, stores used plugins like Product GTIN (EAN, UPC, ISBN) for WooCommerce, Germanized, Rank Math or Google Listings & Ads, each storing GTINs in its own place. Google for WooCommerce and WooCommerce's own product markup now read the built-in field, so numbers left in an old plugin's field may simply be ignored.

  • Google for WooCommerce (version 2.9.0 and later) offers a one-time migration of its old GTIN values into the core field. Its docs explain how to run it; back up first.
  • Rank Math says it moves its GTINs to the core field for you.
  • Other plugins: export your products, copy the old plugin's GTIN column into GTIN, UPC, EAN, or ISBN, and import the file again as above. Then turn the old field off so nobody keeps filling in the wrong one.

What if a product has no GTIN?

Products you make yourself, custom work and some store brands don't have one. That's fine. Google says plainly that you shouldn't guess or make one up (source). A wrong GTIN is worse than none: it tells every system your product is something else.

Instead, give the product a clear brand and your own part number (an MPN). If you want real GTINs for your own products, they come from GS1, the body that issues them (GS1 US in the US; other countries have their own GS1 office). A GTIN is tied to the company that licensed it, so get yours in your own name.

Never copy your SKU into the GTIN field. A SKU is your own code; a GTIN has to be the registered one.

Check it worked

Open a product page and paste its URL into Google's Rich Results Test. Under Product snippets or Merchant listings, you should see a gtin value. If you use Google for WooCommerce, the product's status in Merchant Center shows whether Google accepted it.

See which products are still missing one

Checking a whole catalog by hand is slow. Agent Ready Shops is a free WordPress plugin that audits your WooCommerce store's product data, GTIN coverage first among fourteen checks, and lists the products that still need one. It runs on your own site, needs no account and sends nothing anywhere. GTINs also decide how complete a ChatGPT product feed can be: see the free ChatGPT feed plugins for WooCommerce, compared.

Download the free plugin. On Shopify? Check your store with the free web audit instead; there's nothing to install.

Find out where your catalog stands.

A free plugin for WooCommerce and Easy Digital Downloads stores, about five minutes from download to score. Want us to fix what it finds? Join the waitlist.