A CSV import looks like the simplest job in WooCommerce. You pick a file, match some columns, and watch a progress bar fill. That simplicity is the trap. The importer is a bulk write tool with no preview, no undo and no dry-run mode. Whatever your spreadsheet says becomes the truth about your catalogue within minutes, whether the cell was typed carefully or quietly mangled by the application that saved the file. The damage is usually silent: a price that lost its decimals, a hundred products filed under a category spelled slightly differently from the real one, variations attached to nothing, a month of image work duplicated in the media library. Nothing throws an error. A customer simply sees the wrong price.
The idea to hold on to is this: an import is a bulk edit executed by WooCommerce’s own product code, row by row, with no way back except the one you prepare in advance. Safety does not come from the importer screen. It comes from three decisions you make before the first row is read: how each row is identified, whether each row is allowed to create a product, update one, or both, and how you would recover if the result were wrong. Get those three right and the rest of the process is careful housekeeping. Get them wrong and no amount of care on the mapping screen will save you.
Picture an illustrative store with 800 products on a shared hosting plan, about 60 of them variable. A supplier sends a fresh spreadsheet every month with price changes and a few dozen new items, and the product photos live on the supplier’s own server. The owner edits the sheet in a spreadsheet app on a laptop whose regional settings use a comma as the decimal mark. Every detail is a known failure point. SKUs that start with zeros lose them. Prices turn into 12,50. Accented names arrive as garbage. Image downloads from a slow remote server stall the request. And if the import runs at lunchtime, orders keep arriving while stock quantities are being overwritten.
The built-in importer and exporter are good tools for this job. They handle simple, variable, grouped and external products, categories and tags, attributes, images fetched by address, and custom fields stored as plain text. They are also deliberately narrow. Orders, customers, coupons and product reviews are not part of the product file, and anything stored as serialised or structured data does not travel as a plain-text cell. Knowing where the boundary sits saves you from trying to push a whole shop through a spreadsheet.
This guide follows the job in the order you will meet it, from how the importer treats each row to when a dedicated import plugin earns its place. Two ground rules for reading. First, WooCommerce changes: recent releases added columns such as a barcode field and customs fields, and labels shift between versions, so treat your own export as the authority on column names and the official documentation as the authority on behaviour. Second, every number in the examples is an illustrative placeholder, not a measurement. Where behaviour depends on your host, version or plugins, the guide says so and tells you what to verify with a small test file.
Key points
- Start from an export of your own store: its header row is the schema your version of WooCommerce accepts.
- Use the SKU as the stable key, keep it unique across products and variations, and remember that numeric IDs belong to one database only.
- Keep creating and updating separate, send trimmed files, and never assume a blank cell means leave it alone.
- Spreadsheet apps silently damage CSV files through lost zeros, scientific notation, reformatted dates, decimal commas and the wrong encoding, so read the raw file before you upload it.
- Variable products need the parent row before its variations, and attribute names and values must match exactly.
- Images are the slow and fragile part: pre-upload them, or import products first and attach images in a second pass.
- An import has no undo, so rehearse on staging, take a verified backup, import as drafts, tag the batch and check before you publish.
What the importer does with each row
You reach the importer from the Products screen in the WordPress admin, where Import and Export buttons sit beside the Add New button. The import is a short wizard: choose a file, optionally tick the update box and open the advanced options, map columns to product fields, then run it and read the results. It is not a raw database loader. Each row is turned into a real WooCommerce product object and saved through the same product code that runs when you click Update on the edit screen. That is why you can trust it (the same validation applies, the product lookup tables stay in step, and other plugins hear about the save) and also why it is slower than a raw load.
The consequence is that anything reacting to a product save reacts to every imported row: a search indexer, a marketplace sync, a plugin that recalculates on save. If an import is slow or a connected service floods with updates, check what is hooked to product saves.
The import is also driven by your browser. The file is parsed on the server, but the work proceeds as a series of background requests sent from the open page. Each request handles a batch of rows and is designed to stop before PHP runs out of time or memory, then the page asks for the next batch and the progress bar advances. That is why a large import often survives where one giant request would die, and why the official guidance says not to refresh or leave the page mid-run: the page keeps the job moving. Close the tab at row 400 of 900 and you have a half-imported catalogue.
Rows are processed in file order, one after another. That order matters in exactly one important place: a variation row needs its parent to exist already, so the parent must come first. Beyond that, the importer reads each row, uses your column mapping to decide which cell feeds which field, looks for an existing product by ID or SKU, decides whether to create, update or skip, applies categories, tags and attributes, downloads images, saves, and records the outcome. When the run finishes you get counts of products imported, updated, skipped and failed, with a log that lists problem rows and the reason for each. That log is your first diagnostic tool. Read it every time, including when the counts look fine.
Every failure mode attaches to one of these stages. A garbled name is a read problem, a skipped product is a match decision, a variation with no parent is an ordering problem, and a product with no pictures is a media failure.
One row on its way into the catalogue
- Read the rowDelimiter and encoding are applied, so spreadsheet damage shows up here.
- Map columnsEach header feeds a product field, meta or nothing.
- Find a matchThe importer looks for an existing product by ID or SKU.
- Create, update or skipThe match and the update box decide.
- Apply terms and attributesCategories, tags, classes and attributes are created or attached.
- Fetch imagesEach address is downloaded, added to the media library and resized.
- Save and logThe product is saved and the outcome goes in the results log.
Start from an export of your own store
The most reliable template for an import file is an export from the store you are importing into. On the Products screen, the Export button opens a short form that lets you choose which columns to include, which product types, which categories, and whether to include custom meta data. Generate the file, download it, and you have a CSV whose header row is exactly the schema your installed version of WooCommerce understands. A sample file from an older blog post may lack columns that recent releases added.
If the store is empty or new, build the template by hand. Create one product of each kind you plan to import: a simple product, a variable product with two variations, a grouped or external product if you sell those, and a downloadable product if relevant. Fill in the fields you care about, including a category, a tag, a sale price with dates, a shipping class and one image. Then export. Those rows show how WooCommerce itself writes each product type. Notice, for example, that the Type column holds a keyword such as simple, variable, variation, grouped or external, and that the virtual and downloadable flags appear as extra comma-separated words in the same cell. Notice that weight and dimension headers carry your store’s units in brackets. Notice that variation rows point back to their parent in the Parent column, using the parent’s SKU when it has one and an id: prefix with the number when it does not.
You do not have to import every column the export gives you. Columns you leave out are simply not touched, and columns the importer does not recognise are ignored unless you map them to custom meta on the mapping screen. That is a feature. A price update file should contain an identifier and the price columns, not the entire product. The header row below is a deliberately trimmed, clean set for creating products. It keeps identity, content, commerce, shipping, images and one attribute group, and drops rarely used fields. Adjust the units to your store, and copy headers from your own export, because a header you type must match exactly.
ID,Type,SKU,Name,Published,Is featured?,Visibility in catalog,Short description,Description,Tax status,Tax class,In stock?,Stock,Backorders allowed?,Sold individually?,Weight (kg),Length (cm),Width (cm),Height (cm),Allow customer reviews?,Sale price,Regular price,Categories,Tags,Shipping class,Images,Parent,Position,Attribute 1 name,Attribute 1 value(s),Attribute 1 visible,Attribute 1 global,Attribute 1 default
Read the header as five groups. Identity: ID, Type, SKU and Parent decide what a row is and how it connects to others. Content: names, descriptions, categories, tags and images are what shoppers see. Commerce: Published, visibility, tax, stock and prices control whether and how a product sells. Shipping: weight, dimensions and shipping class. Variation machinery: Position and the numbered Attribute columns. The accepted values are plain. Published takes 1 for published, 0 for private and -1 for draft. In stock takes 1 or 0. Backorders allowed takes 1, 0 or the word notify. Booleans use 1 and 0, dates follow the store’s local timezone, and a number in the Stock column switches on stock management for that product while a blank leaves it off.

