Skip to content
ShopPilotStart free trial

How to import and bulk edit Shopify products with a CSV

By 15 min read

Shopify's bulk editor with two test products, showing base prices and compare-at prices being changed.

I re-imported a CSV into my Shopify store to change two prices. Before the import, Shopify showed me a preview: no description, wrong vendor, status Active. I nearly hit Cancel.

The import kept the description and the vendor just fine. What it did delete were the product's tags, which the preview never mentioned. I had left the Tags column in the file, empty, and Shopify read empty as "delete this".

That is the CSV import in one story. It works, it is fast, and it does exactly what the file says, including things you didn't mean. This guide shows how to import new products, how to change existing ones in bulk, when the built-in bulk editor is the faster tool, and the mistakes that break imports. Your first import takes about 20 minutes. After that, about 5.

CSV or bulk editor: which one to use

Shopify gives you two tools for changing many products at once.

A CSV file is a plain spreadsheet saved as text, with one row per product or variant. You upload it under Products, then Import.

The bulk editor is a spreadsheet inside the Shopify admin. You tick products in your product list, click Bulk edit, and type straight into the cells.

JobBetter toolWhy
Add new productsCSVThe bulk editor can only edit products that already exist.
Move products from another platformCSVYou build one file and import everything in one go.
Change prices on 5 to 50 productsBulk editorNo file, no export, no risk of wiping fields. You see the change before you save.
Raise every price by 10%CSVThe bulk editor has no formulas. In a spreadsheet you write one formula and copy it down.
Change prices on hundreds of productsCSVThe bulk editor gets slow, and Shopify itself suggests a CSV for large batches.
Fix one field, like a tag or a vendor, on a few productsBulk editorFaster than exporting and re-importing.

My opinion: use the bulk editor whenever it can do the job. Every CSV re-import is a small risk to your live catalog. The bulk editor changes only the cells you touch.

Step 1: Download Shopify's template

Don't build the file from memory. Shopify has two sets of column names. The current sample template and Shopify's column reference use names like URL handle, Description, Price, SEO title and SEO description. Older templates used other names, and the file you get when you export your own products can still use them: my export said Handle, SEO Title and SEO Description. Shopify says it keeps accepting the older names (same page). I use the template's names in this guide.

  1. In your Shopify admin, click Products.
  2. Click Import (top right).
  3. In the Import products window, click Download sample CSV.

You can also get it directly from Shopify's help centre.

The template has about 60 columns and a sample t-shirt with many variants. Delete the sample rows, keep the header row, and delete the columns you don't need. A shorter file is easier to check.

Step 2: Understand which columns you need

