Before you start: download Shopify's current sample product CSV from Products → Import in your admin and copy its header row exactly. Shopify has renamed some headers over time, so most tutorials (this one included) use the classic names like Handle and Variant Price - match whatever your sample file uses.
How Shopify reads a product CSV
The single most important idea: Shopify groups rows into products by the Handle column. Every row with the same handle belongs to the same product. The first row for a handle carries the product-level details (title, description, vendor, type, tags). Each following row with that handle adds another variant or another image.
A handle is the product's URL slug - lowercase, words separated by hyphens, and unique across your store. salon-repair-shampoo becomes yourstore.com/products/salon-repair-shampoo.
Products with variants
A product can have up to three options (for example Size, Colour and Material). The option names go in Option1 Name, Option2 Name and Option3 Name on the first row. Each row then gives the option values for one variant.
Here's a shampoo sold in two sizes. Notice that the second row repeats only the handle and the variant-specific fields:
| Handle | Title | Option1 Name | Option1 Value | Variant SKU | Variant Price | Variant Barcode |
|---|---|---|---|---|---|---|
| salon-repair-shampoo | Salon Repair Shampoo | Size | 300 ml | SRS-300 | 18.99 | (UPC) |
| salon-repair-shampoo | 1 L | SRS-1000 | 39.99 | (UPC) |
A product with no variants still needs an option: use Title as the option name and Default Title as the value. That's how Shopify represents a single-variant product.
Every combination of option values must be unique within a product. Two rows that both say Size = 300 ml under the same handle will make the import fail.
Adding extra images
The first image goes in Image Src on the product's first row. For more images, add extra rows that contain only the handle, the image URL and its order:
| Handle | Image Src | Image Position | Image Alt Text |
|---|---|---|---|
| salon-repair-shampoo | https://…/shampoo-front.jpg | 1 | Salon Repair Shampoo bottle, front |
| salon-repair-shampoo | https://…/shampoo-back.jpg | 2 | Salon Repair Shampoo bottle, back label |
To show a specific photo when a shopper picks a variant (useful for shades and colours), put that image's URL in the variant row's Variant Image column. Image URLs must be publicly accessible - Shopify downloads them during the import.
The columns that matter most
| Column | What it does |
|---|---|
| Handle | Groups rows into one product and sets the URL. Must match exactly on every row of the product. |
| Title | Product name. First row only. |
| Body (HTML) | Product description. HTML is allowed. |
| Vendor / Type / Tags | Brand, product type and comma-separated tags - used by filters and automated collections. |
| Published / Status | TRUE/FALSE for the online store, and active, draft or archived. Import as draft if you want to review first. |
| Option1–3 Name / Value | Variant options. Names on the first row; values on every variant row. |
| Variant SKU / Barcode | Your stock code and UPC/EAN. Barcodes matter for Google Shopping, review apps and marketplaces. |
| Variant Price / Compare At Price | Selling price, and the higher "was" price if the item is on sale. |
| Variant Grams | Weight in grams, used for shipping rates. |
| Variant Inventory Tracker / Qty / Policy | shopify to track stock, the quantity, and deny or continue for selling when out of stock. |
| SEO Title / SEO Description | The title and meta description Google shows. Worth filling in for every product. |
Running the import
- Save your file as CSV UTF-8 - not .xlsx. UTF-8 keeps accents and special characters intact.
- In Shopify admin, go to Products → Import and upload the file.
- If you're updating existing products, tick Overwrite products with matching handles. Values in the columns you include will replace what's in the store, so include only the columns you mean to change.
- Check the preview, run the import and wait for Shopify's confirmation email.
- Open a few imported products on the storefront and check variants, prices and images before importing the rest.
Product CSV files can be up to 15 MB. For very large catalogs, split them into batches - it also makes errors easier to find.
Common errors and fixes
Variants imported as separate products
The handles don't match exactly - a trailing space, a capital letter or a typo is enough. Make every row of a product use an identical handle.
Barcodes turned into numbers like 1.23457E+11
Excel converts long numbers to scientific notation and drops leading zeros. Format the barcode column as Text before pasting data in, or edit the file in Google Sheets and download it as CSV.
"Options are not unique" or duplicate variant errors
Two variant rows under one handle have the same combination of option values. Each variant needs a different value set.
Images missing after import
The URLs aren't public (for example, a private Google Drive link) or they redirect to a login page. Host images somewhere that serves the file directly and test the URL in a private browser window.
Weird characters in titles and descriptions
The file wasn't saved as UTF-8. Re-save it as CSV UTF-8 and import again.
Stock levels didn't update
If you stock products at more than one location, update quantities with the separate inventory CSV (Products → Inventory → Import), which lets you set stock per location.
Pre-import checklist
- Header row copied from Shopify's current sample CSV
- One identical handle for every row of each product
- Option names on the first row; unique option values on every variant row
- Barcode column formatted as text - no scientific notation
- All image URLs public and loading
- SEO title and description filled in
- Saved as CSV UTF-8, under 15 MB
- Tested with a small batch first
Want a ready-made file? Download the free Shopify product CSV template with single-product and variant examples already filled in.
Got a big or messy catalog? I build Shopify CSV pipelines for multi-brand stores with thousands of variants. See Shopify catalog & CSV automation or get a quote.