onlinetools.dev

Markdown ↔ HTML Converter

Render Markdown to HTML with live preview, or turn HTML back into Markdown

Runs locally
loading…
About this tool

Write or paste Markdown and see both the rendered preview and the generated HTML side by side — headings, GFM tables, task-list-style bullets, fenced code blocks and strikethrough included. The reverse direction converts existing HTML into clean Markdown with ATX headings, dash bullets and fenced code, which is the fastest way to migrate old CMS content into a docs repo.

The preview is sanitized before rendering: scripts, iframes and event-handler attributes are stripped, so a shared link carrying hostile markup cannot execute anything in your browser. The HTML output box always shows the raw conversion for copying into templates or emails.

Conversion and preview run locally. Draft release notes with unannounced feature names stay on your machine.

Frequently asked questions

Which Markdown flavor is this?
CommonMark plus the GitHub extensions people actually use: tables, strikethrough and autolinked URLs. Soft line breaks stay soft — a single newline does not become <br>, matching GitHub's rendering of documents.
Why does the preview differ from the raw HTML output?
The preview passes through a sanitizer that removes script tags, inline event handlers and javascript: URLs before rendering. The output box bypasses sanitization because it is text, not rendered markup — sanitize downstream if you embed user-supplied HTML.
How faithful is HTML → Markdown?
Structural elements — headings, lists, links, emphasis, code, blockquotes, images — convert cleanly. HTML with no Markdown equivalent (nested tables, divs with classes, inline styles) passes through as raw HTML or loses its styling, so a quick read-through afterward is worth it.
Can I use the generated HTML in an email?
Yes — the output is plain semantic HTML with no classes or external stylesheets, which is exactly what email clients tolerate best. Inline any styling you need on top.
Related tools