How the generator builds a SKU
Each line of your list is split into parts: Name | Category | Attribute | Attribute…. Every part is shortened to a short code, then joined in a fixed order:
PREFIX – CATEGORY – PRODUCT – ATTRIBUTES – NUMBER
- Multi-word values use their initials first: Navy Blue → NBL, Canvas Tote Bag → CTB.
- Single words keep the first letter plus consonants: Large → LRG, Medium → MDM.
- Sizes and volumes with digits stay as they are: 12 oz → 12OZ, XL → XL.
- If two lines produce the same SKU, a -2, -3 suffix is added and you’re warned.
Example: Classic T-Shirt | Apparel | Navy Blue | Large becomes PS-APP-CTS-NBL-LRG-0001. Untick “Category code” or the number to make it shorter.
SKU best practices
- Decide the order once and never change it. Consistency is what makes SKUs readable at a glance.
- Put the most general attribute first (brand or category), the most specific last (size).
- Don’t encode things that change — price, supplier, season — or you’ll have to rename SKUs.
- Never reuse a SKU for a different product, even after the old one is discontinued.
- Keep them short. They get typed, printed on small labels and read over the phone.
SKUs in WooCommerce
WooCommerce requires SKUs to be unique across all products and variations. Give each variation its own SKU (the parent can have a shorter one). The CSV from this tool uses WooCommerce’s column names (Name, SKU, Categories), so you can merge it into a product import. To print the SKUs as labels, paste them into the barcode generator‘s bulk mode.