StriveFormats
ShopifyGuide

Shopify Product Variants Explained: CSV Structure and Common Mistakes

Learn how Shopify's CSV format represents product variants using Handle grouping, Option columns, and parent/child rows. Avoid the most common mistakes that cause split products, missing variants, and import errors.

Updated 2026-10-29
What you'll learn
  • ✓How Shopify uses Handle to group a parent product and its variants
  • ✓Which columns are required for parent rows vs variant rows
  • ✓How Option1 Name, Option1 Value, and Variant columns work together
  • ✓The most common variant structure mistakes and how to fix them
  • ✓How to add new variants to an existing product without overwriting it
Best for: Shopify merchants and developers importing or updating products with size, color, material, or other variant options
Time to complete: 12 minutes

Ready to fix your CSV? Upload it for instant validation and auto-fixes.

Open CSV Fixer

How Shopify Represents Variants in CSV

In Shopify's product CSV, a product with multiple variants is represented as multiple rows sharing the same Handle. The first row is the "parent" row, which contains the product-level data. Each following row with the same Handle is a variant row.

Minimal example: T-shirt with two sizes

1HandleTitleOption1 NameOption1 ValueVariant PriceVariant SKUImage Src
2blue-shirtBlue T-ShirtSizeSmall19.99BLUE-SMhttps://cdn.example.com/shirt.jpg
3blue-shirtSizeMedium21.99BLUE-MD
CSV

Key observations:

  • Both rows share the Handle blue-shirt.
  • The second row has a blank Title, blank Image Src, and a new Option1 Value.
  • Each row represents one purchasable variant (one combination of option values).

The Parent Row

The first row for a given Handle is the parent row. It sets product-level fields:

ColumnRequired in parentNotes
HandleYesUnique slug for this product; letters, numbers and hyphens
TitleYesThe product name
Body HTMLNoProduct description; only needed in parent row
VendorNoBrand name
TypeNoProduct type (for collections)
TagsNoComma-separated tags
PublishedNotrue or false
Option1 NameYes (if using options)Name of the first option dimension (e.g., "Size")
Option1 ValueYes (if using options)Value for the first variant (e.g., "Small")
Image SrcNoURL of the primary image

A parent row must have Title. If Title is blank, Shopify does not recognize it as a parent row and the import can produce incorrect results.

Variant Rows

Each row after the first with the same Handle is a variant row. Variant rows:

  • Share the same Handle as the parent.
  • Have a blank Title (or the same Title, since Shopify ignores it for non-parent rows).
  • Have their own Option1 Value (and Option2 Value, Option3 Value if applicable).
  • Have their own Variant Price, Variant SKU, Variant Inventory Qty, etc.

Variant-specific columns

ColumnNotes
Variant PriceDecimal number (no currency symbol); a blank price imports as 0.00
Variant SKUOptional but strongly recommended; keep it unique, because Shopify doesn't stop duplicates
Variant GramsWeight in grams
Variant Inventory QtyInitial stock count
Variant Inventory Policydeny or continue (continue = allow oversell)
Variant Fulfillment ServiceUsually manual
Variant Requires Shippingtrue or false
Variant Taxabletrue or false
Variant BarcodeEAN, UPC, or other barcode

Multi-Dimensional Options (Size AND Color)

Shopify supports up to three option dimensions using Option1, Option2, and Option3 columns.

Example: T-shirt with Size and Color options

1HandleTitleOption1 NameOption1 ValueOption2 NameOption2 ValueVariant PriceVariant SKU
2blue-shirtBlue T-ShirtSizeSmallColorBlue19.99BLUE-SM-BLU
3blue-shirtSizeSmallColorRed19.99BLUE-SM-RED
4blue-shirtSizeMediumColorBlue21.99BLUE-MD-BLU
5blue-shirtSizeMediumColorRed21.99BLUE-MD-RED
CSV
  • Option1 Name and Option2 Name only need to appear on the parent row (first row per Handle). Repeating them on variant rows is harmless.
  • Every combination of options needs its own row.
  • A product with 3 sizes and 4 colors requires 12 variant rows.

Common Mistakes

Mistake 1: Different Handles for the same product

Symptom: What should be one product with variants appears as multiple separate products after import.

Fix: All rows belonging to one product must share exactly the same Handle value. A typo (blue-shirt vs blue-shirt-) causes Shopify to create a new product.

Mistake 2: Product details on variant rows

Symptom: A title, description or tag you typed on a variant row doesn't show up after import.

Fix: Shopify reads product-level fields (Title, Body HTML, Vendor, Tags and so on) from the first row of each Handle. Put them there, and leave them blank on later rows.

Mistake 3: Missing Option1 Name column

Symptom: Variants don't appear, or the product ends up with a single variant called "Default Title".

Fix: Always include Option1 Name in the header and a value on at least the parent row. If your product has no real options, set Option1 Name to Title and Option1 Value to Default Title. Leaving the option columns out entirely makes Shopify create a new default variant and delete the existing ones.

Mistake 4: Option values don't match across rows

Symptom: Shopify creates more variants than expected, or option names appear duplicated.

Fix: Option1 Name must be the same string across all rows for a given Handle. If the parent row says Size, every variant row must also say Size (or leave it blank). Mixing Size, size, and Sizes creates inconsistent option data.

Mistake 5: Variant Price is blank

Symptom: Variants are created with a $0.00 price.

Fix: Shopify doesn't reject a blank price; it imports the variant at 0.00. Prices aren't inherited, so even if all variants share the same price, each row must specify it.

Mistake 6: Adding a new variant overwrites existing variants

Symptom: After a partial import (adding one new variant), all other variants disappear.

Fix: When updating a product via CSV import, include all of its existing variants in the file, not just the new one. Shopify matches variants by their option values, and variants missing from the file can be removed when you overwrite the product.

Tips for Large Catalogs

  • Generate variant rows programmatically. For products with many option combinations (3 sizes × 4 colors × 2 materials = 24 rows), use a spreadsheet formula or a script to expand the combinations, rather than entering them manually.
  • Use consistent SKU patterns. A SKU like BASE-SIZE-COLOR (e.g., SHIRT-SM-BLU) makes it easy to identify and sort variants.
  • Test with one product first. Import a single product (parent + all its variants) before uploading the full catalog. Confirm the variant structure in the Shopify admin before proceeding.
Need help fixing your file?

Upload your CSV to StriveFormats for instant validation, auto-fixes, and a clean export.

The CSV Fixer showing a Shopify file with one blocking issue, the error and warning counts, and the problem cells highlighted