Risk Free, Backed By Our 90-Day Money Back Guarantee
 - 
Read More
Lifetime Licenses Are Ending Soon, Get Yours Before They're Gone
 - 
Read More
Risk Free, Backed By Our 90-Day Money Back Guarantee
Pricing

You may have seen some references on our site to annual licensing or renewals.

All plugins currently come with a lifetime license, no matter what the site says.

We’re currently running tests before we make the switch to annual pricing. Check the Discounts tab to purchase our other plugins and get a lifetime license before they’re gone.

I Understand I Have a Lifetime License
Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
Read More
200,000+ Active Installs
1500+ 5 Star Reviews
Pricing
Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
Read More
200,000+ Active Installs
1500+ 5 Star Reviews
Pricing

How to Export and Import Product Categories in WooCommerce

Product categories drive how a WooCommerce catalog is organized so that customers can find products easily. Exporting and importing them between systems means preserving the parent/child hierarchy without breaking it.

WP All Import and WP All Export were designed to handle that hierarchy through the same intuitive drag-and-drop user interface used for every other WooCommerce field, keeping parent/child relationships intact on both export and import.

This guide walks through both processes, including advanced workflows that both plugins support to cover more complex scenarios.

What Are Product Categories in WooCommerce?

WooCommerce product categories are a hierarchical taxonomy used to group products by type. Unlike product tags, which group products without hierarchy, or product attributes, which define product variations, product categories are more structurally complex.

They are usually nested into parent/child relationships, where each level acts like a parent to the one below it. For example, a Women’s Clothing category can have a Summer Collection subcategory, which also contains a Sundresses category. Visually, the hierarchy looks like Women’s Clothing › Summer Collection › Sundresses.

That kind of hierarchy is exactly what needs to survive intact during a site migration, a sync to an external system, or a bulk catalog reorganization. This is why understanding how to export and import WooCommerce product categories is important.

How to Export Product Categories in WooCommerce

The Basic WooCommerce Product Categories Export Workflow

  1. Set up the export. Go to All Export → New Export from the WordPress admin dashboard. Choose Taxonomies as the post type and select Product categories as the subtype.
wp-all-export-woocommerce-product-categories-new-export
  1. Add a filter (if needed). To narrow the export to only a subset of product categories, use the filtering options. Otherwise, skip that step and jump straight to the next step by clicking Customize Export File.
wp-all-export-filtered-woocommerce-product-category-for-export
  1. Map the fields. On the Drag & Drop screen that appears, the Term ID, Term Name, and Term Slug fields are added by default in the column selection area. For hierarchical categories, also drag in the Parent ID, Parent Name, and Parent Slug. These are the fields that will keep all subcategories correctly nested when the file is reimported.
wp-all-export-woocommerce-product-categories-data-mapping
  1. Choose a format and run it. Select an Export Type that is most ideal for your export: CSV (default selection), Excel, or XML. Next, click Continue, configure the remaining export settings, then run the export and download the file.
wp-all-export-woocommerce-product-categories-export-confirm-and-run

What Category Data You Can Export from WooCommerce

WP All Import makes it possible to export the following category data from your WooCommerce store:

DataWhat it captures
Term ID, Name, Slug, DescriptionCore category identity and description
Parent ID, Parent Name, Parent SlugHierarchy; required for exporting subcategories correctly
Term metaCustom metadata, including category thumbnail images
Product countNumber of products currently assigned to each category

Exporting Product Categories Directly vs. Exporting Products with Categories

WP All Export enables exporting product categories in two ways, and they serve two different purposes.

  • Direct taxonomy export: This is the method that is covered in this guide, which exclusively targets product categories without touching the product data. It’s the right approach to use when the goal is to migrate, backup or sync the category structure by itself.
  • Categories within a product export: Here, categories are exported as a field within a full WooCommerce product export. Each product row includes its assigned categories alongside the price, SKU, and other relevant product fields.

Advanced WooCommerce Category Export Options

Nested multi-level hierarchies

WP All Export makes it easy to export category structures with multiple levels of subcategories. These export using the same hierarchy fields as simple parent/child exports. See Nested, Hierarchical Taxonomies for the details.

Migrating categories to another store

Migrating product categories to another WooCommerce store requires a specific workflow to ensure that the migration runs successfully. WP All Export includes a dedicated export mode (accessed via the Migrate Product categories button on the New Export screen) that bundles categories with the settings needed to recreate them on another site. This option packages the category data together with the import template needed to recreate it on the destination site. 

Exporting a subset of categories

WP All Import includes a robust filtering functionality that makes it possible to narrow down an export to only a specific subset of categories, rather than exporting the full taxonomy. See Filtering Exported Data for details on how to use the filter effectively. 

Recurring exports

For scenarios where you need to run WooCommerce product category exports on a schedule to keep an external system or backup in sync automatically, WP All Export includes the option to schedule exports to run automatically. Details are in Automatic Scheduling.

How to Import Product Categories in WooCommerce

The Basic WooCommerce Product Categories Import Workflow

  1. Set up the import. Go to All Import → New Import from your WordPress admin dashboard. Upload the import file, choose Taxonomies as the import type, select Product categories as the subtype, and click Set Up Import.
wp-all-import-woocommerce-product-categories-new-import
  1. Review and filter (optional). Click Create Filters to access the Review Import File screen from where you can confirm that the data parsed correctly and apply a filter to import only specific product categories. Skip this step completely to import the full file.
wp-all-import-filtering-options
  1. Map the fields. On the Drag & Drop screen, map the incoming term name and description into the Name & Description panel. If the import file includes categories with sub-categories, expand the Other Category Options panel and map the incoming parent data, such as the ID, name, or slug, to the Parent Term field. Without mapping this, the hierarchy would not carry over.
