OpenReplay Logo
12k

Markdown ⇄ HTML converter

Convert Markdown to HTML and HTML back to Markdown, with a live preview and sanitized output — processed locally, nothing leaves your browser.

Processed locally

About this tool

Markdown is a lightweight markup syntax that maps directly onto a subset of HTML: headings, emphasis, links, lists, code blocks, blockquotes and tables. This converter renders Markdown to HTML with GitHub-flavored Markdown (GFM) enabled — so pipe tables and strikethrough work — then runs the result through DOMPurify before it ever touches the page, stripping scripts and unsafe attributes. The reverse direction walks the parsed HTML DOM and emits clean Markdown, turning GFM tables back into pipe syntax and keeping fenced code-block languages intact.

Use it to turn a README or changelog draft into HTML you can paste into a CMS, to sanity-check exactly what HTML your Markdown produces via the HTML view, or to reverse-engineer Markdown from a chunk of HTML you pasted from a docs page or rich-text editor. The Preview / HTML toggle lets you eyeball the rendering and grab the source in one place, and everything updates live as you type.

The HTML output is sanitized with DOMPurify before rendering, so scripts and event-handler attributes from your Markdown are stripped — the preview reflects safe HTML, not the raw conversion.

Frequently asked questions

Does this converter support GitHub-flavored Markdown (GFM)?

Yes. GFM is enabled, so pipe tables, fenced code blocks with language hints, and ~~strikethrough~~ are all converted. The HTML-to-Markdown direction also emits GFM pipe tables.

Is the generated HTML safe to use directly?

The HTML is sanitized with DOMPurify, which removes scripts, event handlers, and other unsafe markup. It is safe to render, but always treat any HTML you did not author with care before publishing it.

Is my Markdown or HTML sent to a server?

No. Both directions run entirely in your browser using JavaScript — the marked parser, DOMPurify, and a client-side DOM walker. Nothing is uploaded or stored.