WooCommerce GTIN: Where the Field Is, What to Enter and Why It Matters
WooCommerce has a built-in field for GTIN, UPC, EAN and ISBN codes. Where to find it on products and variations, which formats it accepts, which codes reach search engines, how to import them in bulk and use them at the till.
In this article15 sections
The WooCommerce GTIN field is built in: edit a product, open Product data → Inventory, and fill “GTIN, UPC, EAN, or ISBN”. Each variation has its own field too. WooCommerce keeps digits, hyphens and the ISBN-10 check character X, and requires each code to be unique across your products. This guide explains the code types, what WooCommerce accepts, which codes reach search engines, how to fill them in bulk and how to use them at a till.
GTIN, UPC, EAN and ISBN#

| Name | Digits | Where you see it |
|---|---|---|
| GTIN-8 (EAN-8) | 8 | Small packages |
| GTIN-12 (UPC-A) | 12 | Retail products, mainly North America |
| GTIN-13 (EAN-13) | 13 | Retail products worldwide |
| GTIN-14 | 14 | Cases and trade units |
| ISBN-10 / ISBN-13 | 10 / 13 | Books (ISBN-13 is also a GTIN-13) |
A GTIN is issued through GS1. A manufacturer licenses a company prefix and assigns numbers to its products. If you resell branded goods, use the manufacturer’s code printed on the packaging; don’t invent your own. If you make your own products and want to sell through marketplaces or retailers, get numbers from your national GS1 organisation.
Where to enter a WooCommerce GTIN#
- Edit the product and open Product data → Inventory.
- Enter the code in GTIN, UPC, EAN, or ISBN.
- For variable products, open each variation and enter its own code.
- Update the product.
Every size and colour that has its own barcode needs its own GTIN on its variation. The parent’s field doesn’t stand in for the variations.
What the field accepts, and why a save fails#
- Letters and spaces are removed, except an X.
- X is accepted only as the last character, as in some ISBN-10 numbers. Anywhere else, WooCommerce shows an invalid code error.
- A code already used by another product is rejected, so find the other product before changing anything.
WooCommerce doesn’t verify the check digit when you save, so a typo can slip in. Our free GTIN check digit calculator confirms whether a code is mathematically valid.
Which codes reach search engines#
WooCommerce adds the GTIN to the product’s structured data when the number, after removing non-digits, is 8 digits long or 12 to 14 digits long. A 10-digit ISBN isn’t included, so use the 13-digit ISBN for books. Search engines use identifiers to recognise the same product across shops. If an SEO or feed plugin also outputs a GTIN, make sure both use the same value, or you’ll send conflicting data.
Importing GTINs in bulk#
The product CSV has a “GTIN, UPC, EAN, or ISBN” column. Export your products, fill the column against SKUs from your supplier’s list, then import with “Update existing products” ticked and remove other columns you don’t want to change. Format the column as text in the spreadsheet, otherwise long numbers turn into scientific notation and leading zeros disappear. Our guide to importing variable products explains how variation rows work in the file.
Moving from an old GTIN plugin#
Many shops added GTIN fields with plugins or theme code before WooCommerce had its own. Those values are usually stored in a separate custom field that core doesn’t read. Check where your codes live, copy them into the built-in field with an export and import or a developer’s help, verify a sample, then switch off the old field so staff enter codes in one place. Check any product feed too, because it may still read the old field.
GTIN vs SKU#
A SKU is your own internal code; you choose its format. A GTIN is a global identifier assigned to the product by its brand. Keep both: the SKU for your processes and the GTIN for scanning supplier barcodes and for marketplaces. Our guide to variation SKUs covers naming your own codes, and printing barcode labels covers items that arrive without a barcode.
Collecting codes from suppliers#
Ask suppliers for a price list that includes GTINs next to their part numbers, and make it part of adding any new product. Scanning the packaging is a quick fallback: a handheld scanner types the code straight into the field. Check that the scanned code matches the retail unit rather than the outer case, which often carries a different GTIN-14. When a supplier changes packaging, the code can change as well, so rescan items that suddenly stop matching.
Check digits and common typos#
The last digit of a GTIN is a check digit calculated from the others. It exists to catch typing and scanning errors, and it is why swapping two digits usually produces an invalid number. Check codes you type by hand, especially long GTIN-14 case codes, before saving them. A code that is mathematically valid can still be the wrong product’s code, so also compare it with the number printed under the barcode on the actual item.
Leading zeros matter. A 12-digit UPC-A can be written as a 13-digit EAN by adding a zero in front, and different systems store it either way. Pick the format printed on your product packaging and keep it consistent, so a scan matches what you saved.
GTINs and sales channels#
Marketplaces and shopping ads often ask for GTINs, and some categories reject listings without a real one. When a product genuinely has no GTIN, such as handmade or custom goods, most channels have a way to declare that instead of inventing a number. Never reuse a GTIN from another product to pass a requirement: a mismatch can get listings suspended and confuses customers who search by barcode.
When you sell multipacks, remember that a pack of six can have its own GTIN, different from a single unit. Sell the pack as a separate product or variation with the pack’s code, and keep the single item’s code on the single item. Bundles you assemble yourself need either your own GS1 number or none.
A routine for new products#
- Ask the supplier for GTINs with the first price list.
- Enter or import the code before the product goes live.
- Scan one real unit and confirm it matches the saved value.
- For variations, check each size and colour separately.
- Run spot checks on products added in a hurry.
A few minutes at the start saves a long cleanup later, when hundreds of products need codes and nobody remembers which box they came in. It also means that when you add a scanner at the counter or list on a new channel, the data is already there and consistent.
Periodically export your products and look for empty GTIN cells on items that should have one, and for values that look too short or too long. A sorted spreadsheet makes the outliers obvious, and fixing them takes one import.
When two products need the same code#
Because WooCommerce requires each GTIN to be unique, you sometimes hit a conflict that is really a catalogue problem: the same physical item listed twice, for example once as a simple product and once as a variation. Merge the listings or keep the code on the one you actually sell, and redirect the old page if it had visitors. If two different items really share a barcode, which can happen with supplier mistakes or reused packaging, store your own distinct SKU on each and ask the supplier to confirm the correct codes.
Where to show the GTIN to shoppers#
The GTIN is mainly machine data, so most shops don’t need to print it prominently. If your buyers search by barcode, for example tradespeople ordering spare parts or collectors checking an ISBN, show it in the product description or the additional information area of your theme. Check that your theme or SEO plugin doesn’t already display it, so it doesn’t appear twice on the same page.
Scanning GTINs at the till with Retail POS#
Retail POS, free on WordPress.org, sells at the counter from wp-admin. A scanned code is matched against its barcode field, then WooCommerce’s GTIN field, then the SKU, and a variation wins over its parent. So once GTINs are filled in, the barcodes your suppliers printed ring up directly with a USB or Bluetooth scanner or the phone camera. It can also print barcode labels for items without one, choosing EAN-13 or EAN-8 where the code fits and Code 128 otherwise.

WooCommerce GTIN: frequently asked questions#
Does WooCommerce have a GTIN field?
Yes. Current WooCommerce versions include a GTIN, UPC, EAN, or ISBN field on the product Inventory tab and on each variation, so no extra plugin is needed to store the code.
What is the difference between GTIN and SKU?
A SKU is your own internal code in any format you choose. A GTIN is a global number assigned by the brand owner through GS1, used to identify the same product everywhere.
Why does WooCommerce reject my GTIN?
It may already be used by another product, or contain an X somewhere other than the final ISBN-10 character. Find the other product or correct the code before saving again.
Is my GTIN shown to search engines?
WooCommerce adds it to structured data when it has 8 digits or 12 to 14 digits. Ten digit ISBNs are not included, so use the thirteen digit ISBN for books.
Can I make up GTINs for my own products?
No. Real GTINs come from a GS1 company prefix. For internal use only you can use your own SKU or internal barcodes, but marketplaces expect genuine GS1 numbers.
