HTML to Markdown Converter

Your input stays in your browser and is never sent.

Convert HTML files (.html / .htm) or pasted HTML to Markdown, keeping headings, tables, lists, links and code. Conversion runs entirely in your browser.

What the HTML to Markdown Converter Can Do

This free online tool converts HTML files (.html, .htm) or pasted HTML code to Markdown entirely in your browser. The HTML you load is never sent anywhere, and headings, tables, lists, links, code blocks and other main formatting carry over to the Markdown.

Load HTML files (.html, .htm)
Drag and drop or click to choose saved .html, .htm or .xhtml files and convert them to Markdown. Several files can be converted at once and the results saved together as a ZIP.
Paste HTML code as a second way in
Paste HTML copied from a blog editor or developer tools into the input box and it is converted to Markdown. A full page source or just an article body both work.
Formatting kept in the Markdown: headings, tables, lists and code
H1–H6 headings, paragraphs, bullet and numbered lists, tables (GFM pipe syntax), links, inline code (`code`), code blocks (```), bold and italics are kept. script and style tags are removed automatically for safety.

Convert HTML to Markdown in 3 Steps

  1. Drag and drop .html or .htm files, or paste HTML source into the "Paste HTML" tab
  2. Check the settings, convert, and review the result in the preview
  3. Copy it to the clipboard or save it as an .md file

The HTML Files You Load Are Never Sent Anywhere

How the HTML to Markdown conversion stays in your browser (turndown)

The tool uses a library called turndown to read the HTML directly in your browser and turn it into Markdown on the spot. Neither the contents of HTML files nor pasted code is sent to a server.

Why HTML you can't share is safe to convert

Because no network traffic happens, you can convert articles exported from an internal CMS, unpublished drafts or HTML design documents without worry. Once you close the tab, nothing is left behind.

When HTML to Markdown Conversion Helps

  • Moving HTML blog postsWhen moving existing HTML posts to another blogging platform, turn just the article body into Markdown and paste it in.
  • Cleaning up before giving it to AIBefore passing fetched HTML to a generative AI, turn it into clean Markdown without the tag noise.
  • Importing into a knowledge baseBring HTML exported from an internal CMS or WordPress into Obsidian or Notion as Markdown.

Converting Other Formats to Markdown

Frequently Asked Questions About the HTML to Markdown Converter

Does it support .htm files too?

Yes. .html, .htm and .xhtml files can all be dropped in and converted to Markdown.

Can I paste HTML code instead of loading a file?

Yes. Besides loading files, the "Paste HTML" tab accepts a full page source or just part of an article.

Which formatting is kept after conversion?

Headings (H1–H6), bullet and numbered lists, tables (GFM pipe syntax), links, inline code and code blocks (```) are kept.

Are the HTML files I load sent to a server?

No. Everything happens inside your browser, so neither loaded files nor pasted HTML is sent to or stored on a server.

Does converting HTML to Markdown reduce LLM token usage?

Usually by a lot. Markdown drops tags, attributes and inline styles and keeps the text and its structure, so the same content takes far fewer tokens.

Can I use it to migrate a WordPress post to Markdown?

Yes. Paste the post's HTML or save the page as .html and add the file. Check embedded media and shortcodes afterwards, because they have no Markdown equivalent.