How to Import WooCommerce Products Using CSV: Complete Guide
Adding products individually to a WooCommerce store is manageable when you only have a few items. However, what happens when you need to upload 100, 500, or even thousands of products?
Adding every product manually can take hours, especially when each item needs a title, description, price, SKU, category, stock quantity, and product images.
Fortunately, WooCommerce includes a built-in CSV importer that allows you to upload multiple products in one process. You can also use it to update existing products, manage product information in bulk, and import variable products with different attributes and options.
In this guide, we’ll explain how to import WooCommerce products using CSV, prepare your spreadsheet correctly, upload product images, handle variable products, and troubleshoot common import problems.
What Is a WooCommerce CSV Product Import?
CSV stands for Comma-Separated Values. It is a file format used to store structured information in rows and columns.
WooCommerce can read CSV files and use their contents to create or update products in your online store.
For example, a product CSV file can contain information such as:
- Product name and description.
- SKU and product type.
- Regular and sale prices.
- Product categories and tags.
- Stock quantity and stock status.
- Product dimensions and weight.
- Featured images and product galleries.
- Product attributes and variations.
Instead of opening the WordPress dashboard and creating every product individually, you can prepare this information in a spreadsheet and import it into WooCommerce.
This is particularly useful when migrating products from another store, uploading supplier catalogs, updating prices, or managing a large product inventory.
Before Importing Products: Prepare Your WooCommerce Store
Before uploading a CSV file, take a few precautions to avoid unnecessary problems.
1. Create a backup of your website
Always create a backup before performing a large product import or bulk update.
Your backup should include:
- The WordPress database.
- Website files.
- Uploaded product images.
- Important plugin and theme configurations.
If possible, test the import on a staging website before updating your live store.
2. Check your WooCommerce version
WooCommerce regularly improves its CSV importer and adds support for additional product fields and import workflows.
For example, newer versions support additional variation-import workflows and product identification fields. Some features described in this tutorial require specific WooCommerce versions.
Check your installed version under WooCommerce > Status or your WordPress Plugins screen.
3. Prepare your product information
Collect the product information before creating your CSV file.
It is easier to identify missing SKUs, prices, categories, and images in a spreadsheet than to discover them after the import.
If you already have products in WooCommerce, exporting a few existing products can provide a useful template.
How to Export Existing WooCommerce Products to CSV
One of the easiest ways to prepare a compatible CSV file is to export an existing WooCommerce product.
WooCommerce already provides the column structure used by its built-in importer.
Follow these steps:
- Log in to your WordPress dashboard.
- Navigate to Products > All Products.
- Click the Export button.
- Choose the product columns you want to export, or leave the default selection.
- Select the product types and categories if you want to export only part of your catalog.
- Enable custom metadata export if you need product fields stored by WooCommerce extensions or other plugins.
- Click Generate CSV.
WooCommerce will generate a CSV file that you can download and edit using a spreadsheet application.
Opening this file is also a useful way to understand the correct column names and formatting expected by the importer.
How to Create a WooCommerce Product CSV File
You can prepare a product CSV file using applications such as:
- Microsoft Excel.
- Google Sheets.
- LibreOffice Calc.
- Apple Numbers.
For this example, imagine that you want to import three simple products into your WooCommerce store.
Example WooCommerce CSV structure
Your CSV file could contain the following columns:
ID,Type,SKU,Name,Published,Regular price,Sale price,Categories,Stock,Images
,simple,TSHIRT-001,Classic T-Shirt,1,25,20,Clothing,50,https://example.com/tshirt.jpg
,simple,SHOE-001,Running Shoes,1,65,55,Footwear,30,https://example.com/shoes.jpg
,simple,BAG-001,Travel Backpack,1,45,,Accessories,20,https://example.com/bag.jpg
Replace the example information and image URLs with your actual product data.
Here is what the main columns represent:
- ID: The existing WooCommerce product ID when updating a product. Leave it blank for new products.
- Type: Defines the product type, such as simple or variable.
- SKU: A unique stock keeping unit used to identify a product.
- Name: The product title.
- Published: Controls the product status. Use 1 for published, 0 for private, -1 for draft, and 2 for pending review.
- Regular price: The normal product price.
- Sale price: The discounted product price, if applicable.
- Categories: The product categories.
- Stock: The stock quantity.
- Images: The product image URL or an existing Media Library filename.
Important: The example is intentionally simplified. WooCommerce’s importer supports many additional columns, including descriptions, short descriptions, stock status, shipping information, attributes, and downloadable product settings.
Important CSV formatting rules
Before saving your spreadsheet, review these formatting requirements:
- Save the file in UTF-8 CSV format.
- Use the exact column names expected by WooCommerce.
- Use 1 and 0 for Boolean values such as featured status.
- Use the store’s local timezone for date values.
- Enclose values containing commas in double quotation marks.
- Use a comma to separate multiple categories, tags, and attribute values.
- Use a greater-than symbol between hierarchical category levels.
For example, a category hierarchy can be represented as:
Clothing > Men's Clothing > T-Shirts
If a category name itself contains a comma, escape the comma so the importer does not interpret it as a separator between separate categories.
For example:
Places\, People\, Cities
This tells WooCommerce that the commas belong to one category name.
How to Import WooCommerce Products Using CSV
Once your CSV file is ready, you can upload it using the built-in WooCommerce importer.
Step 1: Open the product importer
- Go to your WordPress dashboard.
- Navigate to Products > All Products.
- Click the Import button beside Add New.
Step 2: Upload your CSV file
On the importer screen:
- Click Choose File.
- Select your prepared CSV file.
- Review the option for updating existing products.
- Click Continue.
For a new product catalog, leave the update-existing-products option unchecked unless you intentionally need to update matching products or create eligible new variations.
Step 3: Review the column mapping
WooCommerce will attempt to recognize the column names in your CSV file and match them to the appropriate product fields.
For example:
- Name maps to the product name.
- Regular price maps to the regular price field.
- SKU maps to the product SKU.
- Categories maps to product categories.
- Images maps to product images.
Review every important field before continuing.
If WooCommerce does not recognize a column, you can select the correct field from the mapping dropdown or choose not to import it.
Unrecognized columns are not automatically imported unless they are mapped appropriately.
Step 4: Run the importer
After reviewing the mappings:
- Click Run the importer.
- Allow WooCommerce to process the CSV file.
- Do not refresh the page or navigate away while the import is running.
- Wait for the import results.
When the process finishes, WooCommerce displays an import summary showing the products that were successfully imported and any rows that were skipped or failed.
How to Update Existing WooCommerce Products Using CSV
The CSV importer is not limited to creating new products. You can also use it to update existing product information in bulk.
For example, imagine that you have 300 products and need to change their prices.
Instead of opening each product individually, you can export the existing products, update their prices in the spreadsheet, and import the file again.
Follow these steps:
- Go to Products > All Products.
- Export the products you want to update.
- Open the exported CSV file.
- Update the required fields, such as prices, descriptions, or stock quantities.
- Keep the existing product IDs or SKUs unchanged.
- Save the file as a new UTF-8 CSV.
- Open the WooCommerce Import tool.
- Upload the updated CSV file.
- Select Update existing products.
- Review the column mappings and run the importer.
WooCommerce uses the existing product ID or SKU to identify products that should be updated.
In WooCommerce 11.2 and later, the mapped GTIN, UPC, EAN, or ISBN field can also be used as a matching identifier when both the ID and SKU are blank.
Important: If you provide an ID or SKU that does not match an existing product, WooCommerce does not simply fall back to another identifier. Check your product identifiers before running a bulk update.
Be careful with blank CSV fields
One important detail when updating products is that blank mapped fields can overwrite or clear existing product information.
For example, if a CSV contains a mapped sale price column but the cell is blank, WooCommerce may clear the existing sale price for that product.
If you do not want to change a particular field, consider removing that column from the CSV or selecting Do not import during column mapping.
Always test a small number of products before performing a large update.
How to Import WooCommerce Product Images Using CSV
Product images are an important part of any online store, and WooCommerce supports importing images through CSV files.
In the Images column, you can provide an image URL or reference an existing image in your Media Library.
If a product has multiple images, separate the image references with commas. The first image is used as the featured product image, while the remaining images are added to the product gallery.
Example:
https://example.com/product-front.jpg, https://example.com/product-side.jpg, https://example.com/product-back.jpg
Important image requirements
Before importing images, check the following:
- The image URL must be publicly accessible to your website.
- The URL should point directly to an image file.
- The external server must allow your website to download the image.
- The image must not require authentication that the importer cannot provide.
- The image URLs should use the correct HTTPS address where supported.
WooCommerce attempts to download external images and add them to your Media Library.
If the external server blocks requests or returns an HTML page instead of an image, the image may fail to import.
In that situation, upload the images to your own Media Library first and use their existing filenames or accessible image URLs in the CSV file.
One limitation: The built-in WooCommerce CSV importer does not automatically add or update product image alt text. You may need to manage image alt text separately.
How to Import Variable Products and Product Variations
Variable products are slightly more complicated than simple products because they contain a parent product and multiple variations.
For example, a T-shirt might be available in three sizes:
- Small
- Medium
- Large
Each variation can have its own SKU, price, stock quantity, and other product information.
WooCommerce supports importing variable products using its built-in CSV importer, but the parent product and variation information must be structured correctly.
Example parent product CSV data
Type,SKU,Name,Published,Attribute 1 name,Attribute 1 value(s),Attribute 1 visible,Attribute 1 global
variable,tshirt-001,Classic T-Shirt,1,Size,"Small, Medium, Large",1,0
Example variation CSV data
Type,SKU,Name,Parent,Attribute 1 name,Attribute 1 value(s),Regular price
variation,tshirt-small,Classic T-Shirt - Small,tshirt-001,Size,Small,20
variation,tshirt-medium,Classic T-Shirt - Medium,tshirt-001,Size,Medium,20
variation,tshirt-large,Classic T-Shirt - Large,tshirt-001,Size,Large,20
In this example:
- The parent product has the type variable.
- Each child product has the type variation.
- Each variation has its own unique SKU.
- The Parent column connects each variation to the parent product.
- The attribute name and value must match the parent product’s configuration.
The example uses a local product attribute. For a global WooCommerce attribute, configure the global attribute and its terms in WooCommerce first, then use the appropriate global attribute settings in your CSV.
Importing variations in newer WooCommerce versions
WooCommerce has improved its built-in importer to support more variation workflows.
Starting with WooCommerce 11.1, an existing simple product can be converted into a variable product while adding eligible new variations in a single import, provided the parent product row appears before its variation rows.
To use this workflow:
- Export the existing simple product.
- Change its Type from simple to variable.
- Add the appropriate parent attributes.
- Add a separate CSV row for each new variation.
- Set each variation Type to variation.
- Leave the new variation ID blank.
- Assign each variation a unique SKU.
- Set Parent to the parent product SKU or an ID formatted as id:123.
- Keep the parent product row before the variation rows.
- Import with Update existing products selected.
New variation rows must satisfy WooCommerce’s eligibility rules, including matching attribute names and values.
If you cannot guarantee the correct row order, or your WooCommerce version is older than 11.1, use two imports instead: first update the parent product, then import the variation rows.
After importing, open the product’s Variations tab and verify the attributes, prices, stock, and purchasable options.
Common WooCommerce CSV Import Errors and How to Fix Them
Even when your spreadsheet looks correct, product imports can sometimes fail because of formatting, product identifiers, server restrictions, or image URLs.
Here are some common problems and their solutions.
1. Products are skipped during import
Possible reasons:
- A product already exists with the same SKU or ID.
- Update existing products was not selected.
- The product information does not match the expected CSV format.
- A required parent product or variation relationship is missing.
Solution:
Review the import results and check the skipped-row messages. Verify product IDs, SKUs, product types, and variation relationships before importing again.
2. Product images are not importing
Possible reasons:
- The image URL is incorrect.
- The external server blocks image downloads.
- The image URL redirects to an inaccessible page.
- The image requires authentication.
Solution:
Open the image URL in a browser and confirm that it displays the actual image. If the external server blocks your website, upload the images to your own Media Library and reference them in the CSV file.
3. Product prices are incorrect
Possible reasons:
- The spreadsheet contains currency symbols.
- Prices contain unexpected decimal or thousands separators.
- The wrong column was mapped.
- Spreadsheet software changed the number formatting.
Solution:
Use plain numeric values for prices, such as 49.99, and review the CSV in a text editor before importing it.
4. Product variations are not created
Possible reasons:
- The parent product does not exist or cannot be matched.
- The Parent column contains an incorrect SKU or ID.
- Variation attribute names do not match the parent.
- Variation SKUs are duplicated.
- The parent row appears after variation rows in a single-import workflow.
Solution:
Check the parent product first, verify the attribute values, and confirm that each variation has a unique identifier. If necessary, import the parent and variations separately.
5. CSV file upload is rejected
You may encounter the message:
Sorry, this file type is not permitted for security reasons.
Possible reasons:
- The file was saved in an unexpected format.
- The server is applying file-type restrictions.
- The CSV contains content that causes WordPress to misidentify the file.
Solution:
Confirm that the file is genuinely saved as CSV rather than an Excel workbook renamed with a .csv extension.
If the upload still fails, WooCommerce provides an advanced option that allows you to enter a CSV file path already available on the server. You can upload the file through cPanel File Manager or SFTP and then provide its server path in the importer.
If this also fails, ask your hosting provider to check the server’s upload restrictions.
6. Large CSV imports time out
Possible reasons:
- Limited PHP execution time.
- Insufficient available memory.
- Large image downloads.
- Too many products being processed in one import.
Solution:
Divide your CSV file into smaller batches and import them separately. Check your hosting account’s PHP limits and ask your provider to review resource restrictions if the issue continues.
Do not repeatedly upload the entire catalog without reviewing the import results. You could create duplicates or unintentionally overwrite existing product information.
Tips for Managing Large WooCommerce Product Imports
If you regularly work with large product catalogs, a little preparation can make your imports much easier to manage.
1. Use unique SKUs for every product
SKUs make it easier to identify and update products when importing data multiple times.
For variable products, give each variation its own unique SKU rather than reusing the parent’s SKU.
2. Split large catalogs into smaller files
Instead of importing thousands of products in one file, divide the catalog into manageable batches.
For example, you could organize your imports by product category, supplier, or product type.
3. Keep a clean master spreadsheet
Maintain a separate spreadsheet containing your main product information.
This can help you track changes to prices, stock, product descriptions, and SKUs before updating your WooCommerce store.
4. Test a small import first
Before uploading a large catalog, import a small sample containing a few simple products and variations.
Check the product pages, prices, images, attributes, and stock settings before processing the remaining products.
5. Keep a copy of every imported CSV
Save the original supplier file, the cleaned CSV, and the final imported version separately.
This makes it easier to investigate problems and identify which changes were made during each import.
Final Thoughts
WooCommerce’s built-in CSV importer is a practical way to manage large product catalogs without creating or editing every product individually.
You can use it to add new products, update existing information, import product images, and manage variable products with different attributes.
The most important part of a successful import is preparing your CSV file correctly. Pay attention to column names, SKUs, product types, image URLs, and variation relationships before uploading your data.
For large catalogs, always create a backup, test a small batch, and review the import results before updating the rest of your store.
With a properly prepared CSV file, you can save significant time and make WooCommerce product management much easier.
Need help with a WooCommerce product import, custom product fields, variable products, or a complicated catalog migration? Get in touch with our team to discuss your project.