Markdown to HTML
Paste markdown and get the HTML it produces. It is the same GitHub-flavoured output the viewer renders, sanitized and ready to paste into a page or a CMS.
The result appears here as you type.
How it works
- Your markdown is parsed as GitHub-flavoured markdown: tables, task lists, strikethrough, autolinks and fenced code.
- The result passes through a sanitizer that strips scripts, event handlers and javascript: URLs, so pasting it into your own site cannot import someone else's code.
- Headings get an id, prefixed with md- so it cannot collide with the ids already on your page or clobber a browser property. Anchor links to sections work wherever you paste the result.
What it does not do
- The HTML carries no styling. It is structure only, which is what you want when your site already has a stylesheet.
- YAML front matter is treated as metadata and left out of the HTML.
Questions
Is my markdown uploaded?
No. The conversion runs in your browser with code that is already part of this page. There is no upload endpoint on this site, so the file cannot reach us even in principle. Open your browser's network tab and watch: no request carries your document.
Is the HTML safe to paste into my site?
Safer than most, because it is sanitized here: script tags, inline event handlers, iframes and javascript: URLs are removed before you ever see the output. Review anything that came from a source you do not trust regardless.
Does it support mermaid diagrams?
The viewer draws them, but the HTML output keeps the mermaid block as a code block. Rendering it on your own site needs mermaid there too, which is the same reason a diagram that works on GitHub is plain text on npm.