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
- The first image URL in the Images column becomes the product's featured image
- The core importer cannot add or update image alt text
- Update existing products matches rows by ID or SKU; from WooCommerce 11.2 it can fall back to GTIN, UPC, EAN or ISBN
- Commas inside one value need a backslash, for example Places\, People\, Cities
| Column | Example | Notes |
|---|---|---|
| ID | 100 | Only for updating existing products |
| Type | simple, variable, variation | Product type |
| SKU | woo-headphones | Best key for repeat imports and updates |
| Regular price | 24.99 | Required for a product to be buyable |
| Categories | Electronics, Home goods > Audio | Comma separated; > sets the hierarchy |
| Images | https://example.com/a.jpg, https://example.com/b.jpg | First image is the featured image |
| Parent | id:100 or a SKU | Links 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.
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.
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.
Export your products
- Go to Products > All Products and click Export.
- Leave Export all columns selected, or pick only the columns you need.
- Choose product types and categories, or keep the defaults to export everything.
- Tick Yes, export all custom meta only if you need data that extensions store on products.
- 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
- Back up the store, or work on a staging copy.
- Open the CSV in a spreadsheet tool and save it as UTF-8 CSV.
- Check each Images cell: public URLs, separated by commas, featured image first. For images already in your Media Library, the file name works.
- Go to Products > All Products and click Import.
- Choose the file. Tick Update existing products only if you are updating, not adding.
- Review the column mapping and set any extra columns to Do not import.
- Click Run the importer and leave the page open until it finishes.
- 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
- Image did not import: the host may block your server, require a login or return a web page instead of a file. Upload the image to the Media Library and use the file name, or get a direct image URL.
- Rows skipped: a product with that SKU or ID already exists and Update existing products was not ticked.
- Upload error about file type: confirm the file is a real CSV; some servers reject CSVs containing HTML.
- Import times out: split the file into smaller batches.
- Missing alt text: the core importer cannot set it, so add alt text in the Media Library or with a plugin afterwards.
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
- WooCommerce docs: Product CSV importer and exporter
- WordPress.org: Product Import Export for WooCommerce
- WordPress.org: WP All Import, product import for WooCommerce