Markdown to HTML
Write in Markdown and get the HTML to paste into a page, a template or an email. Headings, lists, links, code and tables are all supported.
Your text stays in this browser tab. Nothing is uploaded, saved or logged.
How the Markdown to HTML works
The conversion uses the marked parser, which follows the CommonMark specification. With GitHub Flavored Markdown on, it also understands tables, task lists (- [x] done), strikethrough (~~text~~) and web addresses that become links on their own. Turn it off for plain CommonMark. “Turn single line breaks into <br>” makes a line break inside a paragraph visible; by default it is treated as a space, as in standard Markdown.
The output is HTML source, shown as text for you to copy. It is not sanitized: raw HTML written in your Markdown, and links such as javascript:, pass through unchanged. Turn on “Show raw HTML as text” to display any HTML in the Markdown as visible text instead. Never insert HTML made from Markdown you do not trust into a web page without sanitizing it first.
To keep the page responsive, Markdown over 500,000 characters is not converted; split a very long document into parts. A long README is about 50,000 characters, so ordinary documents are far below the limit. To see how the Markdown looks rather than its HTML, use Markdown Preview.
How to use it
- Paste or type your Markdown.
- Choose GitHub Flavored Markdown and line-break behaviour.
- Copy the HTML or download it as an .html file.
Example
A heading, a list and a table converted to HTML.
Input
# Release notes Version **2.0** adds: - Dark mode - Faster `search` | Plan | Price | |------|-------| | Free | $0 |
Result
<h1>Release notes</h1> <p>Version <strong>2.0</strong> adds:</p> <ul> <li>Dark mode</li> <li>Faster <code>search</code></li> </ul> <table> <thead> <tr> <th>Plan</th> <th>Price</th> </tr> </thead> <tbody><tr> <td>Free</td> <td>$0</td> </tr> </tbody></table>
Frequently asked questions
What is the difference between Markdown to HTML and Markdown Preview?
This tool gives you the HTML source code to copy. Markdown Preview shows how that HTML looks, rendered as a page, and sanitizes it for display.
Is the generated HTML safe to publish?
Only if the Markdown is yours. The converter passes raw HTML and any link address through. For Markdown from other people, turn on “Show raw HTML as text” and still sanitize the result on your site.
Why are my line breaks ignored?
In standard Markdown a single line break inside a paragraph is just a space. End the line with two spaces, or turn on “Turn single line breaks into <br>”, to keep it.
Does it support tables?
Yes, when GitHub Flavored Markdown is on. Write the header row, a row of dashes separating the columns, then the body rows, with the cells separated by pipes.