THTheme

How to import and export WooCommerce products with images

WooCommerce's built-in CSV tool moves products and images without a plugin. Put one or more public image URLs in the Images column, separated by commas, and the first URL becomes the featured image. Export from Products > All Products > Export and import from Products > All Products > Import. Your server must be able to download each image; if a host blocks it, upload the files to the Media Library first and use their file names.

Updated · By THTheme Editorial Team

Key facts

Key columns in the WooCommerce product CSV
ColumnExampleNotes
ID100Only for updating existing products
Typesimple, variable, variationProduct type
SKUwoo-headphonesBest key for repeat imports and updates
Regular price24.99Required for a product to be buyable
CategoriesElectronics, Home goods > AudioComma separated; > sets the hierarchy
Imageshttps://example.com/a.jpg, https://example.com/b.jpgFirst image is the featured image
Parentid:100 or a SKULinks a variation to its parent product

Tools involved

1. WooCommerce product CSV importer and exporter

Built into WooCommerce. Handles products, variations, categories and image URLs, and can update existing products by ID or SKU. Start here before you install anything.

Best for: Most stores and most migrations

2. Product Import Export for WooCommerce (WebToffee)

A free plugin with automatic column mapping and export filters that moves product data such as images, gallery images, reviews, categories and attributes between stores.

Best for: Store-to-store moves with reviews

3. WP All Import with its WooCommerce add-on

Drag-and-drop field mapping from CSV, XML, Excel or Google Sheets files into WooCommerce fields. Useful when a supplier sends a file in its own format.

Best for: Supplier feeds that do not match WooCommerce's columns

Export your products

  1. Go to Products > All Products and click Export.
  2. Leave Export all columns selected, or pick only the columns you need.
  3. Choose product types and categories, or keep the defaults to export everything.
  4. Tick Yes, export all custom meta only if you need data that extensions store on products.
  5. Click Generate CSV and save the download.

To export a few products, select them in the product list and use the Export selected button at the top. The image column in an export holds the full image URLs from your current site, so the destination store can download them as long as the old site stays online during the import.

Import products with images

  1. Back up the store, or work on a staging copy.
  2. Open the CSV in a spreadsheet tool and save it as UTF-8 CSV.
  3. Check each Images cell: public URLs, separated by commas, featured image first. For images already in your Media Library, the file name works.
  4. Go to Products > All Products and click Import.
  5. Choose the file. Tick Update existing products only if you are updating, not adding.
  6. Review the column mapping and set any extra columns to Do not import.
  7. Click Run the importer and leave the page open until it finishes.
  8. Open a few products and confirm images, prices and stock.

Variable products in a CSV

Variable products need one parent row (Type variable) and one row per variation (Type variation) with the Parent column set to the parent's SKU or id:ID. Variation attribute names and values must match the parent's. In WooCommerce 11.1 and later, if the parent row comes before its variations, one import with Update existing products can convert a simple product into a variable one. On older versions, run two imports: the parent first, then the variation rows. Test with one parent and a few variations before the full file. For setting variations up by hand, see how to add a variable product.

Fixing failed images and skipped rows

FAQ

Can WooCommerce import product images from URLs?

Yes. Put public image URLs in the Images column, separated by commas. WooCommerce downloads them into the Media Library during the import.

Which image becomes the featured image in a CSV import?

The first image in the Images column. The rest become the product gallery.

Do I need a plugin to import WooCommerce products?

No. The built-in CSV importer covers most stores. A plugin helps when your supplier file uses different columns or formats like XML.

How do I update prices in bulk with a CSV?

Export the products, change the prices, then import the file with Update existing products ticked. WooCommerce matches rows by ID or SKU.

Sources