Skip to content

Tools/HTML ↔ MD/HTML to Markdown

HTML to Markdown

Need a CMS blob or email HTML as Markdown for git? This page opens as HTML → Markdown. Complex layouts and inline styles will not all survive — that is expected.

Same converter: all directions · Markdown to HTML

Loading tool…

How to use HTML to Markdown

  1. 1. Paste HTML. Paste markup, or drop an .html file. It never leaves the browser.
  2. 2. Confirm HTML → Markdown. This landing page selects that direction for you.
  3. 3. Copy the Markdown. Clean up data-attributes and leftover spans if the source was messy.

About this tool

“HTML to markdown” is a different job from generating HTML. Turndown walks the DOM you paste and emits Markdown. It is lossy on layout, which is why this page exists as its own URL instead of hiding behind a dropdown.

What you will lose

Inline styles, many data-* attributes, and deeply nested layout tables. Semantic content — headings, lists, links, code — usually round-trips. Treat the output as a draft.

When to keep HTML

Marketing pages and email templates belong in HTML. Use this converter for documentation and tickets, not for pixel-perfect newsletters.

Code examples

MD

# Title

A **bold** line.

This is one direction of the shared converter. The editor is the same; the title and default direction match this search.

Frequently asked questions

Related tools

All tools