HTML to Markdown

Convert HTML into clean Markdown text online for free, in your browser.

How to use

  1. 1Paste your HTML.
  2. 2Click Convert to Markdown.
  3. 3Copy or download the Markdown output.

Features

  • Converts headings, lists, links and more
  • Fenced code block output
  • Runs entirely in your browser

Supported formats

Input: HTMLOutput: Markdown

Privacy

Your HTML is converted locally in your browser and is never sent to our server, and is never executed on the page.

About this tool

HTML to Markdown converts HTML markup into clean Markdown text using the Turndown library, which parses the HTML structurally — never renders or executes it — and maps each element onto its closest Markdown equivalent. This is the fix for content copied out of a rich-text editor or a web page, where pasting directly brings along inline styles and wrapper divs that Markdown-based tools don't want. For the reverse direction, see Markdown to HTML.

Frequently asked questions

What HTML elements are supported?

Common elements convert cleanly, including headings, paragraphs, bold/italic, lists, links, images, blockquotes and code blocks.

Does this run any scripts in the pasted HTML?

No, the HTML is only parsed to extract structure and text for conversion — it is never rendered or executed on the page.

Is my HTML sent to a server?

No, conversion happens entirely in your browser using the Turndown library.

Why does some content come out as raw HTML instead of Markdown?

Markdown has no equivalent for things like a custom CSS class, an inline style attribute, or a complex nested table — there's no Markdown syntax to represent them. When Turndown hits one of those, it falls back to embedding the original HTML inline rather than losing the information entirely.