How to use Markdown to HTML
- Type or paste your Markdown into the input box.
- Switch between the HTML code and the Preview tabs to see the result.
- Optionally turn off GitHub-style tables and task lists, or turn on line breaks for single newlines.
- Click Copy to copy the HTML, or Download .html for a complete page.
Features
- Converts headings, emphasis, lists, links, images, code and blockquotes
- GitHub-style tables, task lists and strikethrough (optional)
- Preview in a sandboxed frame with scripts disabled
- Raw HTML in the input is escaped, and javascript: or data: links are removed
- Runs in your browser, so the text is never uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| # Notes Some **bold** and `code`. - One - Two | <h1>Notes</h1> <p>Some <strong>bold</strong> and <code>code</code>.</p> <ul> <li>One</li> <li>Two</li> </ul> |
| <script>alert(1)</script> [x](javascript:alert(1)) and [ok](https://example.com) | <p><script>alert(1)</script></p> <p>x and <a href="https://example.com">ok</a></p> — Raw HTML is escaped and the unsafe link keeps only its text. |
Limitations
- Raw HTML in your Markdown is not passed through. It is shown as text, which keeps the output safe but means you cannot embed custom HTML this way.
- Only http, https and mailto links and relative URLs are kept; other schemes are removed.
- Images from other websites may not appear in the preview because the page does not load third-party content.
Learn more
Markdown is a lightweight way to write formatted text using plain characters: # for headings, asterisks for emphasis, hyphens for lists and brackets for links. It was designed to be readable as plain text and easy to convert into HTML, which is why it is used for documentation, READMEs, notes and blog posts.
The original Markdown description left many edge cases open, so different programs produced different HTML. CommonMark is a precise specification that removes those ambiguities, and most modern tools follow it, often with extensions such as tables.
Markdown itself allows raw HTML, which is a risk if the text comes from someone else. A converter that passes it through can be used to inject scripts into a page. This tool escapes raw HTML instead, and removes links with dangerous schemes such as javascript:, so its output is safe to preview and copy.
Frequently asked questions
Is the HTML output safe to put on a website?
Raw HTML from the input is escaped and unsafe link types are removed, which prevents the most common injection problems. Still, review output you publish, and follow your site’s own security rules.
Why is my HTML tag shown as text?
By design. HTML typed inside Markdown is escaped so that pasted content cannot run scripts.
Which Markdown flavour is supported?
The CommonMark standard, plus GitHub-style extensions such as tables and task lists when that option is on.
Is my Markdown uploaded?
No. Conversion runs in your browser.
Sources
Last reviewed: September 30, 2026