← All guides

StockSense guide

What a SKU is, and how it differs from a barcode

By Chad Norris, Founder, Orbitloft · Updated October 11, 2026

A SKU (stock keeping unit) is a code you create yourself to identify each sellable variant inside your own store, while a barcode usually holds a GTIN, a number assigned to the product that is the same for every seller of it. The SKU is for your inventory and reports; the barcode identifies the product to scanners, marketplaces and Google.

The two fields sit next to each other on a Shopify product and are easy to confuse. This guide explains how each works on Shopify, a worked example, how they are used, and the mix-ups that cause stock and feed errors. To build a code for every variant from one pattern, use the SKU generator.

SKU vs barcode at a glance

Shopify's help page describes SKUs as codes you can use internally to track your inventory and report on your sales, and says SKUs are different from barcodes and are used for different purposes. You can use both on the same product by filling in their own fields.

SKUBarcode (GTIN)
Who assigns itYouThe brand owner, through a GS1 number
Who uses itYou, your staff, your warehouseScanners, retailers, Google, marketplaces
FormatAny pattern you chooseA fixed-length number
Unique toYour storeThe product, worldwide
Required on ShopifyNoNo

How it works on Shopify

Both fields live on each variant. In your admin, go to Products, open the product, select the variant, and you will find the SKU in the Inventory section, next to the barcode field.

Shopify says SKUs aren't required, but recommends them for tracking. There is one exception: if you use Shopify Fulfillment Network, unique SKUs are required for each variant. Shopify also gives format advice that is worth following from day one.

  • Unique: No two variants should share a SKU
  • Short: Shopify suggests no more than 16 characters
  • Unambiguous: Avoid formats where 0 and 1 can be confused with the letters O and I
  • Plain: Don't use special characters, symbols or spaces, which can cause search problems

The barcode field is where a GTIN goes, such as a UPC or EAN printed under the product's barcode. Sales channels such as Google read it from there. For what a GTIN is and where it comes from, see what is a GTIN.

A worked example

Harbor Goods Co. sells the Linen Crew Tee in two colors and three sizes, so it has six variants and needs six SKUs. A readable pattern of product, color and size makes each one obvious on a pick list.

VariantSKUBarcode
Natural, SLCT-NAT-S12-digit UPC from the brand's GS1 range
Natural, MLCT-NAT-MA different 12-digit UPC
Natural, LLCT-NAT-LA different 12-digit UPC
Navy, SLCT-NVY-SA different 12-digit UPC
Navy, MLCT-NVY-MA different 12-digit UPC
Navy, LLCT-NVY-LA different 12-digit UPC

Each SKU is 9 characters, well under 16, with no spaces. Each barcode is a different number, because a GTIN identifies one specific variant. If a wholesale partner also stocks the tee, their system will show the same barcodes, but they will use their own SKUs. The codes in the table are a short pattern written by hand. The generator below builds them for you by shortening the product name and each option.

SKU generator

Build one readable code per variant from a prefix, a product name and the option values, ready to paste into Shopify.

12 SKUs — one per variant

FC-LINENC-SAND-S
FC-LINENC-SAND-M
FC-LINENC-SAND-L
FC-LINENC-SAND-XL
FC-LINENC-OLIV-S
FC-LINENC-OLIV-M
FC-LINENC-OLIV-L
FC-LINENC-OLIV-XL
FC-LINENC-NAVY-S
FC-LINENC-NAVY-M
FC-LINENC-NAVY-L
FC-LINENC-NAVY-XL

Good SKUs are codes you can read at a glance in a picking list: brand, product, then options, most-stable part first. Avoid letters that read as digits (O, I), and never reuse a retired SKU — your sales history keeps pointing at it.

Runs in your browser. Nothing you enter is stored or sent.

How each one is used

The SKU drives the work inside your business. The barcode carries the product's identity outside it.

  • Inventory counts (SKU): Stock levels, transfers and reorders are tracked per SKU
  • Reports (SKU): Sales comparisons variant by variant
  • Fulfillment (SKU): Pickers match pick lists to shelf labels
  • Purchase orders (SKU): Lines on a supplier order map to your variants. See how to write a purchase order
  • Scanning (barcode): Point of sale and warehouse scanners read the printed code
  • Google Shopping (barcode): Google uses the GTIN to match your product to its catalog. See GTIN, MPN and brand for Google

To check a GTIN before you save it, run it through the free GTIN validator, which checks the length and check digit.

Common confusions

Most problems come from treating the two fields as interchangeable.

  • Pasting the GTIN into the SKU field: Your internal code becomes an unreadable number, and the barcode field stays empty for Google
  • Inventing a barcode: Making up digits to fill the field creates a fake GTIN that will fail checks. Leave it blank if the product has none. See GTIN warnings in Merchant Center
  • Sharing a SKU across variants: Stock and sales for two variants merge into one line
  • Changing SKUs later: Old orders, reports and supplier records still use the old codes
  • Thinking SKUs are universal: Your SKU means nothing to another retailer or to Google

Frequently asked questions

Is a SKU the same as a barcode?

No. A SKU is an internal code you create to track inventory and sales. A barcode usually holds a GTIN, a number assigned to the product that every seller of it shares.

Do I need SKUs on Shopify?

Shopify says SKUs aren't required, but they make inventory and reporting much easier. If you use Shopify Fulfillment Network, a unique SKU is required for each variant.

Can two products have the same SKU on Shopify?

They shouldn't. Shopify's guidance is that SKUs must be unique and no two variants should include the same SKU.

What should I put in the barcode field if my product has no GTIN?

Leave it blank. Don't invent a number, because a made-up GTIN can cause problems with Google and other channels that check identifiers.

How long should a SKU be?

Shopify suggests keeping SKUs short, such as no more than 16 characters, without spaces or special characters.

Once your SKUs are clean

Clean, unique SKUs are what per-variant forecasting depends on. StockSense forecasts demand for each SKU from your order history using velocity, trend, seasonality and lead-time-aware safety stock, recommends a reorder point, quantity and date, ranks SKUs by revenue at risk, and drafts purchase orders grouped by supplier. See StockSense.

Doing this for a whole catalog or every order?

See how StockSense handles it for you.

Explore StockSense →

Get guides like this in your inbox

One practical Shopify fix per week — written for store owners, not growth hackers.

No spam, no list-selling — unsubscribe in one click.

Related guides

Related tools

Compare apps

More guides: Inventory →