Spreadsheet traps that damage a CSV before WooCommerce sees it
The importer reads whatever bytes the file contains. Which bytes end up there is decided by the application that saved the file, and spreadsheet software is built to be helpful with data it thinks it understands. Most CSV disasters come from a handful of predictable conversions, all preventable before the file leaves your computer.
Leading zeros and long numbers come first. A SKU such as 000482 is, to a spreadsheet, the number 482. A thirteen-digit barcode becomes scientific notation, and the original digits are gone for good once the file is saved. Set those columns to text format before you paste or type anything, because converting afterwards cannot restore digits the app already discarded. A sale start date is often reformatted into your regional style, and the importer then reads something other than what you meant, so keep dates in year-month-day form and confirm them in the saved file.
Decimals follow. Write prices as plain numbers with a full stop as the decimal mark, no thousands separator and no currency symbol. In a locale that uses a comma for decimals, a spreadsheet may save 12,50, which a CSV reader sees as two cells or a malformed number. Encoding is the quiet one. WooCommerce expects UTF-8. Many applications offer both a plain CSV save and a CSV UTF-8 save, and the plain option may use an older regional encoding that turns an accented name into a string of odd symbols. Worse, bytes that are not valid UTF-8 can cause the database layer to truncate or drop the field, so a description can arrive empty rather than merely ugly.
Delimiters and quoting complete the list. Some regional settings save semicolons rather than commas. The first import screen has advanced options in some versions, where a delimiter field appears, but converting the file is cleaner than relying on it. Any cell containing a comma, such as a list of sizes, must be wrapped in double quotes, and a comma inside a single category name needs a backslash in front of it. Line breaks inside descriptions are fine if the whole cell is quoted.
Remember what a CSV is: values, not formulas, and every row, including hidden and filtered-out ones. Never double-click a CSV to edit and save over it. Keep a master workbook, export the CSV as the last step, and look at the first lines in a plain-text editor before you upload.
What you type and what a spreadsheet may save
| You type | The app may save | Prevention | |
|---|---|---|---|
| SKU | 000482 | 482 | Format the column as text before entering data |
| Barcode | 4006381333931 | 4.00638E+12 | Text format, and never open the CSV by double-click |
| Sale date | 2026-12-01 | A regional style such as 12/1/26 | Keep year-month-day and check the raw file |
| Price | 12.50 | 12,50 in a comma-decimal locale | Plain number, full stop, no symbols |
| Name | Cafe with an accent | Garbled symbols after save | Save as CSV UTF-8 and read the raw file |
| Size list | S, M, L | Split across three cells | Quote the cell and check the raw file |
IDs, SKUs and the parent key
Every import problem about duplicates, skipped rows or orphaned variations is really an identifier problem, so settle identifiers before anything else. A product row can be pointed at in three ways. The ID is the numeric database ID of the product. The SKU is the stock-keeping code you assign. The Parent value, used on variation rows, refers to another row by SKU or by ID written with an id: prefix, for example id:100. Those three values decide whether a row creates something new, updates something that exists, or ends up in the failed list.
For almost every real store, the SKU should be the key. A SKU is chosen by a person, survives a move between servers and means the same thing in your supplier’s sheet, your warehouse list and your product screen. The numeric ID does none of that: it is assigned by one database and means nothing in another, so a file keyed on IDs from one site can overwrite the wrong products on another. The documentation adds that a supplied ID that matches nothing is skipped, not created. Use IDs only when you exported the file from the very database you are importing into.
WooCommerce expects SKUs to be unique across products and variations together, and it refuses a row that would duplicate one. That is a useful guardrail that only works if your SKUs are real. Trim stray spaces, which arrive invisibly when you copy from a web page, keep letter case consistent, and give every variation its own SKU, for example the parent code plus a size suffix. Run a duplicate check in the spreadsheet before you export.
The riskiest rows are those with no SKU and no ID. The importer has nothing to match them against, so each run creates a brand-new product, and importing the same file twice produces two copies of everything. If you must import products without SKUs, import once, export the result, and use the exported IDs from then on.
Changing a SKU needs care. If you update by SKU and change the SKU in the same row, the importer will not find the old product, and you will create a new one. To rename SKUs safely, export, edit the SKU column and update by ID in the same database.
Creating versus updating: the box that changes everything
On the first import screen sits a checkbox to update existing products. Whether it is ticked changes what every row means. With it unticked, the importer is in create mode: a row whose ID or SKU already matches a product is skipped and listed in the results, which the documentation lists among the common causes of skipped rows. With it ticked, matching rows are updated. The wording beside the box and the exact treatment of rows that match nothing vary by version, and the documentation notes that an ID which does not match is skipped. So read the line beside the checkbox on your own screen and settle the question with a two-row test.
The safest working rule is to keep creating and updating apart. Make one file of new SKUs and import it with the box unticked, so an accidental match shows up as a skipped row instead of a silent overwrite. Make a second file for changes and import it with the box ticked. Mixed files force you to guess how each row is treated.
Updates carry a second risk: the columns in your file define what can change. Columns you omit are left alone, which is why trimmed files are the best tool for price and stock work. But a column you include is applied to every row, and a blank cell in an included column can clear the stored value. The documentation says this outright for the customs fields, and you should assume the same may be true elsewhere until a test proves otherwise. Either fill every cell in a column you include, or drop the column.
The deeper lesson is field ownership. For each field, decide who owns it: your supplier’s sheet, or your own editors. If your team has rewritten product descriptions for search, importing the supplier’s description column overwrites that work with the supplier’s text, because the importer cannot tell which version is better. Put only the columns the source is authoritative for into the update file, and leave everything else out.
Do not delete and re-import to replace products. The new products get new IDs, so links and references no longer line up. Export, edit and update in place.
What should happen to a row that matches an existing product?
Categories, tags, attributes and classes
Categories, tags, shipping classes and global attributes are taxonomies, and the importer refers to them by name, not by ID. That is convenient, because your supplier sheet does not need to know your database. It is also dangerous, because a name that does not match an existing term usually creates a new one without complaint. A single typo in a category column can leave you with Hoodie beside Hoodies, with half your products in each.
In the Categories column, separate multiple categories with commas, and write hierarchy with a greater-than sign: Clothing > Hoodies means Hoodies under Clothing. A name that itself contains a comma needs a backslash before the comma, or the importer will split it into two categories. Products with no category end up in the store’s default category, usually called Uncategorized, which is why that category swells after a careless import. Before you upload, compare the distinct category paths in your file with the real list, which WP-CLI can print.
$ wp term list product_cat --fields=term_id,name,slug,parent,count --format=table
Tags attract the same typos, so keep the tag vocabulary short. Shipping class and tax class are matched against values already defined in the store settings, so look up the exact names or slugs there and test one row with a non-default value.
Attributes deserve a deliberate choice. An attribute can be a global one, defined once under the Products menu and shared across products, or a local one that exists only on a single product as text. Global attributes power filtering, shared terms and consistent naming. The importer uses a global attribute when the attribute name matches one, and otherwise treats it as plain local text. So spelling decides: Colour and Color are two different attributes. Depending on version, the importer may also create a missing global attribute and its terms, so check the attributes screen after your test import. For anything shoppers filter by, such as size or colour, use global attributes, put 1 in the global column, and confirm the attribute exists first with the exact name.
Custom fields travel as columns with a meta prefix, or by mapping an unrecognised column to meta on the mapping screen. Only plain-text values are supported, so serialised or structured data from page builders and field plugins does not round-trip. Read that plugin’s own import documentation.
Variable products and variations
Variable products are where most imports fail, because a variable product is really several rows that depend on one another. One parent row describes the product and lists every option of every attribute. One variation row per combination follows, each pointing back at the parent and carrying its own SKU, price and stock. The importer processes rows in order, so the parent must come first. If a variation row arrives before its parent exists, the row fails with a message that the parent is missing or does not exist yet.
The parent row has Type set to variable. It lists the full option set in the attribute value column, for example S, M, L, with that cell quoted because of the commas, and it sets whether the attribute is visible and global, plus an optional default. It usually leaves price blank, since price is derived from the variations. Each variation row has Type set to variation, the parent’s SKU in the Parent column, and exactly one value per attribute. If you give several, the importer uses the first. An empty value means any. The attribute names and values on each variation must match those on the parent exactly, or the variation will not attach as you intended.
Type,SKU,Name,Published,Stock,Regular price,Categories,Images,Parent,Attribute 1 name,Attribute 1 value(s),Attribute 1 visible,Attribute 1 global,Attribute 1 default
variable,HOOD-BASE,Trail Hoodie,-1,,,"Clothing > Hoodies",/wp-content/uploads/2026/11/trail-hoodie.jpg,,Size,"S, M, L",1,1,M
variation,HOOD-S,Trail Hoodie - S,1,12,40.00,,,HOOD-BASE,Size,S,,,
variation,HOOD-M,Trail Hoodie - M,1,8,40.00,,,HOOD-BASE,Size,M,,,
variation,HOOD-L,Trail Hoodie - L,1,0,40.00,,,HOOD-BASE,Size,L,,,
The example is deliberately small, and the prices are placeholders. The parent is imported as a draft with the value -1, so you can inspect it before shoppers can. The variations carry 1, because for a variation the published flag mainly means enabled. The image paths point at files already in the media library, which the documentation describes as accepted as well as full addresses, so confirm with a one-row test on your version. Stock on a variation can also be the word parent, which inherits the parent’s stock settings.
Position sets display order, and giving it explicit numbers keeps sizes in a sensible sequence instead of alphabetical accidents. Keep related rows adjacent, because a spreadsheet sort that scatters variations away from their parent causes failures. To add a variation to an existing parent, recent versions let you leave the ID empty and give the new variation a unique SKU with attributes that match the parent. Products with hundreds of combinations make each save slower, so import them in a file of their own.
Images at scale
Images are where an otherwise quick import turns slow. The Images column takes a comma-separated list. The first entry becomes the featured image and the rest form the gallery. For each entry the importer must obtain the file, put it in the media library and attach it to the product. The documentation says images must be either pre-uploaded or publicly reachable by address, and also warns that external downloads can fail on some hosts. A catalogue of 800 products with four images each is 3,200 downloads and resize jobs, which is a very different workload from the text fields.
Each address sets off several steps, as the figure shows, and each can fail separately. The remote server must answer promptly and must not refuse requests from your host as unwanted hotlinking. The address should end in a recognisable image file type, and dynamic image links with no extension are a common failure. Spaces in file names need encoding, so lowercase names with hyphens save trouble. Huge originals matter most: a camera file several thousand pixels wide must be decoded in memory and resized to every registered size, and that is where memory limits bite.
The remedies follow from the stack. Resize originals to a sensible maximum before the import. Move the files to a fast, reliable location you control, or better, into your own media library ahead of time. WP-CLI can bulk-add a folder of files, run from the folder holding them.
$ wp media import ./product-images/*.jpg
Then reference those library files in the CSV. Another sound pattern is two passes: import products with the Images column empty, check the catalogue, then run a second, trimmed update file containing only SKU and Images. A failed image then no longer costs you a whole product row. Decide too whether plugins that optimise or convert on upload should run during the import, since they add work per image, and plan to catch up with a bulk pass afterwards.
Two last points. The importer normally reuses an image it already downloaded from the same address, but check the media library count after a test instead of assuming, and use a new file name when you replace a picture. The default columns do not carry alt text, so plan a separate step for it.
What one image address sets in motion
Stock and price updates on a live store
The most common reason to re-import is a routine update to prices or stock, and it is also where a careful importer can still do harm. The method is the trimmed file: SKU as the key, plus only the columns you intend to change. For prices that means the regular price and, if you use them, the sale price and its two date columns. For stock it means the stock quantity and perhaps the in-stock flag. Everything else stays out of the file and out of danger.
Stock has a trap in the way the column is defined. A number in the Stock column turns stock management on for that product, and a blank cell leaves stock management off. A stock file with a few empty cells is therefore not saying that those products are unchanged. It may be telling WooCommerce to stop tracking them. Fill every row, using an explicit zero where a product is sold out. The stock rules themselves, such as backorders and when quantities are deducted, are covered in the separate WooCommerce inventory guide.
The second stock trap is timing. A quantity in a CSV is an absolute number, not an adjustment. If you export counts at nine, edit them over lunch and import at one, every order placed in between has already reduced the real stock, and the import writes the old numbers back over them. The store can then sell items it no longer has. Shorten the gap, import in a quiet period, or pause ordering while the run takes place. If stock changes constantly, a spreadsheet is the wrong transport.
Prices have their own checks. A sale price should be lower than the regular price, and sale dates are read in the store’s timezone, so a sale meant to start at midnight may begin at an odd moment if the file and the store disagree. A sale price entered without dates is simply active. Clearing a sale means supplying an empty cell in a column that you include, which is the same blank-clears behaviour covered earlier, so confirm it on a test row. Follow your store’s tax setting for entered prices, and check one product on the front end to be sure the figure matches the setting.
How hard a CSV change is to undo
How to read this: each row is one option, and its dot shows where it sits between Easy to undo and Hard to undo. Placement is an editorial judgement, not a measurement.
- 1Add new products as draftsTrash the batch, nothing was public.
- 2Update prices with every cell filledRe-import the earlier export.
- 3Update stock on a busy storeOrders in the gap are overwritten.
- 4Include columns with blank cellsCleared values must be restored from the export.
- 5Change SKUs or IDsMatching and references shift.
- 6Delete and re-create productsNew IDs break links and reviews.
Rehearse on staging, then promote the file, not the database
A staging site is a copy of your store where mistakes cost nothing, and an import is the right moment to use one. The point is to run the very file you intend to use against data that looks like production and learn what breaks while nobody is shopping. A rehearsal is only as good as the copy, so check that staging has the same WooCommerce version, the same PHP version and memory limit, the same theme and the same plugins. A staging site without the plugin that hooks product saves cannot reveal the slowdown that plugin causes on production.
Work in two stages. First, a small smoke test of five to ten rows that includes one of every product type, one variable product with its variations, a product with several images, one row you know will fail, and one row in each special case you rely on. Read the results log and open each product. Then run the whole file and note roughly how long it takes, which tells you how large a maintenance window to plan for your own host.
Inspect the outcome as a shopper would. Open category pages and a few product pages, check variation dropdowns and galleries, and run a site search. Compare counts: products in the file against products created, and images expected against media items added.
Staging proves the file but not the timing, since production has live traffic, caches and different server load. Staging sites are often password-protected, which can interfere with image fetching if your images live on a protected address, so test that path explicitly.
Above all, decide how the result reaches production. For a store that takes orders, never replace the production database with the staging one, because that overwrites every order and customer created since the copy was made. Promote the file instead: when staging looks right, run the same CSV on production, following the same steps you rehearsed, in a quiet period, after a fresh backup.
Backups, drafts and a rollback plan
The importer has no undo, so your recovery plan has to exist before the run, in layers, because no single layer covers every kind of mistake. The first layer is a full backup of the database and the uploads folder, taken immediately before the import and not last night. A backup you have never restored is a hope, so confirm that the file is complete and know the restore path before you need it. On the command line, a database export is one line.
$ wp db export before-import.sql
The second layer is the readable record: the untouched export of the catalogue you took earlier. It is not a backup, since it leaves out orders, customers, reviews and anything outside the product columns, but it is the fastest way to reverse an update-style import. Re-import the before-export with the update box ticked, limited to the columns that changed, and prices or stock return to their earlier values.
The third layer is draft status. Set Published to -1 on new products so that nothing reaches shoppers until you have reviewed it, then publish the batch with the bulk edit tool on the product list. The fourth layer is a batch tag. Add a temporary tag, such as an import name with a date, to every row in the Tags column. When something goes wrong you can filter the product list by that tag, review the whole batch together and trash it in one action, and when everything is right you remove the tag. Remember that trashing products does not remove the images they brought into the media library, so those need a separate cleanup.
Know the limit of a wholesale restore. On a store that takes orders, restoring a database backup rolls back every order, customer and stock deduction since the backup was made. That cost is often unacceptable, which is why the surgical routes, drafts, tags and the before-export, matter more than the full backup for everyday mistakes. Keep the big restore for real disasters.

Large files, timeouts and partial imports
Four separate limits can stop a large import, and they produce different symptoms. The first is file size: the upload screen shows a maximum that is set at the server level, and the documentation tells you to ask your host to change it, or to split the file. The second is time and memory per request. The importer works in batches and tries to stop before PHP’s limits, but a batch full of image downloads can still run out of time. The third is a layer in front of PHP, such as a proxy or CDN, that cuts off requests which take too long and returns a gateway or timeout error even though PHP is still working. The fourth is the browser tab itself, which drives the whole job.
The first defence is splitting. Cut a big file into pieces of a few hundred rows, which is an illustrative size and not a rule, and keep every variable product next to its variations so no piece depends on rows in another unfinished piece. Import the pieces in order. Image-heavy files deserve smaller pieces than text-only ones, since the images set the pace. If the upload itself is rejected, the documentation suggests putting the file in the uploads folder with SFTP or your host’s file manager and using the server path option under the advanced settings.
Plan for the partial import. If a tab closes or a request dies at row 400, do not simply start again blindly. Open the results and work out the last SKU that was saved, either from the log or by sorting the product list by date. Remove the finished rows from the file and import the rest. In create mode, re-running rows that already exist is mostly safe, since matching SKUs are skipped and reported, but rows with no SKU would be created a second time, which is yet another reason to give everything a SKU.
The import went wrong: which kind of problem is it?
Checking the catalogue afterwards
A finished progress bar means the importer stopped, not that the catalogue is right. Start with counts: compare the imported, updated, skipped and failed totals with the row count of your file. Then ask the database directly how many products and variations exist in each status. The prefix may differ on your site, and WP-CLI can run the query for you.
SELECT post_type, post_status, COUNT(*) AS total
FROM wp_posts
WHERE post_type IN ('product', 'product_variation')
GROUP BY post_type, post_status;
Two further queries catch the classic structural damage: variations whose parent does not exist, and SKUs that appear more than once.
SELECT v.ID
FROM wp_posts v
LEFT JOIN wp_posts p ON v.post_parent = p.ID
WHERE v.post_type = 'product_variation' AND p.ID IS NULL;
SELECT sku, COUNT(*) AS copies
FROM wp_wc_product_meta_lookup
WHERE sku <> ''
GROUP BY sku
HAVING COUNT(*) > 1;
Next, check taxonomies. Look through the category and tag lists for near-duplicates that a typo created, and confirm that product counts look plausible. Newly created categories may need the permalinks refreshed, so save the permalink settings once or run the rewrite command if category links return not-found pages.
$ wp rewrite flush
$ wp cache flush
$ wp transient delete --all
WooCommerce also has maintenance tools under its status screen. Look there for the tools that recount terms, clear transients, rebuild the product lookup tables and remove orphaned variations, and run those that match your symptoms. Then deal with the layers outside WooCommerce: a page cache and CDN that still serve old pages, a search plugin or hosted search service that needs reindexing, product feeds to marketplaces and ad platforms that refresh on their own schedule, and SEO sitemaps that update when products are published. Finish by viewing the store logged out, in a private window, as a customer would: open a category, a variable product and a search results page, and add a variation to the cart.
Where stale data hides after an import
When an import plugin is worth it
The built-in importer is enough more often than plugin vendors suggest. If you import occasionally, control the layout of the file and work with simple and variable products, the free tool plus the habits in this guide covers it. A plugin earns its place when the job itself changes shape, not merely when the catalogue is large.
Four situations usually justify one. The import repeats on a schedule from a supplier link or feed and nobody should have to sit in front of a browser tab. The source arrives in a layout you cannot control, so you need transformation rules such as renaming columns or splitting a field. The source is XML, JSON or a spreadsheet instead of CSV. Or you need field-level control the built-in tool lacks: update only these fields, skip unchanged products, or handle products that disappear from the feed. Heavy use of custom fields from other plugins is another trigger, since plain-text meta is the built-in limit.
Plugins also have costs. Most commercial ones are paid, so check the vendor page for current terms. A plugin is one more thing to update and one more place where an import can go wrong. Rehearse with it exactly as you would with the core importer.
When you evaluate one, ask the questions that map to this guide. Does it run in the background on the server rather than in an open tab, and does it log what it did? Can it match on SKU or a custom field you choose? Does it handle variations, global attributes and images the way your supplier structures them? Can it update selected fields only, and what does it do with blank cells? Does the vendor document compatibility with your WooCommerce version? Test your real file on staging before you pay for a second year.
Built-in importer or import plugin
| Built-in importer | Import plugin | |
|---|---|---|
| Source formats | A CSV file you upload | Often also feeds, FTP, XML, JSON or spreadsheets; verify per plugin |
| Running it | By hand, with the tab open | Often scheduled and in the background; verify per plugin |
| Transforming data | Column mapping only | Often rules, filters and calculated fields |
| Field-level control | Columns in the file decide | Often per-field update options |
| Cost and upkeep | Ships with WooCommerce | Usually a paid extra to maintain; check the vendor page |
| Main risk | No undo or preview | More power to do damage if misconfigured |
Checklist
- Export your current catalogue and keep the untouched file, with the date in its name, as a readable record.
- Copy the header row from your own export and remove only the columns you do not intend to change.
- Format SKU, barcode and date columns as text before entering any data.
- Write prices as plain numbers with a full stop, with no thousands separator or currency symbol.
- Save as CSV UTF-8 and open the raw file in a plain-text editor to check the first rows.
- Confirm every row has a unique SKU with no stray spaces, and that every variation has its own SKU.
- Decide whether the file creates or updates products, and keep the two jobs in separate files.
- For updates, include only the identifier and the columns you own, with no blank cells in included columns.
- Compare the distinct category and tag values in the file with the existing lists to catch typos.
- Check that global attributes exist with the exact names you use, and that variation values match the parent.
- Place every parent row before its variations and keep each group together when sorting or splitting.
- Resize large images, confirm every address is public, or pre-upload the files to the media library.
- Run a small mixed smoke test, then the full file, on staging that matches production versions and plugins.
- Take a fresh backup of the database and uploads just before the production import, and know how to restore it.
- Import new products as drafts with a temporary batch tag, and publish only after review.
- Keep the browser tab open during the run and read the whole results log afterwards.
- Afterwards, compare counts, run the structural queries, refresh permalinks, purge caches and view the store logged out.
Read this next
About this guide. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.
Frequently asked questions
Do I need a plugin to import products into WooCommerce from a CSV file?
No. WooCommerce includes a product importer and exporter, reached from the Products screen, that handles simple, variable, grouped and external products, categories, tags, attributes and images by address. A plugin becomes worthwhile when you need scheduled imports, non-CSV sources, data transformation or field-level update control. For an occasional, hands-on import with a file you control, the built-in tool is usually enough.
Why were some of my rows skipped?
A common cause is a row whose ID or SKU already exists while the update box is unticked, which the documentation lists directly. Others are an ID that matches no product, unexpected Published values and plugin conflicts. The results log lists each skipped or failed row with a reason: fix the named cause and import only those rows again.
Can I update only prices or stock without touching anything else?
Yes, with a trimmed file containing the SKU and just the columns you want to change, imported with the update box ticked. Columns you leave out are not touched. Fill every cell in each column you include, because a blank cell can clear a stored value, and a blank stock cell leaves stock management off. Test a few rows first.
Why do my SKUs or barcodes look wrong after editing in a spreadsheet?
Spreadsheet software treats codes made of digits as numbers. It drops leading zeros and shows long barcodes in scientific notation, and once saved the original digits are lost. Set those columns to text before you enter or paste data, never open the CSV by double-click to edit it, and check the raw file in a plain-text editor before uploading it to the importer.
Why do accented characters turn into strange symbols?
The file was probably saved in a legacy regional encoding instead of UTF-8, which is what WooCommerce expects. Save again using the CSV UTF-8 option, or convert the file in a text editor that can set the encoding. Invalid bytes can even cause a field to be cut short or dropped, so fix the file before importing, not after, and open it in a plain-text editor to confirm.
How do I import variable products?
Use one parent row with the type variable, listing all attribute options, followed by one variation row per combination. Each variation row has the type variation, the parent's SKU in the Parent column, one value per attribute and its own SKU, price and stock. The parent must appear before its variations in the file, and attribute names and values must match exactly.
How do I handle commas inside category names?
Commas separate multiple values in a cell, so a category whose own name contains a comma needs a backslash placed before that comma, or the whole value needs quoting where appropriate. Hierarchy uses a greater-than sign, as in a parent category followed by a child. Compare the distinct values in your file with the existing categories first, because misspellings create new ones.
Why is my import slow or timing out?
Usually images. Each address is downloaded, saved and resized to every registered size, which takes time and memory, and plugins hooked to saves add more. Proxy or CDN timeouts can also cut requests short. Split the file into smaller pieces, resize images beforehand or pre-upload them, import images in a second pass, and ask your host about time and memory limits.
Can I undo a WooCommerce product import?
Not with a built-in undo. Build your own safety net: a verified backup of the database and uploads taken just before, an untouched export to re-import after update mistakes, drafts for new products, and a temporary tag on every imported row so the whole batch can be found and trashed. Remember that a full restore also rolls back orders placed since the backup.
Why did my products import without images?
The image step failed. Common causes are an address that is not public, a link with no recognisable image file extension, a remote server that blocks or throttles your host, a file type that is not permitted, or memory exhausted while resizing a huge original. Check the results log, test one address in a private browser window, and consider pre-uploading the files.
Does the product CSV import orders, customers or reviews?
No. The product importer deals with products, their taxonomies, attributes, images and plain-text custom fields. Orders, customers, coupons and product reviews are outside it, and serialised or structured custom data does not travel as a plain cell either. Those need other tools, such as separate exporters, plugins built for the purpose, or a database-level migration that is planned and rehearsed carefully.



