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.