For a new product, only Title is required. As soon as a product has variants, you also need URL handle (Shopify's column reference).

A handle is the product's ID in the file and the end of its web address. test-guide-moon-mug becomes yourstore.com/products/test-guide-moon-mug. Letters, numbers and dashes only, no spaces.

A variant is one version of a product, like size Small or size Large. Each variant has its own price, SKU and stock.

Here are the columns I'd actually use:

ColumnRequired?What to put in it
TitleRequired for new products and for updatesThe product name customers see. Only on the product's first row.
URL handleRequired if the product has variants, and always required for updatesThe same handle on every row of the same product.
StatusOptional, but always include itdraft, active or archived. If you leave this column out, new products are imported as Active.
DescriptionOptionalThe product description. HTML is allowed.
VendorOptionalThe brand. If you leave it out, Shopify fills in your store name.
TypeOptionalYour own product type, for example "Mug".
TagsOptionalComma-separated, inside one cell: mug, gift, sale.
Published on online storeOptionaltrue or false.
Option1 nameRequired if the product has variantsFor example Size. Only on the first row.
Option1 valueRequired if the product has variantsFor example Small on the first row, Large on the next.
SKUOptionalYour stock code for this variant.
PriceOptional, but you want itNumbers only, no currency sign: 18.00. If blank, the price is 0.00.
Compare-at priceOptionalThe old "was" price that shows as crossed out. Numbers only.
Inventory trackerOptionalshopify to track stock, or blank to not track it.
Inventory quantityOptionalStock count. Works only if you have one location.
Continue selling when out of stockOptionaldeny or continue.
Product image URLOptionalA public https:// link straight to the image file.
Image positionOptional1 for the main image, 2 for the next, and so on.

Step 3: Put variants on separate rows

This is where most first files go wrong. One product with two sizes is two rows, not one row with two prices.

  • The first row has everything: title, description, vendor, tags, option name, the first variant's value and price, and the first image.
  • Every next row for the same product has only the URL handle (exactly the same) and that variant's details: option value, SKU, price, stock. Leave Title, Description, Vendor and Tags empty.

Here is the file I imported. Two draft products, one with two sizes:

Title,URL handle,Description,Vendor,Type,Tags,Published on online store,Status,SKU,Option1 name,Option1 value,Price,Compare-at price,Inventory tracker,Inventory quantity,Continue selling when out of stock,Product image URL,Image position,Image alt text
TEST guide Moon Mug,test-guide-moon-mug,Test product for a guide.,TEST guide,Mug,test-guide,false,draft,TEST-GUIDE-MUG-S,Size,Small,18.00,,shopify,5,deny,https://burst.shopifycdn.com/photos/forest-hiker.jpg?width=1000,1,Test image
,test-guide-moon-mug,,,,,,,TEST-GUIDE-MUG-L,,Large,22.00,,shopify,5,deny,,,
TEST guide Star Poster,test-guide-star-poster,Test product for a guide.,TEST guide,Poster,test-guide,false,draft,TEST-GUIDE-POSTER,,,30.00,,shopify,3,deny,,,

Look at the second row. It starts with a comma, because the title is empty. The handle is the same as on the first row. That is how Shopify knows "Large" belongs to the Moon Mug.

The Star Poster has no variants, so its Option1 columns are empty and it gets one row.

Extra images work the same way: one more row per image, with only the handle, Product image URL and Image position filled in.

Step 4: Import the file

  1. Click Products, then Import.
  2. Click Add files and choose your CSV. Shopify accepts .csv, .txt and .xls.
  3. Leave Overwrite products with matching handles unticked for a first import.
  4. Untick Publish new products to all sales channels unless you really want the products everywhere right now. I always untick it and publish later.
  5. Click Upload file.

Shopify now shows Preview your first product. Read the sentence at the top. Mine said: "You will be importing approximately 2 products with a total of 3 SKUs and 1 image."

Check those numbers against your file. If you expected 40 products and it says 120, your variant rows have titles in them, or your handles don't match, and every variant has become its own product. Click Back and fix the file.

The preview only shows the first product. Check its title, status, variants and prices. If a field is empty that shouldn't be, click change the order of column headings. This opens Update column headings, where you can match each of your columns to a Shopify field with a dropdown. Shopify's import guide says headers must match the template exactly, capitals included, so don't count on it, but this screen did match my lowercase "title" and "handle" headers on its own.

  1. Click Import products.

A Product import in progress window appears. You can close it and keep working. My two products took a few seconds. Then they appeared in the product list as Draft, with "10 in stock for 2 variants" on the mug.

Two things to know before you click Import:

  • You can't cancel an import once it starts, and there is no import history (Shopify's import guide).
  • The file can't be bigger than 15 MB (same guide). If it is, split it into several files.

Step 5: Change existing products with a CSV

To change products that already exist, you import a file with the same handles and tick Overwrite products with matching handles.

Shopify's import window with the overwrite option ticked and publishing unticked.

Under the checkbox Shopify writes: "Existing values will be replaced for all columns included in the CSV." Read that sentence twice. It is the most important rule in this guide:

  • A column that is in the file, with an empty cell, deletes that value. My Tags column was empty, so the mug lost its tags.
  • A column that is not in the file at all leaves that value alone. I had no Description, Vendor, Type or image columns, and all of them survived.

