FileToolsHub logo

HTML to Markdown

Convert HTML to Markdown with hash-mark headings and fenced code blocks.

Processing: runs in your browser, nothing uploaded

✓ Free to use✓ No sign-up needed✓ Nothing to install

About HTML to Markdown

A CMS export, a copied article, or an old email often arrives as HTML when you need Markdown for a repo or a notes app. HTML to Markdown rewrites the tags into that source.

Headings and code

Headings come out in the ATX style, with hash marks, not as underlined setext headings. Code blocks are fenced. Links and emphasis follow the usual Markdown spelling. Markdown to HTML is the opposite direction when you need tags again. If you only want to see the page, HTML Preview renders the markup. HTML Formatter only indents tags. Markdown Preview is for Markdown you already have.

What gets simplified

Turndown-style conversion keeps the readable content and drops a lot of layout. Nested tables, scripts, styles, and class-heavy divs will not survive as a perfect twin of the page. A navigation bar and a footer copied with the article will show up as extra lines unless you delete them first. Paste the article fragment, not the whole document, when you can. Inline styles are not a Markdown feature, so color and font choices disappear. That is usually what you want for a repo.

Check the links and the lists

Relative URLs stay as they were. A list that was built with manual line breaks instead of li tags may become a paragraph. Images become Markdown image syntax only when the tag is a normal img with a src. After you copy the result, open it in Markdown Preview if you need to see whether a heading level or a link target survived.

How to use

  1. 1

    Paste the article HTML, not the whole page chrome if you can avoid it.

  2. 2

    Run the conversion. Headings come out with hash marks and code comes out fenced.

  3. 3

    Copy the Markdown and spot-check links and lists in Markdown Preview.

Privacy

The HTML is converted in the browser. The markup is not uploaded.

Frequently asked questions

How are headings written?

As ATX headings with hash marks, not as underlined setext headings.

Will my CSS and layout survive?

No. Scripts, styles, and most layout divs are dropped or simplified. Paste the article fragment when you can.

How are code blocks written?

As fenced code blocks.

What if I need HTML again later?

Keep a copy of the HTML, or run Markdown to HTML on the result.

Complex HTML?

Works best on semantic HTML. Nested layouts may simplify.

Runs locally?

Yes, conversion happens in your browser.

Browse all Text Tools · Sitemap