Markdown ⇄ HTML Converter
Convert Markdown to HTML or HTML to Markdown online for free, either direction, with a live preview. Supports tables, strikethrough, and task lists. Nothing sent to a server.
Preview
Your files are processed locally in your browser and are not uploaded to our servers.
How to use Markdown ⇄ HTML Converter
- 1
Choose a direction — Markdown → HTML or HTML → Markdown.
- 2
Type or paste your source into the left box.
- 3
The converted result updates live on the right — toggle between a rendered preview and the raw HTML source for the Markdown → HTML direction.
- 4
Copy the result or download it as a file.
Common uses
- Converting a Markdown README or note into HTML to paste into a CMS or email
- Turning HTML copied from a webpage or doc into clean Markdown for a README or wiki
- Previewing how Markdown will actually render before committing it
Supported formats and limitations
Accepts text, up to one file at a time.
- Supports GitHub-flavored Markdown (tables, strikethrough, task lists, autolinks) — some Markdown flavors have extensions this doesn't cover.
- Any HTML input is sanitized before conversion or preview — script tags and event handlers are stripped, so this can't be used to preview or convert active/interactive HTML.
- A round trip through both directions preserves structure and formatting, but isn't guaranteed to reproduce byte-identical source — whitespace and minor formatting choices can shift.
Frequently asked questions
No. Conversion happens entirely in your browser using `marked` and `turndown` — nothing is sent to a server.
Yes — tables, strikethrough, task lists, and autolinks all convert correctly in both directions.
Yes — all HTML (whether typed directly or produced from Markdown) is sanitized with DOMPurify before it's ever rendered or converted, so script tags and event handlers can't execute.
The structure and formatting round-trip correctly, but not necessarily byte-for-byte — things like exact whitespace or list-marker style can come out slightly different.