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.

Up to 1 MiB.

Result

Results appear here.

Options

How to use the Markdown to HTML

  1. Type or paste Markdown.
  2. 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 strikethrough from 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, mailto and 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

Headings, list and link

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>
Raw HTML is escaped

Input

Hello <script>alert(1)</script> and [bad](javascript:alert(1))

Result

<p>Hello &lt;script&gt;alert(1)&lt;/script&gt; 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.

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.