Convert HTML to clean Markdown.

h1–h6, links, lists, tables and code blocks mapped to proper Markdown. No boilerplate, no inline styles.

Private by design — never stored
3 of 3 free conversions left today
PDF
DOCX
XLSX
Images

Your files are never stored: documents convert in your browser where possible, and anything sent to our AI travels encrypted (HTTPS) and is discarded after processing. Privacy Policy

HTML is the closest cousin to Markdown, but real-world pages are full of wrappers, navigation and inline styles. CleanMD keeps the semantic content — headings, paragraphs, links, lists, tables, code blocks — and drops the noise, producing Markdown that reads like it was written by hand.

How it works

  1. 1Drop an .html file in the converter above.
  2. 2Semantic tags (h1–h6, ul/ol, table, pre/code, a) are mapped to their Markdown equivalents; boilerplate is dropped.
  3. 3Preview the result and download the .md file.

Before and after

article.html
<article>
  <h1>Getting started</h1>
  <p>Install the CLI with <code>npm i -g tool</code>.</p>
  <h2>First steps</h2>
  <ul>
    <li>Create a <a href="/docs/project">project</a></li>
    <li>Run <code>tool dev</code></li>
  </ul>
</article>
converted.md
# Getting started

Install the CLI with `npm i -g tool`.

## First steps

- Create a [project](/docs/project)
- Run `tool dev`

Frequently asked questions

Does it keep links and code blocks?

Yes. Anchors become [text](url) links, <pre>/<code> become fenced code blocks and inline code, and tables become Markdown tables.

What happens to navigation menus and scripts?

Non-content elements (scripts, styles, boilerplate) are dropped so the Markdown contains only the readable content.

Can I convert a live URL?

Yes — paste the page URL in the converter (or use the URL to Markdown page) and it converts for free, no file needed.

Is the file uploaded?

No. HTML conversion runs entirely in your browser and nothing is stored.

Other converters

Convert HTML to Markdown online — free & private