Skip to content
Devtoolry

Markdown to HTML

Convert Markdown to clean, sanitised HTML online, ready to paste into any page or CMS. Supports GitHub-flavoured Markdown with tables and code blocks.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the Markdown to HTML

The Markdown to HTML converter turns GitHub-flavoured Markdown into clean, sanitised HTML you can paste into a CMS, email template or static page.

Conversion happens in your browser, so your files and records stay private.

How to use the Markdown to HTML

  1. Paste Markdown.
  2. Choose whether to pretty-print the HTML.
  3. Copy or download the HTML.

Example

Convert a README section

Input

## Install

Run `npm install devtoolry`, then:

- [x] Add the plugin
- [ ] Restart the server

| Option | Default |
| ------ | ------- |
| `port` | 3000 |

Result

<h2>Install</h2>
<p>Run <code>npm install devtoolry</code>, then:</p>
<ul>
  <li><input checked="" disabled="" type="checkbox" /> Add the plugin</li>
  <li><input disabled="" type="checkbox" /> Restart the server</li>
</ul>
<table>
  <thead>
    <tr>
      <th>Option</th>
      <th>Default</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>port</code></td>
      <td>3000</td>
    </tr>
  </tbody>
</table>

GitHub-flavoured Markdown: inline code, task lists with checkboxes and a table.

Common mistakes

  • Expecting styles. The output is plain HTML with no CSS, so tables and code blocks look unstyled until your site’s stylesheet applies.
  • Scripts and event handlers in Markdown. Raw <script> tags and attributes such as onclick are removed by the sanitiser. That is intentional; add scripts to your page separately.
  • Line breaks. A single line break inside a paragraph is not a <br>. End the line with two spaces or a backslash, or leave a blank line for a new paragraph.

Works well with the Markdown to HTML

Frequently asked questions

Is the HTML safe to embed?

Yes. The output is sanitised, so scripts and event handlers in the Markdown are removed.

Are tables and task lists supported?

Yes, along with fenced code blocks, strikethrough and autolinks.

Are heading IDs generated?

No. Headings are plain <h1>–<h6> elements, so add ids yourself if you need anchor links.

Is the conversion done on a server?

No. Markdown is converted and sanitised in your browser.