Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Import Products into WooCommerce from a CSV

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Importing products into WooCommerce from a CSV file saves hours of manual data entry, especially when you have hundreds or thousands of items. This guide walks you through the entire process—from preparing your CSV to mapping columns and troubleshooting common issues—so you can bulk-upload products with confidence.

What You'll Need

  • A WooCommerce store with admin access (you'll need to be logged in).
  • A CSV file containing your product data (see Step 1 for the required format).
  • A text editor like Notepad (Windows) or TextEdit (Mac) to check your CSV encoding if problems arise.
  • Optional: a spreadsheet program like Excel, Google Sheets, or LibreOffice Calc to create/edit your CSV.

Step-by-Step

  1. Prepare your CSV file. The simplest way is to export a sample CSV from WooCommerce to see the exact column headers. Go to Products → All Products, click Export at the top, and choose Export all products (or just a few if you only want a template). Save the file. Open it in a spreadsheet editor—you'll see columns like ID, Type, SKU, Name, Published, Regular price, Sale price, etc. Use this as your template. Delete the sample rows and keep only the header row.
  2. Fill in your product data. For each product, add a row. At minimum, you need a Name and a Regular price. The Type column should be simple, variable, grouped, or external (default is simple). If you leave ID blank, WooCommerce will create new products. To update existing products, include their ID or SKU (see Step 5).
  3. Save your file as CSV. In Excel or Google Sheets, go to File → Save As (or Download in Google Sheets) and choose CSV UTF-8 (Comma delimited) or CSV (Comma delimited). Avoid saving as “CSV UTF-8” with a BOM if you run into encoding issues—plain CSV usually works best.
  4. Go to WooCommerce → Products → Import. In your WordPress admin, navigate to Products → All Products, then click the Import button at the top. This opens the WooCommerce CSV importer.
  5. Choose your CSV file. Click Choose File, select your CSV, and click Continue. WooCommerce will read the file and show you the column mapping screen.
  6. Map columns. On the mapping screen, you'll see a dropdown for each WooCommerce field (e.g., “Name”, “Regular price”, “SKU”). Next to each, select the corresponding column from your CSV. If your headers match WooCommerce's default names, they will auto-map. If not, manually match them. For example, if your CSV has “Product Title”, map it to the Name field. Leave any field you don't need unassigned (set to “Do not import”).
  7. Set import options. Below the mapping, you'll see options like Update existing products (choose “Update existing if SKU matches” or “Update existing if ID matches” to avoid duplicates), Skip new products (if you only want to update), and Separate product and variations (leave this unchecked unless you're importing variations). For most imports, leave the defaults.
  8. Run the import. Click Run the import. WooCommerce will process the file and show a progress bar. Once done, you'll see a summary: “Import complete. X products imported, Y updated, Z skipped.”
  9. Verify the results. Go to Products → All Products and check a few items. Ensure prices, names, and images are correct. If something looks off, you can re-import with corrections—just be careful not to create duplicates (use the update options).

Common Mistakes

  • Using the wrong column names. If WooCommerce doesn't recognize your headers, it will leave them unmapped. Always use the exact headers from the export file, or manually map them.
  • Forgetting the product type. If you leave Type blank, WooCommerce defaults to simple. That's fine for basic products, but if you have variable products, you must specify variable and also import variations separately.
  • Incorrect date formatting. The Published column expects a date in YYYY-MM-DD format. If you use DD/MM/YYYY, the import may fail or set the date incorrectly.
  • CSV encoding issues. Special characters (like é or ü) may appear garbled if your CSV isn't saved as UTF-8. Use “CSV UTF-8” in Excel or ensure Google Sheets exports as UTF-8.
  • Importing images as URLs without proper formatting. The Images column expects a comma-separated list of image URLs. If you have multiple images, separate them with commas (no spaces).
  • Not updating existing products correctly. If you re-import without setting the update option, you'll create duplicates. Always choose “Update existing if SKU matches” or “Update existing if ID matches” when updating.

Tips

  • Start with a small test file. Import 5-10 products first to verify the mapping and formatting before importing your entire catalog.
  • Use SKUs. Always include a unique SKU for each product. It makes updating and managing inventory much easier.
  • Export first. Even if you're starting from scratch, export a sample CSV to see all available columns. You don't have to use them all, but it helps you know what's possible.
  • Keep your CSV clean. Remove any empty rows or columns. Extra commas can cause misalignment.
  • Use the “Schedule” option for large files. If you have thousands of products, the import may time out. WooCommerce has a “Schedule” button that runs the import in the background via WP-Cron. You can then check the status under Tools → Scheduled Actions.
  • Backup your store before importing. Use a plugin or your host's backup tool. If something goes wrong, you can restore quickly.

Troubleshooting

  • “Invalid file” error. Your CSV might be corrupted or not actually a CSV. Open it in a text editor to confirm it's plain text with commas. Re-save it as CSV from your spreadsheet program.
  • Products not appearing after import. Check the import summary—it may say “0 imported.” This usually means the mapping didn't match. Go back to the mapping screen and ensure the Name field is mapped. Also check that your CSV has data in the Name column.
  • Images not showing. Make sure the image URLs are publicly accessible and correctly formatted. If you're using relative paths (like /wp-content/uploads/…), they won't work. Use full URLs (e.g., https://yoursite.com/wp-content/uploads/image.jpg).
  • Import times out. For large files, increase your PHP memory limit and max execution time in your hosting settings, or use the “Schedule” feature. Splitting the file into smaller chunks also works.
  • Special characters look wrong. Re-save your CSV as “CSV UTF-8” (with BOM) or “CSV UTF-8” (without BOM) and try again. If that fails, use a plain CSV and manually replace special characters with HTML entities.
  • Variations not importing. Variable products require a two-step process: first import the parent product with Type=variable, then import variations with a Parent column (the parent's SKU or ID). Ensure the Parent column is mapped correctly.

Frequently Asked Questions

Can I import product images from my computer?

No, the CSV importer only accepts image URLs. You'll need to upload images to your media library or an external host first, then use those URLs in the Images column.

How do I update existing products without creating duplicates?

In the import options, set “Update existing products” to “Update existing if SKU matches” or “Update existing if ID matches”. Make sure your CSV includes the SKU or ID for each product.

What if my CSV has more columns than WooCommerce supports?

Extra columns are ignored. You can map them to custom fields if you have a plugin that adds custom product fields, but by default they'll be skipped.

Can I import product categories and tags?

Yes. Use the Categories and Tags columns. Separate multiple categories with commas (e.g., Clothing, Men). WooCommerce will create new categories if they don't exist.

Why is my import stuck at “Processing”?

This can happen with large files. Wait a few minutes, then check Tools → Scheduled Actions. If it's stuck, try splitting the file or increasing your server's execution time.

Can I import products with a plugin instead?

Yes, plugins like WP All Import offer more flexibility, but the built-in importer is free and sufficient for most standard product imports.