Markdown to HTML Converter - Convert Markdown to Clean HTML
Turn Markdown into HTML you can paste anywhere
Type or paste Markdown on the left. The HTML Code tab shows the markup to copy into a CMS, an email template or a static page, and the Preview tab shows how it renders. It uses marked with GitHub Flavoured Markdown turned on, then cleans the result with DOMPurify.
Example
## Install
Run `npm i` first.
- [x] tables
- [ ] ~~old flag~~ becomes
<h2>Install</h2>
<p>Run <code>npm i</code> first.</p>
<ul>
<li><input checked="" disabled="" type="checkbox"> tables</li>
<li><input disabled="" type="checkbox"> <del>old flag</del></li>
</ul> Things to know
-
A single line break becomes
<br>, as in GitHub comments. Standard Markdown would join the lines into one paragraph, so leave a blank line between paragraphs if the HTML is going somewhere that matters. -
Raw HTML in your Markdown is allowed, but DOMPurify removes
<script>,onclickand other event attributes, andjavascript:links. -
Headings do not get
idattributes, so add them yourself if you need anchor links.
To read a document rather than extract its HTML, the Markdown preview is simpler.
Related Tools
Markdown Preview
Write Markdown and see the rendered HTML output in real time.
Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences, or words.
List Deduplicator
Remove duplicate lines from a list with options for case sensitivity and sort order.
List Diff / Compare
Compare two lists and find items unique to each, shared between both, or missing from one.