Skip to content
migration.tools
WordPress to Markdown

WordPress to Markdown converter

Leaving WordPress for a static site generator or headless setup? Upload the standard export file and get one Markdown file per post and page, with front matter your new stack understands, a list of every image to re-host, and a ready-made map of old URLs to new paths.

Options

WordPress export (.xml)

Markdown files

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1In WordPress, go to Tools → Export → All content and download the .xml file.
  2. 2Drop it here and choose the front matter format your generator uses.
  3. 3Download the ZIP: posts/, pages/, url-map.csv and media-urls.txt.

What's in the ZIP

Each post becomes posts/slug.md and each page pages/slug.md. Front matter carries the title, publish date (UTC), slug, author, categories, tags, excerpt as description, featured image and — as aliases — the post's original permalink, which Hugo turns into redirects automatically.

Block-editor markup and classic-editor HTML are both converted to clean Markdown: headings, lists, links, images, code blocks, tables and blockquotes. Classic posts that rely on WordPress adding paragraph tags at render time are handled too.

url-map.csv lists every old permalink next to its new path, ready for the redirect generator. media-urls.txt lists every image referenced, so you can download them in one go with wget -i media-urls.txt.

What doesn't come across

Shortcodes such as [gallery] or [contact-form-7] are plugin features with no Markdown meaning. They are left in place as text and counted in the notes, so you can search for them and swap in your new platform's components.

Comments, users, menus and plugin settings aren't part of a content migration and are skipped. Images keep pointing at the old site until you re-host them and update the URLs.

Questions

Which static site generators does the output work with?

Any that read Markdown with front matter: Hugo, Astro, Jekyll, Eleventy, Next.js with MDX or Contentlayer, Gatsby, Docusaurus, VitePress. Pick TOML for Hugo if you prefer it; YAML works everywhere.

Can I convert only some post types?

Yes. Choose posts, pages or everything. “Everything” includes custom post types such as products or portfolio items, each in its own folder.

My export is split into several files. What do I do?

Drop them all at once. Each is converted in turn and the results are combined into one ZIP.

Guides that use this tool