Skip to content

Tools/HTML ↔ MD

HTML ↔ MD

Convert Markdown to HTML and HTML back to Markdown locally.

Also: Markdown to HTML · HTML to Markdown

Loading tool…

How to use HTML ↔ MD

  1. 1. Pick a direction. MD → HTML or HTML → Markdown.
  2. 2. Paste. Drop a .md or .html file.
  3. 3. Copy the output. No live preview sandbox in this version.
  4. 4. Review HTML. Do not blindly inject untrusted HTML into a page.

About this tool

Markdown is how READMEs and docs start. HTML is what browsers and email still need. A local converter means a confidential draft does not hit a pastebin.

Lossy HTML

Turndown cannot preserve every data-attribute and inline style. Complex layouts belong in HTML.

Markdown dialect

marked follows CommonMark-ish rules. GitHub flavored tables survive better if you use the table converter.

Code examples

MD

# Title

A **bold** line.

Frequently asked questions

Related tools

All tools