<link rel="stylesheet" type="text/css" href="/mirawhite.css">

Markdown to HTML converter

Paste Markdown to get clean HTML you can copy or download for free, with a live preview. Everything runs in your browser: nothing is sent to a server.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Markdown to HTML

Options

How to use it

  1. Paste or type your Markdown, or try the example.
  2. Copy the generated HTML, or copy the rendered preview as formatted text to paste into Gmail, Word or Google Docs.
  3. Download it as an .html file, optionally as a complete page with its <meta charset>.

Example

Input

# Release notes

**Version 2.1** adds *dark mode* and fixes [two bugs](https://example.com/changelog).

- [x] Dark mode
- [ ] Offline sync

| Plan | Price |
|------|------:|
| Free | $0 |
| Pro | $8 |

Output

<h1>Release notes</h1>
<p><strong>Version 2.1</strong> adds <em>dark mode</em> and fixes <a href="https://example.com/changelog">two bugs</a>.</p>
<ul>
<li><input checked="" disabled="" type="checkbox"> Dark mode</li>
<li><input disabled="" type="checkbox"> Offline sync</li>
</ul>
<table>
<thead>
<tr>
<th>Plan</th>
<th align="right">Price</th>
</tr>
</thead>
<tbody><tr>
<td>Free</td>
<td align="right">$0</td>
</tr>
<tr>
<td>Pro</td>
<td align="right">$8</td>
</tr>
</tbody></table>

Good to know

  • GitHub Flavored Markdown is supported (tables, task lists, strikethrough, autolinks); footnotes, math and diagrams are not.
  • Raw HTML inside the Markdown is escaped unless you allow it. Even then, the preview is cleaned by the browser’s sanitizer: scripts and event handlers never run.
  • Links with an unsafe protocol (javascript:, vbscript:, data:) are turned into plain text.
  • Conversion happens in your browser: your text is not sent or stored anywhere.

Frequently asked questions

How do I convert Markdown to HTML?

Paste your Markdown or open the .md file in a text editor and copy its content: the HTML appears as you type, with a rendered preview below. Copy the code, or download an .html file, either as a fragment or as a complete page with its <meta charset="utf-8">.

How do I convert Markdown to HTML in VS Code?

VS Code shows a Markdown preview (Ctrl+Shift+V, or Cmd+Shift+V on Mac) but has no built-in HTML export. Install an extension such as Markdown All in One and run “Print current document to HTML”, or copy the file’s content here and download the .html.

How do I convert Markdown to HTML with pandoc or Python?

With pandoc: pandoc input.md -o output.html, adding -s for a complete page. In Python, the markdown package does it with markdown.markdown(text). This page needs no install and follows GitHub Flavored Markdown, so tables and task lists come out as on GitHub.

Are Markdown tables converted?

Yes. GitHub Flavored Markdown tables become <table> elements with <thead> and <tbody>, and the column alignment set by colons (:---, ---:) becomes align="right" or align="center". Task lists, strikethrough and bare links are supported too; footnotes and math are not.

Can I keep raw HTML inside my Markdown?

Tick “Allow raw HTML in the Markdown” to pass it through as is; otherwise it is escaped and shown as text, with a count of escaped tags. Either way, the preview is cleaned by the browser, so scripts and event handlers never run.

Why do my single line breaks disappear?

In standard Markdown, a single line break inside a paragraph is treated as a space; only a blank line starts a new paragraph. Tick “Turn single line breaks into <br>” to keep them, as on GitHub comments, or end the line with two spaces.

← Back to all tools