How to Move From WordPress.com to WordPress.org Without Losing Images or Links

Category

Time to Read

10 minutes

Published

Updated

To move from WordPress.com to WordPress.org, export your content from Tools → Export, then import it into a self-hosted WordPress site with WordPress Importer, ticking the option to download attachments. Afterwards, search-replace your old blog address, redirect the old address, and move your subscribers with Jetpack.

We imported an export file we wrote ourselves in WordPress.com’s format into a fresh WordPress 7.1.4 site. The images came across, but a link to another post and one image still pointed at the old blog, and a failed image download still ended with “All done”.

Before you move from WordPress.com to WordPress.org

Before you move, have WordPress installed on your new host. Self-hosted WordPress means the free WordPress software from WordPress.org, installed on a host you pay for and control. The move copies your content, not your design, so a little setup on the new site saves fixing pages later.

Three things make the move smoother:

  1. Install your theme on the new site. The export carries your posts, pages, and comments, not your theme, design changes, or plugins. If your WordPress.com theme is in the WordPress.org directory, install the same one; otherwise, pick a new theme now.
  2. Check the permalinks. WordPress.com uses dates and the post name in its addresses, such as /2014/10/21/sample-post/. Our fresh install used the same pattern by default, /%year%/%monthnum%/%day%/%postname%/, which keeps old links working after a redirect. You’ll find it under Settings → Permalinks; if yours differs, choose Day and name.
  3. Leave the WordPress.com site public. The new site copies your images from the old one during the import, so the old site has to stay reachable until that’s done.

Export your WordPress.com site

In your WordPress.com dashboard, go to Tools → Export, choose All content, and click Download Export File. WordPress.com’s export guide explains each step. Sites with more than about 1,000 posts get an email with a .zip of several XML files instead, and each one is imported separately.

That export file, also called a WXR or XML file, holds your posts, pages, comments, categories and tags, plus the addresses of your images. It doesn’t hold the image files themselves, your theme, your design changes, or your plugins. That’s why the old site has to stay public: the import reads those addresses and downloads each image from it.

Two other downloads are worth knowing about:

  • A copy of your media files. Tools → Export Media Files downloads them as a .tar archive on sites without plugins. WordPress.com says this download isn’t for moving the site, but it’s a useful backup of the originals.
  • The whole site, if your plan allows plugins. On a plugin-enabled plan, WordPress.com points to All-in-One WP Migration, which moves content, plugins, themes, and users in one .wpress file. The free version handles sites under 2 GB. We didn’t test this route, and a site with plugins installed can’t use WordPress.com’s site redirect, covered below.

Import into self-hosted WordPress

On the new site, go to Tools → Import, install the WordPress importer if WordPress asks, and run it. WordPress Importer is the free plugin that reads export files. Upload your file, and the next screen asks three things:

  1. Assign Authors. Map each old author to an existing user on the new site, or let it create one; a new user gets the Subscriber role and a random password.
  2. Download and import file attachments. Tick it. It was unticked by default, and without it your images stay on the old site.
  3. Change all imported URLs that currently link to the previous site. It was ticked by default; leave it on.
WordPress.com to WordPress.org import: WordPress Importer screen with Assign Authors, Download and import file attachments ticked, and Change all imported URLs ticked
WordPress Importer 0.9.6 on our test site (WordPress 7.1.4), 11 Nov 2026. User name blurred.

Our small test file imported in under a second. Both images arrived with all their sizes, the featured image was set, and the posts, page, comment, category, and tag were all there.

When images fail to import

Then we ran the same import with the old site refusing requests, standing in for a site set to private. The importer printed “Failed to import Media” for each image, then “All done. Have fun!” No images reached the media library, and the posts still loaded their pictures from the old site, so they’d break the day it went private.

Import WordPress screen showing Failed to import Media for two images, followed by All done. Have fun!
The importer’s message when the old site refused image downloads, on our test site (WordPress 7.1.4), 11 Nov 2026.

Fixing it took one more run. With the old site reachable again, we imported the same file a second time. The importer reported each post “already exists”, created no duplicate posts or comments, and downloaded both images. Before you set the old site to private, compare the number of items in the two media libraries, as WordPress.com’s guide suggests.

Don’t leave an import half-finished

The importer saves your export file to the uploads folder as soon as you upload it. When we closed the browser on the Assign Authors screen, the file stayed there, renamed to end in .xml_.txt, and anyone could open it without logging in. It included a commenter’s email address. WordPress schedules it for deletion a day later; until then, finish the import or delete that file yourself.

Even with the URL option on, the import doesn’t move every link. Here’s what changed in our test:

In the export fileAfter the import
An image in a post, from the old site’s uploadsChanged to the new site
The featured imageSet to the new site’s copy
A link to another post on the old blog addressStill pointed at the old blog
An image loaded through i0.wp.com, WordPress.com’s image serviceStill pointed at the old blog

The reason is in the export file’s header. Two public WordPress.com exports we checked, from 2012 and 2020, name http://wordpress.com/ as the previous site and the blog’s own address separately. The importer’s URL option works from the first, so links written with your blog address stay as they are. Open your file and look at the wp:base_site_url line: if it says http://wordpress.com/, expect this gap.

