Home/Ecommerce/SKU Generator

SKU Generator

Build SKUs a warehouse picker can actually read — structured from your own attribute codes, with one-click generation of the full variant matrix.

Free Browser-based No signup Copy-ready
SKU Structure
Build one SKU from fixed attributes.
Format CODE: Meaning. The code becomes part of the SKU; the meaning is only a note for you.
Options
TSH-BLK-M
Generated SKUs

How it works

1

Define your segments

Category, product, colour, size — each as a short code with a meaning you can refer back to.

2

Generate the matrix

Two variant axes produce every combination in a readable grid.

3

Export to your store

CSV with attributes imports straight into Shopify, WooCommerce or a spreadsheet.

What separates a good SKU from a random string

A SKU is an internal identifier you control, unlike a barcode number which must be globally unique and purchased. That freedom is the point: you can make it mean something. TSH-BLK-M tells a picker what to grab without opening a system; SKU-849271 tells them nothing.

A structure that scales

Order segments from broad to narrow — category, product, colour, size. This makes an alphabetical sort genuinely useful: everything in a category groups together, then by product, then by variant.

Keep each segment a fixed width where you can. Mixed widths make columns ragged and sorting unpredictable.

Things that never belong in a SKU

  • Price — it changes, and the SKU cannot.
  • Supplier — you may switch or dual-source.
  • Season or year, unless you genuinely retire the item annually.
  • Stock location — the same item moves between bins.
  • Spaces, slashes or accents — they break CSV imports and URLs.
Never start a SKU with a digit. Excel and Google Sheets treat it as a number, strip leading zeros and sometimes convert to scientific notation. A SKU of 0012345 arrives at your supplier as 12345, and this quietly corrupts more product imports than anything else on this list.
A SKU is not a barcode. If you sell through retail or major marketplaces you will also need a real GTIN from a GS1 prefix — see the barcode number generator for how that differs.

Frequently Asked Questions

View all FAQs
What does SKU stand for?
SKU stands for Stock Keeping Unit.
Is a SKU the same as a barcode?
No. A SKU is an internal inventory identifier. A barcode is a machine-readable representation of data and may encode a SKU or a standardized product number.
Is a SKU the same as UPC or EAN?
No. SKUs are created internally by the seller. UPC/EAN values are part of standardized GS1 product identification.
Should every product variant have a unique SKU?
Yes, when variants are tracked as separate inventory items. Each color/size combination should have its own SKU.
How long should a SKU be?
Keep it as short as practical. Shopify recommends concise SKUs and suggests no more than about 16 characters as a best-practice target, while platform limits vary.
Should SKUs contain spaces?
Avoid spaces and problematic special characters when possible because they can create search and integration issues.
Can I generate all color and size combinations?
Yes. Use the variant matrix mode to create a SKU for every combination of the selected variant axes.

SKU Generator – Create Product and Variant Codes That Scale

Use the SKU Generator above to create readable Stock Keeping Unit codes for individual products or complete variant combinations.

For one item, define the segments you want to use. For a product with color and size variants, enter the base product code and each variant axis. The tool can generate every combination automatically.

For example: Product T-Shirt, Color Black, Size Medium → SKU TSH-BLK-M.

Turn on uppercase formatting for consistency, strip vowels when you want shorter auto-derived codes, remove unsafe punctuation and add a trailing sequence when necessary for uniqueness.

The goal is not to create a clever code. A good SKU should help people and software identify the exact inventory item without guessing.

What Is a SKU?

SKU stands for Stock Keeping Unit.

It is an internal code created by a business to identify an inventory item.

A SKU can represent:

  • one product
  • one size
  • one color
  • one pack size
  • one material
  • one model variation

For example, a black medium T-shirt and a white medium T-shirt should normally have different SKUs if they are tracked as separate inventory variants.

Shopify recommends assigning unique SKUs to products and variants so inventory can be managed accurately.

SKUs are business-controlled identifiers.

Unlike GTINs, UPCs or EANs, they are not assigned from a global GS1 numbering system.

How to Use This SKU Generator

Choose the mode.

Single product — enter the SKU segments you want to combine.

For example:

TSH: T-Shirt
BLK: Black
M: Medium

The generated SKU becomes:

TSH-BLK-M

Variant matrix — enter a base product code, then one or two variant axes.

Example:

Colors: BLK: Black, WHT: White
Sizes: S: Small, M: Medium, L: Large

The generator creates every color/size combination.

Export the results and assign each code to the matching product variant in your inventory or ecommerce platform.

SKU vs UPC

A SKU is internal.

A UPC is a standardized retail barcode identifier used within the GS1 system.

You create your own SKU.

A legitimate retail GTIN/UPC is assigned according to GS1 rules.

Example:

SKU: TSH-BLK-M
UPC: a numeric GS1 identification value assigned to the trade item

The two can coexist.

A warehouse picker may recognize the readable SKU.

A retail scanner may use the UPC barcode.

Do not create a random 12-digit number and assume it is a valid retail UPC assigned to your company.

Use the Barcode Number Generator only for structural testing unless you have the appropriate GS1 company prefix or assigned numbers.

SKU vs Product Code

The terms can overlap.

Some businesses use "product code," "item code" and "SKU" interchangeably.

A useful distinction is:

Product code — identifies the model or base product.

SKU — identifies the exact stock-tracked sellable variant.

Example:

Product: Classic T-Shirt
Product code: TSH100
Variant SKUs: TSH100-BLK-S, TSH100-BLK-M, TSH100-WHT-M

