Skip to main content

HTML to Markdown Converter

Runs locally

Convert real HTML with headings, lists, links, tables and code blocks to clean Markdown.

What is HTML to Markdown Converter?

Transform HTML pages, rich-text snippets, and documentation markup into clean Markdown using Turndown. Accurately preserves headings, nested lists, links, images, blockquotes, and fenced code blocks.

How to use HTML to Markdown Converter

  1. Step 1

    Paste HTML markup into the input editor.

  2. Step 2

    Choose ATX (#) or Setext headings and bullet marker style.

  3. Step 3

    Copy or download the generated .md file.

Features

  • Full DOM-based Turndown engine (handles nested lists, links, images, code blocks)
  • Configurable ATX headings and fenced code blocks
  • Strips script/style noise cleanly
  • 100% browser-based

Example

Input

<h2>Title</h2><ul><li>One</li><li><a href="/a">Two</a></li></ul>

Output

## Title

* One
* [Two](/a)

Converts nested HTML lists and anchors into idiomatic Markdown.

Frequently asked questions

Does it handle nested lists and code blocks?

Yes, Turndown parses the DOM tree rather than relying on fragile regexes.

Are script tags stripped?

Yes, scripts and style tags are ignored during conversion.

Can I convert Markdown back to HTML?

Yes, use Markdown to HTML or Markdown Editor.

Is my HTML uploaded?

No, everything runs locally.