1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Markdown to HTML

Paste Markdown into the left editor and the HTML tab on the right shows the matching markup. Copy it or download an .html file.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert Markdown to HTML

You need HTML when Markdown you wrote has to go onto a web page, an email template or a content system that does not read Markdown. The tool reads CommonMark with tables, strikethrough and task lists, then writes HTML made only of safe tags. Nothing leaves your computer, so you can paste internal documents too.

How to do it

  1. Paste your Markdown into the Editor editor on the left, or press Import file and pick an .md file. The editor shows the rendered result at once, so you can see whether headings and lists came out right.
  2. Open the HTML tab on the right (this page already selected it). The markup refreshes as you type.
  3. Open ⚙ Options to choose between a full document and only the body, to turn indentation on or off, and to add ids to headings.
  4. Press Copy result to paste it into your page, or Download file to get an .html file.

A real example

The numbered list stays an ol, the table with column alignment becomes th and td cells with an align attribute, and the code block keeps its language in a language-bash class. Every heading has an id because the heading id option is on.

Input · Markdown

# Installing the tool

This tool helps you **convert document formats** right in the browser. See the [project page](https://example.com/project) for more.

## Steps

1. Download the latest release
2. Unzip it into the project folder
3. Run the command below

```bash
npm install the-tool
```

## Requirements

| Component | Version |
| :-- | --: |
| Node.js | 20 |
| npm | 10 |

> Note: an internet connection is needed for the first install.

Result · HTML

<h1 id="installing-the-tool">Installing the tool</h1>
<p>This tool helps you <strong>convert document formats</strong> right in the browser. See the <a href="https://example.com/project">project page</a> for more.</p>
<h2 id="steps">Steps</h2>
<ol>
  <li>Download the latest release</li>
  <li>Unzip it into the project folder</li>
  <li>Run the command below</li>
</ol>
<pre><code class="language-bash">npm install the-tool</code></pre>
<h2 id="requirements">Requirements</h2>
<table>
  <thead><tr><th>Component</th><th align="right">Version</th></tr></thead>
  <tbody>
    <tr><td>Node.js</td><td align="right">20</td></tr>
    <tr><td>npm</td><td align="right">10</td></tr>
  </tbody>
</table>
<blockquote>
  <p>Note: an internet connection is needed for the first install.</p>
</blockquote>

Options worth changing

Add ids to headings
Turn it on when you need links that jump to a section or a contents list. Ids come from the heading text with diacritics removed and words joined by hyphens, with a number added for duplicates.
Body only (no <html>)
Keep it on when you paste into an existing page or a CMS editor. Turn it off for a complete document with doctype, head and body.
Line breaks and indentation
Turn it off for compact HTML on few lines, for example to embed in a string inside code.

Common problems

Limits

Frequently asked questions

Is this HTML safe to paste into a website?

It is made only of heading, paragraph, list, table, link, image and a few text-style tags, so it contains no script. Text content is escaped correctly.

If I edit the HTML, does the Markdown change?

Yes. Select the HTML tab, edit the code in the right pane and the left editor updates at once. Switch to the Markdown tab to see the new Markdown.

Are GFM tables supported?

Yes. A table with a --- separator row is read as a table, including left, centre and right alignment from the colons.

How large a file can I use?

Up to 5 MB of text and 20 MB for imported files. Everything runs in the browser, so very long documents can be slow on weak machines.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words