So the safe way to change prices is a file with as few columns as possible:

  1. Click Products, then Export.
  2. Choose All products (or Products you have selected), and CSV file for Excel, Numbers, or another spreadsheet program. Click Export products. Big exports arrive by email (Shopify's export guide).
  3. Open the file and save a copy you never touch. That copy is your backup.
  4. In the working file, delete every column except Title, URL handle, Option1 name, Option1 value (and Option2 and Option3 if you use them), Price and Compare-at price. If your export uses the older names, such as Handle instead of URL handle, keep the same columns under those names. Don't rename any header: leave every one exactly as the export wrote it.
  5. Change the prices.
  6. Import with Overwrite products with matching handles ticked.

Why keep the option columns if you aren't changing them? Because Price belongs to a variant, and Shopify uses the options to find the right variant. Shopify warns that if you update a variant column without Option1 name and Option1 value, it creates a new default variant and deletes your existing variants. That is how people lose thousands of variants in one import.

Here is my price change file, the whole thing:

Title,URL handle,Status,Published on online store,Option1 name,Option1 value,Price,Compare-at price
TEST guide Moon Mug,test-guide-moon-mug,draft,false,Size,Small,16.00,18.00
,test-guide-moon-mug,,,,Large,20.00,22.00

One warning about the preview. With overwrite on, the preview still shows fields you left out as if they were empty or default. Mine showed no description and my store name as vendor. The real import kept both. So with overwrite, don't panic about the preview's empty fields. Panic about your file's empty cells.

I also added Status and Published on online store to this file on purpose. The preview showed my draft product as Active when the Status column was missing. I wasn't going to find out the hard way whether it meant it.

Raising all prices by a percentage

Shopify has no "increase all prices by 10%" button. Do it in the spreadsheet:

  1. Add a new column next to Price.
  2. In the first cell, write =ROUND(G2*1.1, 2), where G is your Price column.
  3. Copy the formula down to every row.
  4. Copy the new column, paste it over the Price column as values only, and delete the helper column.
  5. Import with overwrite, as above.

Don't use Settings, Markets for this. Markets prices are for selling in other countries. One merchant on Shopify's forum raised prices there, ended up with fixed prices per market, and then their sale apps stopped working.

Step 6: Use the bulk editor for smaller changes

For a few dozen products, skip the file entirely.

  1. Click Products.
  2. Tick the products you want to change. Use the search box first to narrow the list.
  3. Click Bulk edit in the bar that appears above the list.
  4. Click Columns (top right) and tick the fields you want. Type in Search fields to find one fast. I added Tags and Compare-at price.
  5. Click a cell and type the new value. Products with variants have one row per variant underneath.
  6. To copy a value down, select the cell and drag the small blue square in its bottom right corner over the cells below. I used it to give both mug sizes the same price.
  7. Click Save in the Unsaved changes bar at the top.

Shopify confirms with "Changes saved". Before you save, the undo arrow at the top right takes back your last edit, and Discard throws away everything.

A few useful shortcuts from Shopify's bulk editing guide: arrow keys move between cells, Shift-click selects a range, and Command-click (Alt-click on Windows) selects cells that aren't next to each other. When several cells are selected, what you type goes into all of them.

One more thing you may see: Shopify sometimes suggests a Product category in purple with a tick and a cross. It is only a suggestion. Nothing changes unless you click the tick.

The mistakes that break imports

Handles that don't match

Every row of the same product needs exactly the same handle. One typo and the variant becomes a new product, or the row is ignored with "Ignored line ... because it did not contain product data" (a handle with no title). Two different products with the same handle give "handle already exists" or "options are not unique" (Shopify's error list).

When you update products, the handle must match the live product's handle. If you renamed a product, its handle probably didn't change with it. Export first and copy the handles from the export.

Variants on one row

A row is a variant, not a product. "Small, Medium, Large" in one cell gives you one variant called "Small, Medium, Large". Each size needs its own row with the same handle.

Image URLs that aren't image URLs

Shopify downloads the image from the link in Product image URL. The link must be public, start with https://, and point straight at the image file. A Google Drive or Dropbox share link points at a web page about the file, not the file, and fails. If the link is wrong, you get an error starting with "Validation failed".

The simple fix: upload your images under Content, then Files in Shopify, and copy the links from there.

Overwrite with empty cells

Covered in Step 5, but it is the one that hurts most, so again: an empty cell in an included column deletes the value. If you don't want to change a field, delete the whole column, don't empty it.

Excel mangling the file

Excel "helps" in several ways:

  • It turns barcodes like 036000291452 into 3.6E+11 and drops leading zeros from SKUs.
  • It turns straight quotes into curly ones, which Shopify rejects with "Illegal quoting" or "Missing or stray quote on line".
  • It may save in an encoding other than UTF-8, which turns accented letters into gibberish.

My advice: open and edit product CSVs in Google Sheets, then File, Download, Comma-separated values. If you must use Excel, save with CSV UTF-8 and check barcode and SKU columns before you import.

Shopify's import window showing the error "Any value after quoted field isn't allowed in line 2."

This is what a broken quote looks like. I put a quote mark inside a product title, and Shopify refused the whole file before importing anything: "Any value after quoted field isn't allowed in line 2." The good news: a file with a broken format imports nothing, so nothing gets half-changed. Open the file in a text editor, go to the line it names, and fix the quotes.

Frequently asked questions

Can I change only prices with a CSV and leave everything else alone?

Yes. Keep only Title, URL handle, the option name and value columns, Price and Compare-at price, and import with Overwrite products with matching handles ticked. Columns that are not in the file stay as they are. Don't keep other columns with empty cells, because those get wiped.

Why did my import create duplicate products instead of variants?

The variant rows didn't share the first row's handle, or they had their own title. Give every row of the product the same URL handle and leave the title empty on all rows except the first.

Can I delete products with a CSV?

No. A CSV import can add and change products but not delete them. Select the products in the product list, click the ... button, then Delete products. Shopify warns "This can't be undone", so export a backup first.

How many products can I import at once?

The file can be up to 15 MB, which is thousands of products. Very large stores (500,000 variants or more, not on Plus) can create at most 10,000 new variants per day by CSV (Shopify's import issues page). If an upload times out, split the file and import the parts one by one.

Can I undo a CSV import?

Not with a button. There is no import history and no rollback. Your only undo is the export you saved before importing, re-imported with overwrite. That's why I never import without one.

Your first audit is five minutes away.

Start free trial

14 days free$19.95/monthCancel anytime