The Wild

How to Migrate from Medium to WordPress

· 5 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating from Medium to WordPress moves your articles, images, and metadata to a self-hosted site you fully control. This guide walks you through exporting your Medium content, importing it into WordPress, and fixing common issues so your posts arrive intact.

What You'll Need

  • A WordPress site (self-hosted or managed) with admin access.
  • The WordPress Importer plugin (free, from the WordPress repository).
  • Your Medium account credentials to access the export tool.
  • Optional: a local backup of your Medium posts in case the import fails.

Step-by-Step

  1. Export from Medium: Log in to Medium, go to Settings (bottom left), scroll to Account, and click Export content. Medium will email you a link to a ZIP file containing your posts, images, and a .html file. Download and unzip it.
  2. Prepare your WordPress site: Log in to your WordPress admin dashboard. Go to Tools → Import. If you don't see WordPress, click Install Now to add the WordPress Importer plugin.
  3. Run the importer: Click Run Importer after installation. Choose the .html file from the Medium export (not the ZIP). Upload it and click Upload file and import.
  4. Assign authors: WordPress will ask who to attribute the posts to. Select your existing WordPress user, or create a new one for the import. Check the box to download and import file attachments (this pulls images from Medium).
  5. Submit and wait: Click Submit. The importer processes each post. Depending on the number of posts, this can take a few minutes. Do not close the browser tab.
  6. Verify posts: Go to Posts → All Posts to see your imported content. Open a few posts to check that text, images, and formatting look correct.
  7. Check images: Medium stores images on its CDN. The importer usually downloads them, but if any are missing, you'll need to manually re-upload them. Use the Media Library to add images and update the post URLs.
  8. Fix internal links: Medium links to other Medium posts with relative URLs. After import, search for medium.com in your posts and replace with your new WordPress domain, or update them to point to the correct internal posts.
  9. Set up redirects (optional but recommended): If you have an existing audience on Medium, create 301 redirects from your old Medium URLs to the new WordPress URLs. Use a plugin like Redirection to map old paths to new ones.
  10. Update permalinks: Go to Settings → Permalinks and choose a structure like /%postname%/ to make your URLs clean and similar to Medium's.
  11. Review metadata: The importer brings over tags and categories. Check that they are assigned correctly. You may need to merge duplicate tags or create a proper category hierarchy.
  12. Delete the import file: After successful import, delete the .html file from your server (usually in /wp-content/uploads/) to avoid security issues.

Common Mistakes

  • Importing the ZIP file directly: The importer expects the .html file, not the ZIP. Unzip first.
  • Skipping the attachment download: If you don't check the box to download attachments, images will remain on Medium's CDN and may break if Medium changes URLs.
  • Not checking for broken links: Medium's internal links and image URLs often need manual fixing after import.
  • Ignoring post formats: Medium's formatting (like pull quotes) may not map perfectly. Review each post for layout issues.
  • Forgetting to set up redirects: Without redirects, your old Medium readers get 404 errors on your new site.

Tips

  • Before importing, clean up your Medium posts: remove drafts you don't want, and note any posts you plan to delete.
  • Use a staging site first if you're nervous. Import to a test WordPress install, verify everything, then do the real migration.
  • Back up your WordPress site before importing, so you can restore if something goes wrong.
  • After import, update your WordPress permalinks and set up a custom canonical URL for each post to avoid duplicate content issues.
  • If you have many posts, run the import in batches by splitting the HTML file (but this is rarely necessary for typical blogs).

Troubleshooting

  • Import fails with a timeout: If the import times out, increase PHP memory and execution time in your hosting control panel, or contact your host. Alternatively, split the HTML file using a text editor into smaller parts and import each separately.
  • Images not downloading: If images are missing, check the Media Library. You can manually download images from Medium and re-insert them. Use a plugin like Auto Upload Images to fetch external images automatically.
  • Posts appear but with broken formatting: Medium uses custom HTML classes. The importer strips some. You may need to manually reformat headings, lists, and quotes in the block editor.
  • Duplicate posts: If you run the importer twice, you'll get duplicates. Delete duplicates manually or use a plugin like Duplicate Post to remove them.
  • Import says 'file not found': Ensure the file path is correct and that the file is readable. Try re-uploading the HTML file via the Media Library first, then import from the URL.
  • Author assignment issues: If your WordPress user doesn't exist, create one during import. If posts end up under 'admin', reassign them in bulk from the Posts screen.

Frequently Asked Questions

Will my Medium posts keep their exact URLs?

No. WordPress uses its own permalink structure. You'll need to set up redirects from your old Medium URLs to the new ones to preserve SEO and bookmarks.

Can I import my Medium publications (like a magazine)?

Yes, but the importer treats each post individually. You'll need to recreate the publication structure using WordPress categories or a custom post type.

Do I lose my Medium followers?

Yes, followers don't transfer. You'll need to notify your audience via email or social media and rebuild your subscriber list on WordPress.

Will my Medium images be stored on my own server?

If you check the attachment download box during import, WordPress will fetch and store images locally. Otherwise, they remain on Medium's CDN.

Can I migrate only selected posts?

The standard importer brings everything. To select posts, you can edit the HTML file to remove unwanted posts before importing, or delete them after import.

Is there a paid service that does this automatically?

Yes, some migration plugins and services offer one-click imports, but they often cost money and may not handle all formatting. The free method above works for most users.