Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Info

Can You Export a WordPress Site? The Short Answer

Can You Export a WordPress Site? The Short Answer

Short answer

Yes, you can export a WordPress site. The built-in Export tool saves posts, pages, comments and menus as an XML file, but leaves out themes, plugins, settings and media files. For a full copy, use a migration plugin, your host's tools, WP-CLI or a manual files and database export.

Key takeaways

  • Tools, Export creates an XML file with your content only.
  • The XML file links to media rather than including the files.
  • Migration plugins export files, database, theme and plugins together.
  • Manual and WP-CLI exports suit large sites and avoid upload limits.
  • Test every export on a staging site before deleting the original.

Can you export a WordPress site?

Yes, you can export a WordPress site, either as a content-only XML file from the built-in Export tool or as a full copy of files and database using a migration plugin, your host or manual tools.

The right method depends on what you need. Moving posts to a new blog is a different job from cloning a whole site with its design and plugins.

WordPress gives you the content export for free in every install. Full exports need a plugin, host tool or a bit of technical work.

What does the built-in WordPress export include?

The built-in export under Tools, then Export, creates an XML file with your posts, pages, comments, custom fields, categories, tags, navigation menus and custom post types.

It is often called a WXR file, short for WordPress eXtended RSS. Another WordPress site can read it through the WordPress Importer.

The official Tools Export screen guide explains each option, including filters by author, date range and status.

You can export everything at once or pick one content type, such as only posts.

What does the export file leave out?

The XML export does not include your theme, plugins, site settings, widgets in classic themes, user passwords or the actual media files.

Media is the part that surprises people. The file only lists image URLs. The importer can try to download them from the old site, but only while that site is still online.

Here is a summary of what each method carries over:

ItemTools, Export (XML)Migration pluginManual files + database
Posts, pages, commentsYesYesYes
Media filesLinks onlyYesYes
Theme and pluginsNoYesYes
Settings and widgetsNoYesYes
Users with passwordsNoYesYes
Skill neededLowLowMedium to high

If you only need user accounts, see our guide on how to export WordPress users.

How do you export a WordPress site with the built-in tool?

Log in to your dashboard, go to Tools, then Export, choose All content or one content type, and click Download Export File to save the XML file.

Step by step:

  1. Go to Tools, then Export.
  2. Pick All content, or choose posts, pages or media.
  3. Set filters if you only want part of the content.
  4. Click Download Export File.
  5. Keep the file somewhere safe.

On the new site, go to Tools, then Import, and install the WordPress importer. Our guide on how to install the import plugin in WordPress walks through that part.

If the download fails or the file is empty, see our WordPress export error fix guide.

How do you export a full WordPress site?

To export everything, use a migration or backup plugin that packages your files and database together, or copy the files by FTP and export the database from phpMyAdmin.

Popular plugin routes include All-in-One WP Migration, Duplicator and UpdraftPlus. Each creates a package you can download and restore elsewhere.

You can find Duplicator on the plugin directory along with the other well-known options.

We have full walkthroughs for the most common tools:

Free versions of some plugins limit file size or the restore step. Check the limits before you start on a large site.

Can you export a WordPress site manually?

Yes, a manual export means downloading the whole WordPress folder by FTP or your host's file manager and exporting the database as an SQL file.

The files hold your themes, plugins, uploads and the wp-config.php file. The database holds content, settings and users.

phpMyAdmin is the usual tool for the database side. Its import and export documentation covers the options.

This method gives you a complete copy with no plugin limits. It takes more care, especially when you change domains. Our guide on how to migrate WordPress manually covers the full process, including URL changes.

Can you export a WordPress site from the command line?

Yes, WP-CLI can export content to XML with the wp export command and dump the database with wp db export, which is handy for large sites.

Command line exports avoid browser timeouts and upload limits. They need SSH access, which many hosts offer.

wp export --dir=./exports
wp db export site-backup.sql

The wp export command reference lists filters like post type, author and date range.

For a full move by command line, read how to migrate WordPress with WP-CLI.

Can you export a WordPress.com site?

Yes, WordPress.com sites can export their content as an XML file and download their media library separately, and sites on plans that allow plugins can use migration plugins too.

The content export works much like the self-hosted version. You download a ZIP that contains the XML file.

WordPress.com's own export guide explains the current steps and what the file includes.

Moving from WordPress.com to self-hosted WordPress is one of the most common reasons people export. The content imports cleanly, but you will need to set up your theme and plugins again.

Can you export a WordPress site as static HTML?

Yes, but that is a different job; static exports turn pages into plain HTML files, which removes the dashboard, forms and other dynamic features.

People use static exports for archives, very fast brochure sites or hosting on simple file servers.

We cover this in can you export WordPress to HTML, including the trade-offs.

Which export method should you choose?

Use the built-in XML export to move content only, a migration plugin to copy the whole site easily, and manual or WP-CLI methods for large sites or when plugins hit limits.

Some quick rules:

  • Moving to a new theme on a fresh install: XML export.
  • Moving hosts with the same design: migration plugin.
  • Site over a few gigabytes: manual or WP-CLI.
  • Keeping a safety copy: a full backup, not the XML file.

An export is not a backup plan on its own. Store copies off the server, and test that they restore.

What should you check after exporting?

Open the export file or package, confirm its size looks right, and test the import on a staging site before you delete anything from the original.

An XML file of a few kilobytes for a large blog usually means something went wrong.

After importing, check images, internal links, menus and forms. Broken links are common after a domain change, and our guide to fixing broken links after migration shows how to sort them out.

Keep the old site online until you are sure everything moved. The importer may still need it to fetch media.

Frequently asked questions

Does the WordPress export include images?

Not directly. The XML file lists image addresses, and the importer can download them if the old site is still online. To move the actual files, use a migration plugin or copy the uploads folder.

Can I export my WordPress theme with the content?

Not with the built-in tool. Themes and plugins are files, so you need a migration plugin, a full backup or a manual copy of the wp-content folder to bring them along.

Is exporting a WordPress site free?

The built-in export and manual methods are free. Many migration plugins have free versions, though some limit file size or restore features and charge for larger sites.

Will exporting my site take it offline?

No. Exporting only reads data and creates a copy. Visitors can keep using the site while the export runs, although very large exports can slow the server for a while.

How do I export only my blog posts?

Go to Tools, then Export, choose Posts, and set any filters such as category or date range. Download the file and import it on the new site with the WordPress importer.

Sources

  1. Tools Export Screen WordPress.org Documentation
  2. wp export WordPress Developer Resources
  3. Export your site WordPress.com Support
  4. Import and export phpMyAdmin Documentation

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.