Skip to content
CleanGlyph home

Markdown to HTML Converter & Live Preview

Convert Markdown to HTML and see the result as you type. CommonMark and GitHub Flavored Markdown tables, task lists, strikethrough and autolinks become clean, sanitized HTML you can copy. Everything runs locally in your browser.

Your text never leaves your browser.

0 B of 256 KiBAnalyzed as you type

Output

Type or paste Markdown, or load the example, to see the rendered preview and HTML.
Waiting for inputPreview is sandboxed

How to convert Markdown to HTML

Type or paste Markdown, or load the example. The converter parses it with a CommonMark parser plus GitHub Flavored Markdown extensions. Switch between Preview and HTML to see the rendered result or its source. Copy HTML always copies the exact fragment shown in the HTML view.

Markdown input
## Install

Run the [CLI](https://example.com/cli) and check the **output**.

- [x] Node 20 or later
- [ ] ~~Python 2~~ not required
HTML output
<h2>Install</h2>
<p>Run the <a href="https://example.com/cli">CLI</a> and check the <strong>output</strong>.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" checked disabled> Node 20 or later</li>
<li class="task-list-item"><input type="checkbox" disabled> <del>Python 2</del> not required</li>
</ul>

Supported Markdown syntax

Headings, paragraphs, emphasis, links, images, blockquotes, nested ordered and unordered lists and fenced code follow CommonMark. GFM adds pipe tables with column alignment, task lists such as - [x] done, ~~strikethrough~~, bare URLs like www.example.com as autolinks, and footnotes. Code keeps its spaces, tabs and blank lines; line endings use LF. Characters such as < and & are escaped so they appear as text. A fence label like js becomes class="language-js".

Raw HTML and the safe HTML policy

Markdown allows raw HTML, but this converter omits it. HTML blocks such as <div>…</div> are removed entirely, and inline tags such as <span> are dropped while the text around them is kept. The result is then checked against an explicit allowlist of elements and attributes: links keep http, https, mailto and relative URLs, images keep http, https and relative sources, and schemes such as javascript: or data: are removed. Task list checkboxes are always disabled.

How the preview stays isolated

The preview is built from the same conversion and rendered in a sandboxed frame whose content security policy blocks scripts, images, fonts and every other request. Links appear as underlined text that cannot be followed, and images appear as placeholders showing their alt text. The HTML view always contains the exact source you copy, including the original link and image URLs.

Privacy and browser-based processing

Everything runs in your browser; your Markdown and HTML are never uploaded, logged or stored. Going the other way? Use the HTML to Markdown Converter to turn existing HTML into clean Markdown. To encode or decode individual characters, use the HTML Entity Encoder & Decoder.

Frequently asked questions

How do I convert Markdown to HTML?

Type or paste Markdown into the editor, or load the example. The rendered preview and the HTML source update a moment after you stop typing. Switch between the Preview and HTML views, then choose Copy HTML to copy the exact fragment.

Does the converter support GitHub Flavored Markdown?

Yes. Alongside CommonMark headings, emphasis, links, images, blockquotes, nested lists and fenced code, it supports GFM tables with column alignment, task lists, strikethrough, autolinks and footnotes.

What happens to raw HTML inside my Markdown?

Raw HTML is omitted. HTML blocks are removed entirely, and inline tags are dropped while the text between them is kept as escaped text. This keeps the copied fragment free of scripts, styles and event handlers.

Are links and images kept in the copied HTML?

Yes. Links to http, https and mailto URLs, relative links, and http, https or relative image sources are kept. Unsafe schemes such as javascript: and data: are removed from href and src attributes. The preview shows links as inert text and images as alt-text placeholders, so nothing is loaded or followed.

Is there a size limit?

Input is limited to 256 KiB of UTF-8 text. Larger input is rejected and any previous output is cleared, so split long documents into parts.

Is my Markdown uploaded?

No. Parsing, sanitising and previewing all happen in your browser. Your Markdown and the generated HTML are never sent to a server, stored or included in analytics.