How to generate SKUs
- Enter a short brand or category code and the product or style.
- List the values for up to three options, such as colors and sizes, separated by commas.
- Check the codes in the table. Choose how long automatic codes are, or set your own with Value=CODE.
- Download the CSV and import it into Shopify, your spreadsheet or your inventory app, or make barcode labels from the same list.
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.
- 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
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.
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.
Common questions
What is a SKU number?
Where do I find a product’s SKU number?
How do I generate SKUs in Excel?
How do I generate a SKU number?
How long should a SKU be?
Should a SKU start with a zero?
Is a SKU the same as a UPC?
Can I put a SKU in a barcode?
Related tools
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.