Skupad

Skupad › Guides › Shopify CSV variants: one row per variant, option names on the first row

Shopify CSV variants: one row per variant, option names on the first row

Short answer. In a Shopify product CSV every variant is its own row with the same URL handle. The first row carries the product fields (Title, Description, Vendor, Tags) and the option names; every row carries that variant’s option values, SKU, price and stock. Each combination of option values must be unique within the product. Shopify allows up to 3 options and up to 2,048 variants per product.

A product with 2 options of 3 values each has 3 × 3 = 9 combinations, so it takes 9 variant rows.

Built row by row: 3 sizes × 3 colours

The linen apron comes in sizes S, M and L and colours Natural, Charcoal and Rust. Row 2 has the Title and both option names; rows 3–10 leave them empty and fill in only the variant’s own values. The three colour photos sit on the first three rows, and every row points its Variant image URL at the photo of its colour.

RowTitleOption1 nameOption1 valueOption2 nameOption2 valueSKUPriceQtyProduct image URLPos.Variant image URL
2Linen apronSizeSColorNaturalAPRON-S-NAT328…/apron-natural.jpg1…/apron-natural.jpg
3SCharcoalAPRON-S-CHA325…/apron-charcoal.jpg2…/apron-charcoal.jpg
4SRustAPRON-S-RUS324…/apron-rust.jpg3…/apron-rust.jpg
5MNaturalAPRON-M-NAT3410…/apron-natural.jpg
6MCharcoalAPRON-M-CHA347…/apron-charcoal.jpg
7MRustAPRON-M-RUS346…/apron-rust.jpg
8LNaturalAPRON-L-NAT366…/apron-natural.jpg
9LCharcoalAPRON-L-CHA363…/apron-charcoal.jpg
10LRustAPRON-L-RUS362…/apron-rust.jpg

Download this product as a CSV (with a one-option beanie as a second product) →

Which columns repeat and which stay blank

ColumnsRow 2 (first row)Rows 3–10 (other variants)Source
URL handleFilledFilled, the same valueShopify CSV page: “In the following rows, enter the URL handle.”
Title, Description, Vendor, TagsFilledBlankCSV page: “skip the Title, Description, Vendor, and Tags columns”
Option1 name, Option2 nameFilled (Size, Color)BlankShopify’s sample file: names on the first row of each product only
Option1 value, Option2 valueFilledFilledOne combination per row
SKU, Price, Inventory quantity, weight, Variant image URLFilledFilledCSV page: “Fill out the rest of the variants’ details”
CollectionFilled if usedIgnoredCSV page: values in the product’s other rows are ignored
Product image URL, Image positionFirst imageOnly on rows that add an imageOne image per row; see multiple images

Shopify’s own sample, product_template.csv, follows the same pattern for its t-shirt: 12 rows for 4 sizes × 3 colours, with Size and Color named on the first row only. A product without variants still has one row; in the Shopify Partners sample catalogue its Option1 name is Title and its Option1 value Default Title.

Limits, as Shopify states them

LimitValueShopify page
Options per productUp to 3 (Option1–Option3)CSV page; Adding variants
Variants per productUp to 2,048Adding variants
Media per productUp to 250; each variant can have one, from the product’s media listAdding variants
New variants per day10,000 by CSV or app, for stores with 500,000+ variants (not Shopify Plus)Adding variants
Themes, apps and channelsSome don’t support more than 100 variantsAdding variants

Adding a third option multiplies the rows again: 3 sizes × 3 colours × 2 materials = 18 variant rows for one product.

Worked example: two variant mistakes

The example file adds a beanie with one option, Color, and makes two mistakes that spreadsheets make easy: a colour typed twice and a SKU copied down one row too far.

Needs check findings: duplicate option values Grey on wool-beanie rows 11 and 13, and duplicate SKU APRON-L-CHA on rows 9 and 10
Rows 11 and 13 are both Color Grey, so Shopify cannot tell them apart (its troubleshooting message is “Validation failed: options are not unique”). Rows 9 and 10 share SKU APRON-L-CHA: Shopify accepts that, but apps that look variants up by SKU may mix them up.

Open this example in Skupad →

The first is kept out of Skupad’s minimal import file until it is fixed; the second is yours to confirm. Change row 13 to a new colour (or delete it) and give row 10 its own SKU, APRON-L-RUS.

Deleting the option columns

A common shortcut when changing only prices is to delete every column except handle, Title, SKU and Price. Shopify’s CSV page warns against exactly that: “If you don’t include the Option1 name and Option1 value columns, then a new default variant is created and existing variants are deleted.”

Needs check findings: Option1 name/value columns absent from the file, and three linen-apron rows that cannot be told apart
Without the option columns the file has no way to say which apron row is which variant: Skupad flags the missing columns and the three rows that now look identical.

Open this example in Skupad →

Changing option values later

Renaming an option value in a CSV — Sand to Stone, S to Small — is not a rename in Shopify: “Changing data in the Option1 value, Option2 value, or Option3 value columns of the product CSV file deletes existing variant IDs, and creates new variant IDs.” Apps that store variant IDs can break. Compare the file with your export first; Skupad marks every option-value change with that warning. If it already happened, see what a backup can and cannot restore.

Next step

Sources