Skip to content

Library Guides

WooCommerce product CSV import: columns, mapping and errors

The columns of WooCommerce's built-in product CSV importer, simple and variable products as rows, column mapping, updates by ID or SKU, file limits and error fixes.

By CentralUpdated 23 November 202611 min read5 sources, checked 23 November 2026
On this page
  1. The importer in short
  2. The column schema
  3. Simple and variable products as rows
  4. Images
  5. Column mapping, step by step
  6. Updating existing products
  7. File limits
  8. Exporting
  9. Common errors and fixes
  10. Converting to and from other formats
  11. Where Central helps

In short

  • WooCommerce has a built-in product CSV importer and exporter under Products, All Products; its developer wiki says both were added in version 3.1.0.
  • The importer reads CSV or TXT files in UTF-8 and supports the product types simple, variable, grouped, external, variation, virtual and downloadable.
  • A variable product is one row of type variable plus one row of type variation per variant, each pointing to its parent through the Parent column by SKU or by id: and the ID.
  • Existing products are matched by ID or SKU and are changed only when Update existing products is selected; otherwise rows with an existing ID or SKU are skipped.
  • WooCommerce states no fixed file size limit: the maximum size shown on the upload screen is set by the server, and large files should be split into batches.
  • Columns whose header starts with meta: are imported as custom fields, as plain text only.
Product file converterFree tool

The importer in short#

WooCommerce imports and exports products as CSV without an extension. Everything on this page is from WooCommerce's own documentation, Product CSV Importer and Exporter, and from its developer wiki on GitHub, as they read in November 2026.

QuestionWhat WooCommerce states
Where it isProducts, All Products: Import and Export are next to "Add new product"
Since whenThe developer wiki dates both to version 3.1.0
FileA CSV or TXT file in UTF-8
Product typessimple, variable, grouped, external, variation, virtual, downloadable
How rows find existing productsBy ID or SKU
When existing products changeOnly with "Update existing products" selected; otherwise those rows are skipped
File sizeNo fixed number; the "Maximum size" on the upload screen is set by the server
Custom fieldsColumns whose header starts with meta:

A clean import starts before the file: the checks a product record should pass are in the guide to product data quality.

The column schema#

The header names below are the ones WooCommerce's exporter writes and its importer maps on its own. They come from the Product CSV Import Schema in the developer wiki, last edited on May 4, 2026.

ColumnWhat goes in
IDThe product's ID. With an ID, the import overwrites that product. Leave it empty for new products: WooCommerce cannot give a new product an ID of your choice.
TypeOne of the product types above; several are separated by commas, as in simple, virtual
SKUThe SKU. The schema marks it as required and adds that a missing one is generated.
NameThe product name. Required.
Published1 published, 0 private, -1 draft; the documentation adds 2 for pending review
Is featured?, In stock?, Sold individually?, Allow customer reviews?1 or 0
Visibility in catalogvisible, catalog, search or hidden
Short description, DescriptionText
Regular price, Sale priceNumbers such as 24.99
Date sale price starts, Date sale price endsDates such as 2026-11-27, in the store's time zone
Tax status, Tax classtaxable, shipping or none; the name of an existing tax class
StockA number switches stock management on, an empty cell switches it off; parent lets a variation use its parent's stock
Low stock amount, Backorders allowed?Empty or a number; 1, 0 or notify
Weight (unit), Length (unit), Width (unit), Height (unit)Numbers only. The header carries the store's unit, as in Weight (lbs) in WooCommerce's sample file.
CategoriesCategories separated by commas, levels separated by >: Outdoor > Lighting > Headlamps
Tags, Shipping classTags separated by commas; the name of a shipping class
ImagesImage links separated by commas; the first is the featured image
ParentFor a variation: the parent's SKU, or id: and its ID, as in id:100
Grouped products, Upsells, Cross-sellsOther products, by SKU or by id: and ID
External URL, Button textFor external products
PositionThe sort order
Attribute 1 nameThe attribute, such as Color. WooCommerce uses a global attribute of that name if there is one, otherwise plain text. More attributes use Attribute 2 name and so on.
Attribute 1 value(s)The values, separated by commas. A variation needs one.
Attribute 1 visible, Attribute 1 global1 or 0
Attribute 1 defaultThe preselected value of a variable product
Download 1 name, Download 1 URL, Download limit, Download expiry daysFor downloadable products
Purchase noteText
meta: and a keyA custom field as plain text, for example meta:product_depth

The documentation describes newer fields the wiki's schema does not list. From WooCommerce 11.2, a column can be mapped to "GTIN, UPC, EAN, or ISBN". From 11.3, product files support the customs columns Commodity code (HS code), Country of origin and Customs description.

Rules for the values#

  • Save the file as UTF-8.
  • Write true and false as 1 and 0.
  • Separate several values in one cell with commas, and put a value that contains a comma in double quotation marks. A single term with commas of its own gets a backslash before each comma.
  • Prefix a product ID with id:. A SKU needs no prefix.
  • Dates are in the store's local time zone.
  • Custom fields are plain text. The schema rules out JSON and serialized data.

