Plays from YouTube. Watch on YouTube

Chapters and the full transcript: How to create SKUs in Shopify (video).

What a SKU is for

A SKU (stock keeping unit) is your own code for one sellable variant. Customers rarely see it. Your team uses it to pick, pack, count and reorder. Unlike a barcode number, you can make a SKU readable.

Using Shopify? SGT is our app for this: see it on the Shopify App Store (free plan, 4.8 from 53 reviews).

A simple SKU pattern

Build the SKU from a few short parts, always in the same order, joined by one separator:

  1. Brand or category, 2 to 4 letters: TEE, LEA.
  2. Product or style, a short code: CLS for Classic.
  3. Options, in a fixed order: colour then size, RED-M.
  4. A number if two products could still collide: 001.

Result: TEE-CLS-RED-M-001.

Examples

ProductVariantSKU
Classic TeeRed / MTEE-CLS-RED-M
Classic TeeRed / XLTEE-CLS-RED-XL
Leather HandbagTanLEA-HAN-TAN-01
Soy Jar CandleCedarwood and MossLUM-SOY-CED-001

Mistakes to avoid

  • Removing numbers from sizes. 2XL and 3XL both become XL, and two variants share a SKU.
  • Using the letter O and the number 0, or I and 1, in the same place. They are easy to misread.
  • Starting with zeros. Spreadsheets often strip them.
  • Spaces and special characters. Stick to letters, numbers and one separator.
  • Putting price or stock in the SKU. Those change; the SKU should not.

Does Shopify have a SKU generator?

No. Shopify gives every variant an empty SKU field and leaves the codes to you. You can type them in one by one, fill the SKU column of a product export and import it again, or use a SKU generator app that writes them for you.

Generate SKU codes for every variant

  1. Install SGT and open Manual Generation, then choose SKU.
  2. Build the pattern from parts such as the product name, vendor, product type, option values, your own text and a running number, joined by one separator.
  3. Tick the products or variants, or filter by collection, vendor, tag or a missing SKU, and check the new SKU shown under each one.
  4. Click Generate. To fill new products and variants as they are created, open AutoGen Setup on the Basic plan and use the same pattern.

Typing SKUs for hundreds of variants by hand invites mistakes. In SGT you build the pattern once from parts such as product name, vendor, option values and a counter, see a live preview of every new SKU, then write them to Shopify in one go. Existing SKUs stay unless you choose to overwrite them, and new products can get SKUs automatically.

More help: custom patterns with vendor, type and metafields, generate by vendor or collection and make SKUs from a list or Excel file.

Frequently asked questions

What's the difference between a SKU and a barcode?

A SKU is your own code for a product, made however you like. A barcode is a number that scanners read, often a UPC or EAN from GS1. In Shopify they are two separate fields, and a variant can have both.

Should every variant have its own SKU?

Usually yes, so you can count and reorder each size and colour. If you only stock one SKU for all variants, SGT can give every variant of a product the same SKU instead.

Can I change SKUs later?

Yes, but update any spreadsheets, labels and other systems that use them. Plan the pattern before you print labels.

Does Shopify generate SKUs automatically?

No. Shopify leaves the SKU field empty. Enter SKUs yourself, import them from a spreadsheet, or let an app such as SGT generate them, also automatically for new products.

How do I generate SKU codes for many products at once?

Use a SKU generator: build the pattern once, preview the new SKUs, and write them to every selected variant in one run. SGT's free plan covers 100 a month.

Written by SingleTec, the team that builds and supports SGT, a Built for Shopify app on the Shopify App Store since 2023.