Markdown to HTML Converter
Convert Markdown into clean, ready-to-use HTML with a live preview.
What is Markdown → HTML?
The Markdown to HTML converter parses Markdown into standards-compliant HTML using the battle-tested `marked` parser, with a live rendered preview alongside the raw HTML output — ideal for READMEs, docs and blog content.
How it works
`marked` parses your Markdown client-side per the CommonMark spec (with GitHub-flavored tables and strikethrough). Raw HTML embedded in the source is sanitized by default — scripts, event handlers and javascript: URLs are stripped — and you can toggle sanitization off.
- Paste Markdown. Headings, lists, links, bold/italic, code blocks, blockquotes, tables and strikethrough are all supported.
- Preview live. The rendered preview updates as you type. Toggle sanitization to strip unsafe embedded HTML.
- Copy or download. Copy the generated HTML to your clipboard or download it as a .html file.
Examples
README to HTML
Paste a README in Markdown and get clean HTML ready to embed in a non-Markdown-aware system.
Tables and strikethrough
GitHub-flavored tables (pipe syntax) and ~~strikethrough~~ are rendered correctly.
Common mistakes
Raw HTML in Markdown
Markdown permits embedded raw HTML. Sanitization (on by default) strips scripts and event handlers; disable it only when you trust the source.
Indented code blocks
A 4-space indented line is treated as a code block by CommonMark — use backticks for inline code.
Alternatives
HTML to Text
The inverse direction — strip tags from HTML and keep the plain text.
CSV to Markdown
Turn tabular CSV data into a Markdown table.
Frequently asked questions
Which Markdown dialect is supported?
CommonMark plus GitHub-flavored extensions — pipe tables and strikethrough. Nested lists, lazy blockquote continuation and reference-style links are handled by the spec-compliant parser.
Is sanitization safe to turn off?
Only for trusted input. With it off, raw HTML in your Markdown passes through untouched, which could include scripts.