Simple and variable products as rows#

A simple product is one row. A variable product is one row of type variable that lists every attribute value, followed by one row of type variation per variant. Each variation row names its parent in Parent and carries one attribute value, its own SKU and its own price.

A file with a Northpeak headlamp in two colors and a second headlamp without variants:

Type,SKU,Name,Published,Short description,Regular price,Categories,Images,Parent,Attribute 1 name,Attribute 1 value(s),Attribute 1 visible,Attribute 1 global
variable,NP-HL-400,Northpeak Beam 400 Headlamp,1,Rechargeable headlamp with 400 lumens and a USB-C port.,,Outdoor > Lighting > Headlamps,https://www.northpeak.example/img/beam-400.jpg,,Color,"Black, Red",1,1
variation,NP-HL-400-BK,Northpeak Beam 400 Headlamp - Black,1,,39.90,,https://www.northpeak.example/img/beam-400-black.jpg,NP-HL-400,Color,Black,,1
variation,NP-HL-400-RD,Northpeak Beam 400 Headlamp - Red,1,,39.90,,https://www.northpeak.example/img/beam-400-red.jpg,NP-HL-400,Color,Red,,1
simple,NP-HL-200,Northpeak Beam 200 Headlamp,1,Compact headlamp with 200 lumens for three AAA batteries.,24.90,Outdoor > Lighting > Headlamps,https://www.northpeak.example/img/beam-200.jpg,,,,,

What to notice:

  • There is no ID column, because all four products are new.
  • The parent row has no price. The prices are on the variations.
  • "Black, Red" is in quotation marks because the cell holds two values. Each variation row holds one of them, spelled exactly as in the parent row.
  • The parent row comes before its variations.
  • The rows follow the pattern of WooCommerce's own sample file, where a variation repeats the attribute name, gives one value and sets Attribute 1 global to 1.
  • The image links are placeholders. Use links WooCommerce can download.

Which options make good variants is the subject of the guide to product variants. The variant matrix builder writes one row per combination of colors and sizes with a SKU each, which you can then move into these columns; how to create SKU numbers covers the naming.

Images#

Images have to be in the Media Library already or reachable online. WooCommerce imports an external image into the Media Library when it can download it. The documentation names three reasons a download fails: the host blocks requests from your store, asks for authorization, or returns a page instead of an image. For an image that is already in the Media Library you can give its file name. The built-in importer cannot add or change alt text for product images.

Column mapping, step by step#

  1. Go to Products, All Products and select Import.
  2. Choose the CSV or TXT file. Under "Show advanced options" you can enter the path of a file that is already on the server instead.
  3. Select "Update existing products" only if the file is meant to change products that exist.
  4. Continue to the column mapping screen. WooCommerce maps the columns it recognizes to product fields on its own.
  5. Check every line. Change a mapping in its dropdown, or choose "Do not import" for a column to ignore. Columns WooCommerce does not recognize are not imported unless you map them.
  6. For a custom field, pick "Import as meta" if the column was not mapped by its meta: prefix.
  7. Select "Run the importer" and wait. Do not reload or leave the page while it runs.
  8. Read the import report: it lists skipped and failed rows with the reason.

The mapping screen is where a supplier's file meets your shop. If a supplier sends other header names, either map them here by hand each time or ask for your headers up front with a supplier product data template.

Updating existing products#

WooCommerce matches update rows by ID or SKU. The rules, as the documentation states them:

In the rowWhat happens
ID or SKU matches, "Update existing products" selectedThe product is updated
ID or SKU matches, option not selectedThe row is skipped
An ID that matches nothingThe row is skipped
A SKU that matches nothingIt can only create a new variation, under the rules below
ID and SKU both blank (from 11.2)A mapped "GTIN, UPC, EAN, or ISBN" column can find the product. That mapping is set to "Do not import" until you choose it.
Matched by GTIN, but Type differs from the product's typeThe row fails

Since WooCommerce 11.1, an update import can also create new variations for an existing variable product. Leave the variation's ID empty, set Type to variation and Parent to the variable product's SKU or id: and ID. Attribute names and values must match the parent's. If the parent row stands before its variation rows, one import is enough. On older versions, or when the order is not certain, run two imports: the parents first with "Update existing products" selected, then the variations without it.

For blank cells, the documentation gives a rule for the customs columns only: a blank cell in a mapped customs column clears the stored value, and leaving the column out, or choosing "Do not import", leaves it unchanged. Test other columns with one product before you rely on either behavior.

File limits#

WooCommerce's documentation gives no row or megabyte limit. It says that large imports depend on the server's memory, upload limits and processing time, and that the "Maximum size" on the upload screen is set at server level. Its advice:

  • Back up the store and test with a small file first.
  • Split a large file into batches.
  • Ask your host if the maximum size is too low, or put the file on the server and enter its path under "Show advanced options".

