Markdown to HTML
Turns Markdown into HTML code, with an optional preview of how it will look. Use it to prepare notes, README files or blog drafts for a web page or an email, or to check what your Markdown headings, lists and tables will produce.
Result
Results appear here.
How to use the Markdown to HTML
- Type or paste Markdown.
- Select Convert to HTML. The HTML code is shown with an optional preview.
Supported Markdown
- CommonMark basics: headings, paragraphs, emphasis, links, images, code, lists, block quotes and horizontal rules, plus tables and
strikethroughfrom GitHub Flavored Markdown.
Safety and limitations
- Raw HTML in the Markdown is escaped and shown as text, never passed through.
- Links keep only
http,https,mailtoand relative addresses. The preview does not load images; it shows their description instead. - Reference-style links, footnotes, task lists and HTML blocks are not supported. Nesting is limited to 16 levels.
Worked examples
Input
# Notes Some **bold** text and a [link](https://example.com). - One - Two
Result
<h1>Notes</h1> <p>Some <strong>bold</strong> text and a <a href="https://example.com">link</a>.</p> <ul> <li>One</li> <li>Two</li> </ul>
Input
Hello <script>alert(1)</script> and [bad](javascript:alert(1))
Result
<p>Hello <script>alert(1)</script> and bad</p>
Practical uses
-
Preparing a newsletter snippet
A writer drafts a short update in Markdown and needs it for an email tool that only accepts HTML. They paste the draft and convert it. The HTML code can be copied into the tool, and the preview shows how it should look.
-
Checking how notes will look
A developer wants to know what HTML their README text will produce, including headings, lists and links. They paste it in and read the generated code next to the preview. They can then copy it into a template with confidence.
-
Moving a post to a simple CMS
A blogger keeps drafts in Markdown and uses a content system with no Markdown option. They convert each draft and copy the HTML into the editor. Tables and lists come through as proper markup, so nothing has to be rebuilt by hand.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.