If your catalog has no variants, one product code and one SKU may be the same value.

Use whatever terminology your inventory platform uses consistently.

Every Variant Should Have Its Own SKU

If size, color or another attribute creates separately tracked inventory, each combination needs its own identifier.

Suppose one product has 3 colors and 4 sizes.

That creates 3 × 4 = 12 inventory variants.

Each should have a unique SKU.

Otherwise stock counts become ambiguous.

You cannot reliably answer "How many black medium shirts remain?" if all colors and sizes share TSH-001.

Variant-level SKUs support accurate:

  • picking
  • replenishment
  • returns
  • sales reporting
  • stock transfers

The variant matrix mode automates these combinations.

Keep SKUs Short

Shopify’s current SKU guidance recommends keeping SKUs as short as practical, with an example best-practice ceiling around 16 characters.

Short codes are easier to:

  • type
  • scan visually
  • fit on labels
  • search
  • export
  • read over the phone

Do not treat 16 as a universal technical limit for every ecommerce system.

Different platforms have different field constraints.

Before finalizing a scheme, check:

  • ecommerce platform
  • ERP
  • WMS
  • marketplace feeds
  • POS
  • accounting software

Use the shortest format that still distinguishes inventory clearly.

Avoid Spaces and Problematic Symbols

Shopify advises avoiding spaces, special characters and symbols that can cause search problems.

Dashes and underscores are useful separators.

A clean SKU TSH-BLK-M is usually safer across systems than T-Shirt / Black / Medium #1.

Characters such as slashes can also cause trouble when SKUs appear in:

  • URLs
  • filenames
  • CSV exports
  • integrations

The generator can remove unsafe characters automatically.

Choose one allowed character policy before your catalog grows.

Cleaning 50 SKUs is easy. Cleaning 50,000 is not.

Use Uppercase Consistently

Case differences can create subtle integration problems.

These may look like the same SKU to a person: tsh-blk-m and TSH-BLK-M, but some systems compare them differently.

A consistent uppercase convention avoids that ambiguity.

The generator can normalize output automatically.

If your existing store already uses lowercase SKUs, do not migrate everything simply because uppercase is popular.

Consistency is the objective.

One catalog should not contain accidental duplicates that differ only by case.

Avoid Ambiguous Characters

Shopify specifically warns about confusing 0 and O, 1 and I.

This matters when staff type SKUs manually.

For example, B01I can be hard to read on:

  • small labels
  • packing slips
  • low-resolution screens

If possible, design human-created attribute codes to avoid ambiguous combinations.

You do not need to ban those characters from every SKU.

A model number supplied by a manufacturer may legitimately contain them.

The goal is to avoid unnecessary confusion in the parts of the code you control.

Meaningful SKU Segments

Readable SKUs can speed warehouse work.

Example: TSH-BLK-M tells a trained picker:

  • product family: T-shirt
  • color: black
  • size: medium

Another business may prefer a neutral sequence SKU-104821 because product attributes change too often.

Both are valid strategies.

Use meaningful segments when the codes remain stable and genuinely help staff.

Do not encode attributes that are frequently renamed.

A SKU should not need to change because marketing changes "Midnight Blue" to "Navy."

Use stable internal attribute codes.

Should SKUs Include Price?

No.

Price changes.

A SKU should remain stable while the item is repriced.

Do not create TSH-BLK-M-2999 to mean a $29.99 product.

The price belongs in the product record.

The same principle applies to:

  • sale status
  • stock quantity
  • warehouse bin
  • current supplier cost

Those are changing attributes.

A SKU identifies the inventory item.

It should not need to change every time the business updates operational data.

Never Reuse Old SKUs Casually

Suppose TSH-BLK-M was discontinued.

Two years later a completely different product launches.

Do not assign it the old SKU simply because the old item is no longer sold.

Historical orders, returns and reports still reference that code.

SKU reuse can make old sales appear to belong to the new item.

Keep retired SKUs in historical records and issue a new identifier for a genuinely different inventory item.

If a product returns unchanged, your catalog policy can decide whether reactivation of the same SKU is appropriate.

SKU and Barcode Labels

A warehouse label can display the SKU as text and barcode.

For example, TSH-BLK-M can be encoded in Code 128 for internal scanning.

This does not turn the SKU into a GTIN.

Internal barcode encodes your SKU for warehouse use.

Retail barcode encodes a GS1-assigned product identifier where required.

Keep those concepts separate.

Many businesses print both:

  • SKU for internal fulfillment
  • EAN/UPC for retail/product identification

The scanner workflow determines which data should be encoded.

Common SKU Mistakes

Avoid these problems:

  • giving every variant the same SKU
  • using prices or stock quantities in the code
  • mixing uppercase and lowercase inconsistently
  • using spaces and problematic punctuation
  • creating codes so long staff cannot read them
  • making abbreviations no one understands
  • reusing discontinued SKUs for unrelated new products
  • confusing SKU with UPC/EAN/GTIN
  • depending on supplier SKU as your only internal key without a policy
  • changing SKUs casually after integrations and historical orders depend on them

A scalable SKU system is intentionally boring: short, unique, consistent and documented.

Related searches

sku generatorproduct variant sku generatorsku vs upcsku vs product codesku naming conventionvariant matrix skuecommerce sku formatsku barcode labelsku best practices shopifysku character restrictionssku generator csv exportunique sku generator online