The deprecated importer page in the developer wiki also describes an advanced option for another delimiter, with the comma as the default. The current documentation does not mention it, so a comma-separated file is the safe choice.

Exporting#

Go to Products, All Products and select Export. You choose the columns (all by default), the product types and the categories. Select "Yes, export all custom meta" to get custom fields as meta: columns; without it, they are left out. Then select "Generate CSV". An export of a few products is also the quickest template: it shows your store's exact headers, units and IDs.

Common errors and fixes#

What you seeCause WooCommerce namesFix
Rows are skippedA product with that ID or SKU exists and "Update existing products" was not selectedSelect the option if you mean to update
Rows fail or fields stay emptyColumns or values do not match the schemaCompare headers and values with the schema and check the mapping
Products arrive as drafts or privateThe Published valueUse 1, 0, -1 or 2 on purpose
The import stops on a large fileThe file is too large for the server to process in one requestSplit it into batches
Sorry, this file type is not permitted for security reasons.WordPress misreads the file type, which can happen when a CSV contains HTMLCheck that the file is saved as CSV; otherwise put it into the site's uploads directory and enter the server path
Images are missingThe image host blocked the download or returned a pageUse links that open without a login, or upload the images first
New variations are not createdAttribute names or values differ from the parent, or the parent row comes laterMatch the spelling and put the parent first
The import breaks off without a clear reasonA plugin or theme conflictTest with other plugins switched off
Accents and umlauts are brokenThe spreadsheet program changed the encodingSave as UTF-8 and look at the saved file before importing

Spreadsheet programs also damage numbers. Microsoft states that Excel removes leading zeros and converts large numbers to scientific notation. Format barcode and commodity code columns as text, and run barcodes through the GTIN check digit calculator before the import. WooCommerce itself recommends Google Sheets, LibreOffice Calc, OpenOffice Calc or Numbers for editing.

Converting to and from other formats#

The product file converter near the top of this page reads a WooCommerce export in your browser; nothing is uploaded. It saves the table as CSV with commas or semicolons, TSV, Excel, JSON, JSON lines or XML, and it has two presets for WooCommerce exports.

"WooCommerce export to Google feed" renames ID or SKU to id, Name to title, Regular price to price, Images to image_link, Categories to product_type and Parent to item_group_id, and it removes HTML from the description. It renames columns and leaves the other values as they are. Three things remain for you: the price needs its currency code, image_link may hold one link only while an Images cell can hold several, and the result should pass a check before you submit it. The guide to the Google Shopping feed lists what Google needs.

"WooCommerce export to Shopify import" renames the columns for Shopify. Compare the result with the current names in the guide to the Shopify product CSV before you import it: every row of a product with variants needs a URL handle there. A supplier feed in XML becomes a table first, as described in XML to CSV.

Where Central helps#

An import file carries what you already know about a product. Central researches the product data a listing still needs from your own data, the open web and verified databases, backs every value with sources you can check and holds back what the sources do not support. It then writes titles, descriptions and attributes within each channel's limits.

See it on your own products

Questions

Does WooCommerce have a built-in product importer?

Yes. Go to Products, All Products: the Import and Export buttons are next to Add new product. WooCommerce's developer wiki says the importer and exporter were added in version 3.1.0 and support all product types, including variations.

How do I update existing WooCommerce products with a CSV?

Put the product's ID or SKU in each row, start the import and select Update existing products. WooCommerce matches rows by ID or SKU. Without that option, rows whose ID or SKU already exists are skipped.

How do I import variable products into WooCommerce?

Write one row with the type variable that lists all attribute values, then one row per variation with the type variation, a single attribute value and the parent's SKU or id: and its ID in the Parent column.

What is the maximum file size for a WooCommerce product import?

WooCommerce names no fixed number. The maximum size shown on the upload screen is set at server level, and WooCommerce advises splitting large CSV files into smaller batches.

Can I import custom fields with the WooCommerce importer?

Yes. Prefix the column header with meta:, for example meta:product_depth. The schema says custom meta is imported as plain text only, without support for JSON or serialized data.

Sources

  1. Product CSV Importer and ExporterWooCommerce Documentationchecked 23 November 2026
  2. Product CSV Import SchemaWooCommerce developer wiki on GitHubchecked 23 November 2026
  3. Product CSV Importer & Exporter (deprecated wiki page)WooCommerce developer wiki on GitHubchecked 23 November 2026
  4. sample_products.csvWooCommerce on GitHubchecked 23 November 2026
  5. Keeping leading zeros and large numbersMicrosoft Supportchecked 23 November 2026

More on this topic

Product data and files

You choose what goes in and where it goes out.

Central AI does everything in between. Your first 3 products are free.

  1. Your inputYour shop, your files or your product pages.
  2. Central AIResearches, verifies and writes everything in between. Every value is backed by sources you can check; what the sources do not support is held back.
  3. Your channelsProduct data and listings for the channels you choose.