Skip to content
Shopify tutorials

How to import products into Shopify with CSV (products, variants & images)

Adding products one by one in the Shopify admin is fine when you sell five items. But if you have 200 products, a supplier spreadsheet, or a catalog exported from another platform, you need a faster way. The good news is that Shopify lets you import products with a CSV file, so you can create (or update) hundreds of products and variants in a single upload.

In this tutorial, we will learn how to import products into Shopify with CSV step by step: downloading the official template, filling in products and variants correctly, uploading the file, and fixing the most common import errors.

Previously, I published a tutorial on how to add products and variants in Shopify manually. If you only have a few products, that method is still the easiest. For bulk work, keep reading.

What you need before you start

  • Access to the Shopify admin with permission to manage products.
  • A spreadsheet app (Google Sheets, Excel, Numbers or LibreOffice) to edit the CSV.
  • Product images hosted at a public URL (for example, uploaded to Content > Files in your Shopify admin).
  • A backup of your current catalog. If you already have products, go to Products > Export first, so you can roll back if something goes wrong. CSV imports can’t be canceled once they begin.

Step 1: Download the Shopify product CSV template

Shopify provides a sample product CSV file that already has the correct column headers. Always start from this template (or from an export of your own store) instead of building the headers by hand, because the column headers are case-sensitive and must match exactly.

You can download the sample file from the Shopify Help Center import guide. If you already have products in your store, exporting them with Products > Export also gives you a file with the correct headers.

The template contains two example products. Delete those example rows before you import, otherwise they will be created in your store too. Also note that the sample includes an Inventory quantity column, which only works for stores with a single location.

Step 2: Fill in your products (and variants)

Open the template in your spreadsheet app. The first line must stay as the column headers. Each following line is a product row or a variant/image row. Here are the most important columns in the current template:

  • Title – the product name. This is the only required column for brand-new products.
  • URL handle – the unique handle used in the product URL (for example classic-tee). It is required when you add variants or update existing products. If you leave it blank for a new product, Shopify generates one from the title.
  • Description – the product description (HTML is allowed).
  • Vendor, Type, Tags – organization fields. Tags are separated by commas.
  • Product category – must match Shopify’s Standard Product Taxonomy (full category path or category ID).
  • Status – active, draft or archived. If the column is missing, products are imported as active.
  • Published on online store – true or false.
  • SKU, Price, Compare-at price, Inventory quantity – variant-level data.
  • Option1 name / Option1 value (and Option2, Option3) – the variant options such as Size or Color.
  • Product image URL, Image position, Image alt text – product images.

How to add variants in a CSV file

Variants are the part that confuses most people. The rule is simple: every row with the same URL handle belongs to the same product.

  • The first row of a product contains all product-level data (title, description, vendor, tags…) plus the first variant.
  • Each additional row repeats the URL handle and fills only the variant columns (option value, SKU, price, inventory). Leave Title, Description, Vendor and Tags blank on those rows.
  • Extra images work the same way: add a row with the same handle and a new Product image URL.

Below is a simplified example (only a few columns) of a T-shirt with three sizes. The highlighted first line is the header, the boxed row is the main product row, and the two yellow rows are extra variants that only repeat the handle:

Title,URL handle,Vendor,Option1 name,Option1 value,SKU,Price,Inventory quantity
Classic Tee,classic-tee,My Brand,Size,S,TEE-S,19.00,25
,classic-tee,,,M,TEE-M,19.00,30
,classic-tee,,,L,TEE-L,21.00,12

shopify product csv template variant rows

If a product has no options at all, set Option1 name to Title and Option1 value to Default Title, exactly like the products in the sample file.

Save the file as CSV UTF-8

Shopify only accepts UTF-8 encoded CSV files, and the file can’t be larger than 15 MB. Google Sheets saves UTF-8 by default (File > Download > Comma-separated values (.csv)). In Excel, use File > Save As and choose CSV UTF-8 (Comma delimited). If your catalog is bigger than 15 MB, split it into several files and import them one by one.

Step 3: Upload the CSV file in the Shopify admin

