Markdown to HTML
Render Markdown to HTML with raw HTML escaped rather than passed through — because pasted text is untrusted text.
Runs entirely in your browser
Loading tool...
How to use
- Paste Markdown — a README, a note, a changelog.
- Switch to Preview to see it rendered, or stay on HTML to read the markup.
- Turn on the full document wrapper if the result is going to be a standalone file.
- Copy or download the result.
Features
- Headings, emphasis, lists, quotes, code blocks, rules, links, images and pipe tables.
- Raw HTML escaped, so a pasted document cannot inject markup into wherever the output lands.
- javascript: links and image sources dropped, keeping the visible text.
- Language classes on fenced code blocks, ready for a highlighter.
- Runs entirely in your browser.
Frequently asked questions
- Why is my inline HTML not working?
- Because it is escaped on purpose. Markdown allows raw HTML, and honouring that turns any converter into an injection route: the output is usually rendered somewhere — a CMS, an email, a page — and whatever a stranger's README contained runs there. The trade is one rarely used feature for the removal of a whole class of problem, and this page says so rather than surprising you.
- Is this CommonMark?
- No, and it does not claim to be. It handles the constructs people actually write — headings, emphasis, code, lists, quotes, links, images, rules, tables — and not the specification's long tail of nested-reference edge cases. For a documentation pipeline use a full implementation; for converting a document you are reading, this is what you need.
- What happens to a javascript: link?
- The link text is kept and the link is dropped, so the meaning survives and the hazard does not. Only http, https, mailto and relative URLs become anchors. Escaping the text alone would not close this: an href is a second, separate way in.
Related tools
Turn a page or an editor's output into clean Markdown — walking the parsed DOM, not matching tags with patterns.
Paste from a spreadsheet or a CSV and get a Markdown table whose columns line up — or straighten one that no longer does.
Escape text so a browser renders it instead of running it — and read entities back into the characters they stand for.
Fix text that has been through a PDF, an email client or a word processor — one decision per switch.