About Markdown To HTML
Paste Markdown or open a .md file and get the HTML for it as you type, ready to copy into a CMS, an e-mail template or a static page, or to download as an .html file.
GitHub Flavored Markdown is on by default, so tables, task lists, strikethrough and bare links convert too. Any raw HTML in the Markdown is kept only if it is safe: scripts, event handlers, inline styles, forms and frames are removed, and the tool tells you when it removed something.
How it works
- The Markdown is rendered by the marked library, following CommonMark plus the GitHub extensions when they are switched on.
- The HTML then passes through DOMPurify, which removes anything that could run code or change the page around it. Links, images, headings, lists, tables and code blocks are kept exactly as written.
- A task-list box becomes the symbol ☑ or ☐ with a spoken name, since a disabled checkbox would be removed along with other form controls.
- "Full page" wraps the result in a complete HTML document with a light default style, titled after the first heading.
Questions
Why did my <iframe> or <style> disappear?
They are removed on purpose, together with scripts, event handlers, inline style attributes and forms, so that the HTML is safe to publish even when the Markdown came from someone else. A note under the result says when this happened.
Are code blocks highlighted?
No. A fenced block becomes <pre><code class="language-js"> (or whichever language you named), which highlighters such as Prism or highlight.js pick up on the page where you use it.
Do headings get id attributes for links?
No. Headings are written without ids. If you need anchors, add them in your site's templates or by hand.
How much Markdown can it convert?
Up to 2 MB at a time, which is a book-length document. The conversion happens in your browser and nothing is uploaded.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.