Advertisement

Free Online Product Variant Generator

Generate SKU combinations from sizes, colors, and options.

Use {base}, {index}, or any attribute name in braces, such as {Size}.

Waiting
Combinations
0
Full cartesian product
Generated
0
Rows in the table and CSV
Price range
—
After per-value adjustments
Advertisement

About the Product Variant Generator

A product with three sizes and four colors has twelve purchasable variants. Add a material or a finish and the count multiplies again. Creating those rows by hand is slow and easy to get wrong, especially when each variant needs a unique SKU. This generator takes a list of attributes and values, builds the complete cartesian product, and assigns a SKU and price to every combination.

Each attribute has a name and a comma-separated list of values. A value can include a price adjustment after a colon, such as XXL:+4 or Gift box:2.50, which is added to the base price for that variant. Negative adjustments are allowed with a minus sign. The SKU pattern controls the code. Tokens in braces are replaced with the base SKU, the one-based row index, or the value of an attribute. The default pattern {base}-{Size}-{Color} produces codes such as TSHIRT-M-BLACK. Values are uppercased and cleaned so the result can be used in a store backend.

The maximum variant field protects the browser from an accidental explosion. Four attributes with ten values each would produce ten thousand rows. The tool calculates the full combination count first, then generates only up to the limit and warns you when the list is truncated. The table shows every attribute, the SKU, and the final price. The CSV export includes the same columns and can be imported into many e-commerce platforms, though every platform has its own column requirements, so you may need to rename headers.

The generator does not create inventory records, images, barcodes, or marketplace listings. It does not check SKU uniqueness against a database, so review the output for collisions if two attribute values normalize to the same slug. Adjustments are simple sums, not percentages. All processing happens locally in your browser.

How to use this tool

  1. Enter a base SKU, base price, currency, and maximum variant count.
  2. Add attributes and list their values, with optional :adjustment suffixes.
  3. Set the SKU pattern and click Generate variants.
  4. Copy the CSV or download it for import into your store.

Frequently asked questions

How do I add a price adjustment?

Put a colon after the value and then the amount, for example XXL:+4 or Gift wrap:2.50. The amount is added to the base price.

Why are some variants missing?

The combination count exceeded the maximum variants value. Raise the limit or reduce the number of attribute values.

Can I use spaces in attribute names?

The name is shown in the table, but the SKU token uses the exact name inside braces. Short names without spaces are easier to maintain.

Sponsored
Find a bug? Report now