Back up the new site first, as in our backup guide, then fix the rest with a search-replace. With WP-CLI, WordPress’s command-line tool, replace the image-service address and the blog address. Run each with --dry-run first, and leave the guid column alone:

wp search-replace 'https://i0.wp.com/yourblog.wordpress.com' 'https://example.com' --skip-columns=guid
wp search-replace 'https://yourblog.wordpress.com' 'https://example.com' --skip-columns=guid
wp search-replace 'http://yourblog.wordpress.com' 'https://example.com' --skip-columns=guid
wp db search 'yourblog.wordpress.com' --all-tables

Use your own old address, whether a .wordpress.com name or your own domain. The image-service line needs its own command, because there the old address has no https:// in front of it.

Older posts often link with http://, which the https:// line misses. On our site the https:// line made 0 replacements, and the final search still found the link; the http:// line fixed it. The search then listed only GUID entries, each post’s permanent ID, which WordPress’s handbook says not to change.

The linked post and image both loaded afterwards. Run the search again after any other replace, and repeat for any old address it finds, such as i1.wp.com. We didn’t test images on files.wordpress.com addresses.

Use a tool that understands WordPress data rather than a plain text replace; our localhost to live guide shows what a text replace did to a saved setting. Without SSH, Better Search Replace is a free plugin from the WordPress.org directory with a dry-run option and support for serialized data. We couldn’t add it to our test server, so it’s untested here; dry-run first and leave GUIDs unchanged. Our domain change guide covers search-replace in more depth.

Redirect the old address and move the domain

What you do next depends on the address your readers know.

If your site used your own domain on WordPress.com, point that domain at the new host. Change its name servers or DNS records, or transfer it to another registrar. A transfer takes five to seven days and isn’t allowed within 60 days of registering or transferring the domain.

If you need the new site live now, WordPress.com’s transfer guide says to change the name servers first. Our new host guide covers timing the switch.

If readers know a .wordpress.com address, WordPress.com’s way to send them on is a site redirect. A site redirect is a paid WordPress.com upgrade that forwards the old address and every permalink to your new site. WordPress.com’s site redirect guide sets these rules:

  • It’s set up from Settings → Site redirect on the WordPress.com site and paid for at checkout.
  • It isn’t available on sites with plugins installed or hosting features activated, so check with WordPress.com before choosing the plugin export route.
  • It can only point to an http:// address, so make sure your new site redirects http:// to https://.
  • The new site’s permalinks should match WordPress.com’s date-and-name pattern, or visitors may see errors.

If you skip the redirect, or moved your own domain, set the old site to private once the media counts match, so search engines don’t find two copies of every post. Readers following old links will then hit a private site, not your new one.

Move your subscribers

Email subscribers and WordPress.com followers don’t travel in the export file. Jetpack’s subscription migration tool moves them between two sites connected to WordPress.com. Install Jetpack on the new site, connect it with the WordPress.com account that owns the old site, then follow these steps:

  1. Open Cloud.jetpack.com and select the new site.
  2. Go to Subscribers, click the three dots next to Add subscribers, and choose Migrate subscribers from another WordPress.com site.
  3. Pick the old site, click Migrate subscribers, then Confirm subscriber move.

The account matters: Jetpack’s guide says “Non-owner administrator accounts cannot move subscribers.” Likes don’t move, so like counts restart at zero. WordPress.com followers keep getting new posts only in the WordPress.com Reader; for email, they have to subscribe to the new site themselves. We didn’t run this tool, since it needs a real WordPress.com site.

The WordPress maintenance checklist covers the jobs that start once the site is yours to look after.

How we tested

We used a fresh WordPress 7.1.4 site with WordPress Importer 0.9.6, on nginx, PHP 8.3 and MariaDB, and imported through wp-admin as a reader would. The export file was our own, written in WordPress.com’s export format, with the header and image addresses laid out as in two real WordPress.com exports we checked. A second web address on our test server played the old site and served the images.

We imported with the old site reachable, with it refusing requests, again after that, and once abandoned halfway; then we ran the search-replace with WP-CLI 2.12.0. The WordPress.com steps come from its own support pages, read on 11 Nov 2026; we didn’t use a WordPress.com account.

Frequently Asked Questions

Why are my images missing after importing from WordPress.com?

Images go missing when the importer can’t download them from the old site, usually because it’s private or the attachments option was unticked. In our test, the importer still finished with “All done”. Make the old site public and import the same file again; ours added the images without duplicating posts.

Do I need to pay for a site redirect?

A site redirect is only needed for a .wordpress.com address, and it’s a paid upgrade. If your site used your own domain, point the domain at the new host instead. The redirect isn’t available on WordPress.com sites with plugins installed.

Will I lose my subscribers?

Your subscribers don’t move with the export file, but Jetpack’s subscription migration tool can move email subscribers and WordPress.com followers. You need Jetpack on the new site and the WordPress.com account that owns the old one. Followers then see new posts only in the Reader, and likes don’t transfer.