Add WooCommerce Products in Bulk With a CSV File

Use the built-in WooCommerce CSV importer. Copy five test rows with sizes and photo links, run the import, check it, and fix rows that go wrong.

Published 1 December 2026

WooCommerce has a built-in product importer. Go to Products > All Products, click Import, choose your CSV file and check the columns, then click Run the importer. A CSV is a plain file you can save from a spreadsheet. Import five rows first and check every one before you add the rest.

Start with the right column names

The importer only fills in columns it recognises, so do not invent your own names. You can get a correct file in two ways:

  • From your own store: add one product by hand, go to Products > All Products and click Export. The exported file already has the right columns.
  • From WooCommerce: its import page (see Sources) links to a sample CSV and lists every column.

WooCommerce recommends Google Sheets, LibreOffice Calc, OpenOffice Calc or Numbers. Save the file as a UTF-8 CSV. Then open the saved copy and look through it, because spreadsheet apps can change how values are written.

Five test rows to copy

This file has one simple product, one product with sizes, and its three sizes. The names, prices and web addresses are made up:

Type,SKU,Name,Published,Tags,Categories,Stock,Regular price,Images,Parent,Attribute 1 name,Attribute 1 value(s)
simple,MUG-01,White Mug,-1,import-test,Kitchen,20,650,https://example.com/mug.jpg,,,
variable,KURTI-01,Cotton Kurti,-1,import-test,Clothing > Kurtis,,,https://example.com/kurti.jpg,,Size,"S, M, L"
variation,KURTI-01-S,Cotton Kurti - S,1,,,8,1850,,KURTI-01,Size,S
variation,KURTI-01-M,Cotton Kurti - M,1,,,12,1850,,KURTI-01,Size,M
variation,KURTI-01-L,Cotton Kurti - L,1,,,5,1850,,KURTI-01,Size,L

Each row must stay on one line. Before you use the file, change the two example.com addresses to your own photo links. Here is what the columns mean:

  • Published: -1 is a draft, so customers cannot see the two products yet. Use 1 for published and 0 for private. The sizes say 1, but they stay hidden while the main kurti is a draft.
  • Tags: import-test helps you find the test products later.
  • Categories: Clothing > Kurtis puts Kurtis under Clothing. Use commas between separate categories.
  • Stock: a number turns on stock tracking for that row.
  • Regular price: type only the number, with no Rs and no comma.
  • Quotes: put double quotes around anything that contains a comma, such as "S, M, L". A spreadsheet app normally adds them when it saves a CSV.

How the size rows connect

The main kurti has the type variable and lists every size. Each size has the type variation, its own SKU and one size. Its Parent column must contain the main kurti's SKU, which is KURTI-01 here.

Use the same spelling in all four kurti rows. Large and L count as two different sizes. Keep the main product above its sizes. A variation with a blank size fits any size, so fill in every one. To understand how attributes and variations work, read sizes and colours in WooCommerce.

This file has no Attribute 1 global column, so the Size list belongs to one product. To use the Size attribute you already set up for the whole shop, add that column at the end. Type 1 in all four kurti rows and leave the mug row blank.

Photos need a direct link

Each link in the Images column must open the photo itself, without a login. WooCommerce downloads the photo into your Media Library. To add more photos, put commas between the links. The first one becomes the main photo. A sharing link that opens a web page may fail.

You can also upload the photos to the Media Library first and type only their file names. The importer cannot add alt text (a photo's short description), so write it later with these examples.

Run the test import

  1. Back up the site. If you have a staging site (a private test copy), import there first. Here is how to back up and restore WordPress.
  2. Go to Products > All Products, click Import and choose your file.
  3. Leave Update existing products unticked, because these products are new. Click Continue.
  4. On Column mapping, check that each column goes to the right field. Choose Do not import for any column you want to leave out.
  5. Click Run the importer. Do not refresh or leave the page until it finishes. During load-shedding, make sure your computer and internet have backup power.

Then open the two new products and check:

  • The price has no extra or missing zeros.
  • The Variations tab shows S, M and L, each with its own stock.
  • The photo opens and belongs to the right product.
  • The category is correct, with no second copy that has a different spelling.
  • Urdu names and special characters look right.

When the test is fine, take the five test rows out of your file and import the rest in small batches. Give each batch its own tag, such as import-batch-2. Publish the test products when they are ready, or move them to the trash.

Fix a bad import

Some rows were skipped. Read the import log. If it says the SKU already exists, the product is already in your store. Check the product before you import that row again as an update.

Products came in with wrong details. Correct the sheet. Keep only the SKU and Name columns and the ones you need to change. Leave out the ID column, so the importer uses the SKU to find the right product. An update replaces saved details, so check these first:

  • Name: the name in your sheet replaces the saved one.
  • Empty cells: these can erase saved details, such as a price or category. Fill in every cell of a column, or leave the whole column out.
  • Stock: the number replaces today's count, even if you have made sales since you saved the sheet. An empty cell turns stock tracking off. Leave this column out unless you have just counted.
  • Attributes: these columns replace all the product's attributes, not just one. For the main product, include every attribute and value, or leave them all out.
  • Images: new links replace the main photo and the gallery. List every photo you want to keep, or leave the column out.

Back up the store, then import one row with Update existing products ticked. Check that product before you update the others.

The sizes are missing. Check that each SKU is different and each Parent value is correct. The attribute names and values must match, and the main product must come first.

The whole batch is wrong. In the product list, open the tag you used for that batch. Select only the wrong products, then use Bulk actions to move them to the trash. You can still restore them from there. WordPress normally deletes trashed products after 30 days. Check Media > Library for photos that stayed behind.

Keep a full restore as the last choice. Going back to an older database can remove orders that came in after that backup.

Common questions

Can I import an Excel file directly?

No. The built-in importer accepts CSV and TXT files. Save your sheet as a UTF-8 CSV first. Then check the saved copy for prices, codes or Urdu text that changed.

How many products can I import at once?

It depends on your hosting: its memory, upload limit and processing time. For a large list, split the file into smaller batches. The importer's upload screen shows the largest file size your site accepts.

Can I use my supplier's file as it is?

Clean it first. Rename the columns to match WooCommerce and use one spelling for each size and colour. Remove formulas, extra spaces and currency signs. Give every variation its own SKU. Then test a few rows before you import the rest.

Sources

Read next

Check a domain name