wp-all-import-woocommerce-product-categories-field-mapping
  1. Preview and configure. Click Preview to see what the categories will look like after being imported. Click Continue to Import Settings to proceed to the Import Settings screen from where you can set things like a Unique Identifier (Auto-detected by default) for the import and how re-running the import should behave. Once all settings have been configured, click Continue to proceed.
wp-all-import-woocommerce-product-categories-import-settings
  1. Run and verify. On the Confirm & Run screen, click Confirm and Run Import to start the process. Once it finishes, verify the results under Products → Categories.
wp-all-import-woocommerce-product-categories-import-confirmation

What Category Data You Can Import into WooCommerce

WP All Import maps the following category fields on import:

DataNotes
Name, slug, descriptionCore category identity and description
Parent termAccepts ID, name, or slug. All three work
Term meta/custom fieldsAny custom metadata attached to the category
Category images/thumbnailsMapped as term meta

Updating vs. Creating Categories on Re-Import

When a taxonomy import is run more than once, one key problem that often occurs is that it gets duplicated. WP All Import, however, avoids this issue through its Unique Identifier Auto-detect feature, which it uses to match incoming rows against categories that already exist on the site.

When a match is found, the existing category updates instead of duplicating. For instances where certain categories no longer appear in the file, WP All Import includes settings so a re-import can be configured to create, update, or delete as needed. 

Advanced WooCommerce Category Import Options

Assigning categories during a full product import

Outside of importing categories as a standalone taxonomy import, they can also be imported and mapped during a full WooCommerce product import. That workflow is covered in How to Import and Export WooCommerce Products.

Importing category images via term meta

Category thumbnail images are stored as term meta rather than as a standard WooCommerce field. As such, adding or updating them requires a dedicated taxonomy import, which is covered in Import Taxonomy Meta and Images.

Migrating categories from another site

A category bundle exported from another WooCommerce store, containing both the category data and the import template, can be uploaded directly using WP All Import. This is done through the same import process covered in this section, to recreate the categories without manual field mapping.

Final Thoughts

Category imports and exports, as simple as they may seem, can make or break a WooCommerce site if not implemented correctly. Edge cases such as a migration with hundreds of nested subcategories, a bulk rename of categories across an entire catalog, or a sync that needs to run unattended on a schedule are usually the instances where they fail. 

WP All Export and WP All Import were designed to handle both simple and edge-case exports and imports of WooCommerce product categories, all from an easy-to-use drag-and-drop interface.

Export and Import Product Categories in WooCommerce - Frequently Asked Questions

How do I export WooCommerce product categories to CSV?

You can export WooCommerce product categories to CSV with WP All Export. The steps are as follows:
1. Go to All Export → New Export
2. Select Taxonomies as the export post type and Product categories as the subtype
3. Use the Drag & Drop screen to select the fields to include such as name, slug, description, and any others needed
4. Choose CSV as the export format and run the export

How do I import product categories into WooCommerce?

Use WP All Import to import product categories into WooCommerce. Go to All Import → New Import, upload the CSV, Excel, or XML file, and select Taxonomies as the import type with Product categories as the subtype. WP All Import displays the file's columns on the Drag & Drop screen, where each one maps to a category field before the import runs.

How do I import product categories with a parent/child hierarchy?

You can import product categories with a parent/child hierarchy using WP All Import. It includes a setting that preserves category hierarchy through a dedicated field during import. Go to All Import → New Import and set up the category import as usual, then on the Drag & Drop screen, expand Other Category Options and map the incoming parent data to the Parent Term field.

Can I export product categories with their images?

Yes, WP All Export can include category thumbnail images in a category export. Since WooCommerce stores these images as term meta rather than a standard field, add the relevant term meta field to the export layout alongside name, slug, and description before running the export.

Joe Guilmette
VP of WP All Import. Joe's an expert in WordPress & WooCommerce Imports and Exports.

The best import export plugin for WordPress & WooCommerce.

Complete, granular control of your data with an easy to use drag & drop interface.
  • 90 Day Money Back Guarantee
  • Unlimited Installs
  • Lifetime Licence
  • Fast, World-Class Support
Get Started
90 Day Money Back Guarantee

Unlimited Installs.
World-Class Support. Money Back Guarantee.

Packages
Standalone
Import
Pro Package
$199
.00
/yr
Save $494, 71% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$693 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Import + Export Pro Package
$299
.00
/yr
Save $1087, 78% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$1386 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
WooCommerce Import Package
$169
.00
/yr
Save $29, 15% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$198 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Lifetime License
$1299
One-Time Payment
  • Import Pro + Export Pro
  • All Current Add-Ons
  • All Future Add-Ons
  • Lifetime Support
  • Lifetime Updates
  • No Renewal Fees
Buy Now
90 Day Money Back Guarantee
Import Standalone
$99
.00
/yr
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
Import + Export Standalone
$169
.00
/yr
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
Export Standalone
$99
.00
/yr
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
Packages
Standalone
Import
Pro Package
$16.58
per month, billed annually
Save $494/yr, 71% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$693/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Import + Export Pro Package
$24.92
per month, billed annually
Save $1087/yr, 78% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$1386/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
WooCommerce Import Package
$14.08
per month, billed annually
Save $29/yr, 15% Discount
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
$198/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Lifetime License
$1399
One-Time Payment
  • Import Pro + Export Pro
  • All Current Add-Ons
  • All Future Add-Ons
  • Lifetime Support
  • Lifetime Updates
  • No Renewal Fees
Buy Now
90 Day Money Back Guarantee
Import Standalone
$8.25
per month, billed annually
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
Import + Export Standalone
$14.08
per month, billed annually
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
Export Standalone
$8.25
per month, billed annually
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Buy Now
90 Day Money Back Guarantee
linkcross