Now let’s import products into Shopify:

  1. From your Shopify admin, go to Products.
  2. Click Import (top-right corner of the products list).
  3. Click Add file and select your CSV file (1).
  4. Optional: deselect Publish new products to all sales channels if you only want the new products on your online store.
  5. Optional: select Overwrite products with matching handles (2) if you are updating existing products (see the next section).
  6. Click Upload and continue (3).

shopify import products by csv dialog

Shopify recommends using Google Chrome for the upload to avoid browser-related problems.

What “Overwrite products with matching handles” really does

This checkbox is powerful, so read this carefully before you tick it:

  • Unchecked: rows whose handle already exists in your store are ignored. Only new products are created.
  • Checked: existing products with the same handle are updated with the values in your file.
  • If a column is in your file but the cell is empty, the existing value is replaced with blank (for example, an empty Vendor cell clears the vendor).
  • If a column is not in your file at all, the existing values are kept. So when updating, delete the columns you don’t want to touch.
  • Changing Option1/2/3 values deletes the existing variant IDs and creates new ones, which can break apps that rely on variant IDs.

When you update existing products, the only required columns are URL handle and Title. But be careful: if you leave out Option1 name and Option1 value while including variant columns like SKU, Shopify creates a new default variant and deletes the existing variants.

Step 4: Review the preview and import

After uploading, Shopify shows the details about the import. Review them carefully (product titles, prices, variants and images), then click Import products.

When the file is uploaded, Shopify sends a confirmation email to the email address of your user account. Large files can take a while to process, so you can keep working while the import runs in the background.

Step 5: Check the imported products

Go back to Products and open a few imported items. Check:

  • Variants and option names are correct and not duplicated.
  • Images were downloaded (missing images usually mean the URL is not public).
  • Inventory quantity and price are correct for each variant.
  • Products are in the right status (Active or Draft) and on the right sales channels.

Note that Shopify doesn’t keep a history of past imports. If you need to see what changed, check the store activity log in the admin.

Once your catalog is in place, you can improve conversions by learning how to add related products in Shopify.

Common errors when importing products into Shopify

Here are the CSV import errors I see most often and how to fix them:

Unexpected characters or “Illegal quoting on line”

Your file isn’t UTF-8, or it contains curly “smart” quotes (“ ”) copied from Word or a website. Re-save the file as CSV UTF-8 and replace curly quotes with straight quotes (").

“Network error: Unexpected token < in JSON at position 0”

Your column headers don’t exactly match the template. Compare your first row with the official sample file, including uppercase/lowercase letters.

“Ignored line … because handle already exists”

You imported a product whose handle already exists without ticking Overwrite products with matching handles. Either tick the box (to update) or give the new product a unique handle.

“Validation failed: options are not unique”

Two rows with the same handle have identical option values (for example two M sizes). Every variant of a product needs a unique combination of options.

Images are not imported

The image URL must be a direct, publicly accessible link to the image file (not a Google Drive preview page or a password-protected URL). The easiest fix is to upload images in Content > Files, copy each file URL, and paste it into the Product image URL column.

“Fulfillment service can’t be blank” or “Inventory quantity is not a number”

If your file has these columns, they can’t be empty. Use manual as the fulfillment service if you fulfill orders yourself, and use whole numbers for inventory.

For the full list of messages, see Shopify’s troubleshooting guide for product CSV imports.

Bonus: importing products from another platform

If you are moving a whole store, a product CSV is usually just one part of the job. Export your products from the old platform, map the columns to the Shopify template, and import them in small batches first to test. If you are coming from Magento, check out my guide on how to migrate from Magento 2 to Shopify, and if you still manage a Magento store, here is how to bulk import products with CSV in Magento 2 for comparison.

Wrapping up

That’s how to import products into Shopify with CSV: download the template, fill in one row per variant with the same URL handle, save the file as UTF-8, upload it from Products > Import, and double-check the result. Once you get the hang of the handle/variant logic, bulk importing hundreds of products takes just a few minutes.

If you get an import error that isn’t covered here, leave a comment below with the exact message and I’ll try to help you fix it.

Written by

Hung Tran

Hung Tran is the main editor of magentip.com, he loves to write about everything related to Magento 2