Convert WordPress HTML to Markdown — Free Online Tool
WordPress exports posts with custom shortcodes, figure/caption elements, and block editor markup. This converter handles the common patterns and produces clean Markdown.
HTML Input
Markdown Output
Markdown will appear here…FAQ
How do I export a WordPress post as HTML?
In the WordPress block editor: click the three-dot menu (⋮) → 'Code editor' to see the HTML. In the classic editor: click the 'Text' tab. You can also use the WordPress REST API to get the rendered HTML: GET /wp-json/wp/v2/posts/{id}.
What happens to WordPress shortcodes?
Shortcodes like [gallery] or [caption] are not executed during HTML conversion — they appear as raw text. If you export the rendered HTML (after WordPress processes them), the output will be correct HTML that converts cleanly.
Can I migrate my entire WordPress blog to a Markdown-based static site?
Yes — this is a common migration path (WordPress → Hugo, Jekyll, Astro, etc.). Export your posts via WordPress Tools → Export, use wp2md or similar tools for bulk conversion, then use this tool to clean up individual posts.
Convert any HTML to Markdown — paste your own content in the full converter.
Open full converter →