Skip to content
BizMathKit

SKU Generator

Build SKU numbers for every variant of a product at once, from your own codes for brand, style, color and size, then download them as a CSV.

2–4 letters, e.g. TS for T-shirts.

Codes are made for you (Black → BLK). To choose your own, write Value=CODE, e.g. Forest green=FG.

12 SKUs · first one
TS-CREW-BLK-S
12 variants
SKUColorSize
TS-CREW-BLK-SBlackS
TS-CREW-BLK-MBlackM
TS-CREW-BLK-LBlackL
TS-CREW-BLK-XLBlackXL
TS-CREW-WHT-SWhiteS
TS-CREW-WHT-MWhiteM
TS-CREW-WHT-LWhiteL
TS-CREW-WHT-XLWhiteXL
TS-CREW-NVY-SNavyS
TS-CREW-NVY-MNavyM
TS-CREW-NVY-LNavyL
TS-CREW-NVY-XLNavyXL
Make barcode labels for these SKUs
Step by step

How to generate SKUs

  1. Enter a short brand or category code and the product or style.
  2. List the values for up to three options, such as colors and sizes, separated by commas.
  3. Check the codes in the table. Choose how long automatic codes are, or set your own with Value=CODE.
  4. Download the CSV and import it into Shopify, your spreadsheet or your inventory app, or make barcode labels from the same list.
The format

How a SKU is built

Go from general to specific, so SKUs for the same product sort together. Every combination of options gets its own SKU, which is how inventory is counted: a black medium and a black large are different items on the shelf.

SKU = Category · Product · Option 1 · Option 2 · Option 3 · Number
Category
a brand, department or product type code
Options
short codes for each variant, e.g. BLK, M
Number
an optional running number for items without options
Worked example
TS-CREW-BLK-M
Three colors and four sizes make 12 SKUs, from TS-CREW-BLK-S to TS-CREW-NVY-XL.

SKU rules worth following

  • Use capital letters, numbers and hyphens only. No spaces or symbols.
  • Never start with 0, and avoid mixing O with 0 or I with 1.
  • Keep it under 16 characters.
  • Use the same codes everywhere: BLK always means black.
  • Leave out things that change, like price or supplier.

The generator counts a repeated value once, numbers codes that would clash, and tells you about values it can’t turn into a code.

Keep a code list

Write down the codes you use for categories, colors and sizes, and stick to them as you add products. A shared list stops two people from inventing different codes for the same thing. Use the share link to save your format: anyone who opens it sees the same settings.

Next step

Importing SKUs into your store

The CSV has one row per variant, with the SKU and each option value in its own column. Most platforms, including Shopify, WooCommerce and spreadsheet inventory systems, can match those columns to their own fields on import. Check that the option names match exactly what your store uses, such as Color and Size, before you import. Keep the same SKU when a product is restocked, and only create a new one when something about the product itself changes.

FAQ

Common questions

What is a SKU number?
A SKU (stock keeping unit) is a code you make up to identify each product and variant you stock. “TS-CREW-BLK-M” might be a black crew-neck T-shirt in medium. Unlike a UPC barcode, a SKU is yours: it doesn’t need to be registered and only has to be unique in your own inventory.
Where do I find a product’s SKU number?
A store’s SKU is usually shown on its shelf tag, price label, receipt or product page, and in the product list of its inventory or point-of-sale system. It belongs to that seller, so another shop may use a different SKU for the same item.
How do I generate SKUs in Excel?
With the product in A2, color in B2 and size in C2, enter =UPPER(LEFT(A2,3)&"-"&LEFT(B2,3)&"-"&C2) and fill it down; Shirt, Black and M give SHI-BLA-M. Check the column for repeats, because different names can start with the same letters.
How do I generate a SKU number?
Pick a short code for the category or brand, add the product or style, then a code for each variant option such as color and size. Join them with hyphens. This tool does it for every combination at once and checks for common problems.
How long should a SKU be?
Short enough to read and type without mistakes. Shopify recommends no more than 16 characters, and 8 to 12 is typical. The tool warns you when a SKU runs past 16.
Should a SKU start with a zero?
No. Spreadsheets and some inventory systems drop leading zeros, so 0123 turns into 123. Start with a letter instead.
Is a SKU the same as a UPC?
No. A UPC (GTIN) is a global number licensed from GS1 that retailers scan at checkout. A SKU is your own internal code. Many sellers use both: the SKU for their stock, and a UPC on the package. Make the barcode with the barcode generator.
Can I put a SKU in a barcode?
Yes. Code 128 handles letters, numbers and hyphens, so it’s the usual choice for SKU labels on shelves and bins. Paste your SKUs into the barcode generator’s bulk mode to print them all.

Related tools

Built and checked by BizMathKit
Checked by hand against Shopify Help Center on SKU formats and BDC on SKU best practices. How we check formulas. Last updated . Runs in your browser — nothing you enter is sent anywhere.