How the Markdown ↔ HTML converter works

Switch between Markdown and HTML in one tool — paste on the left, get converted output on the right, instantly.

Sometimes you have Markdown and need HTML for an email template or CMS. Sometimes you have HTML from a WYSIWYG editor and want clean Markdown for a README. The Markdown Converter handles both directions in one page.

Try it — switch between Markdown → HTML and HTML → Markdown

Markdown → HTML

Paste Markdown in the left panel. The right panel shows the equivalent HTML — headings, bold, italic, links, lists, blockquotes, fenced code blocks, and horizontal rules. HTML special characters are escaped so the output is safe to paste into a document.

Supported syntax includes # headings, **bold**, *italic*, [links](url), unordered and ordered lists, > blockquotes, and ``` fenced code ```.

HTML → Markdown

Switch to the HTML → Markdown tab and paste HTML source. The converter uses the browser's DOMParser to walk the DOM tree and emit Markdown. It handles headings, paragraphs, lists, links, images, tables, code blocks, and inline formatting.

Converted output is a starting point — complex nested HTML may need manual cleanup. For one-off conversions from exported CMS content, it's usually good enough.

When to use which tab

  • MD → HTML — writing docs that need to land in HTML email, a static site generator that accepts HTML snippets, or previewing how Markdown renders.
  • HTML → MD — migrating blog posts, converting Notion/Google Docs exports, or cleaning up HTML from a rich-text editor.

Related tools

For HTML-only conversion, see HTML to Markdown. For writing Markdown with a live preview and toolbar, try the Markdown Editor.