Markdown to HTML Converter
Convert Markdown to clean, semantic HTML with a live split preview — CommonMark and GitHub-Flavored Markdown, a table of contents, and copy or download export.
Paste or drop in a .md file and the HTML updates as you type. Pick the flavour your
target platform uses — GitHub-Flavored Markdown (tables, strikethrough, task lists, autolinks)
or strict CommonMark — fine-tune line breaks, smart punctuation, raw-HTML handling and heading
anchor IDs, then copy the HTML or download it as a standalone document with its own stylesheet.
A syntax quick reference and a short guide to CommonMark vs GFM sit below the editor.
Table of contents
Markdown syntax quick reference
| You type | You get | ||||
|---|---|---|---|---|---|
# Heading 1## Heading 2 | Heading 1 Heading 2 | ||||
**bold** *italic* | bold italic | ||||
~~strikethrough~~ (GFM) | |||||
`inline code` | inline code | ||||
```python
print("fenced block")
``` | print("fenced block") (in a code block) | ||||
[text](https://example.com) | text | ||||
 | an image with alt text | ||||
- item - nested |
| ||||
1. first2. second |
| ||||
- [x] done- [ ] todo (GFM) | |||||
> quoted text | quoted text | ||||
| A | B || - | - || 1 | 2 | (GFM) |
| ||||
--- | |||||
<div class="x">raw HTML</div> | raw HTML passes through when Allow raw HTML is on, and is shown as escaped text when it is off |
What is Markdown?
Markdown is a lightweight plain-text markup language created by John Gruber in 2004. The source stays
readable as plain text — which is why it is the default for README files, documentation, issue
trackers and chat platforms — while the converted output is semantic HTML: real
<h1>, <p>, <ul> and <table>
elements that renderers, screen readers and search engines can all work with.
CommonMark vs GitHub-Flavored Markdown
CommonMark (2014) is the specification that pins down exactly how any given Markdown text should parse, so different tools produce the same HTML. GitHub-Flavored Markdown (GFM) is what GitHub, GitLab and most documentation platforms actually use: it is CommonMark plus tables, strikethrough, task lists and autolinks. Choose the GFM flavour when your document will live on GitHub or a similar platform; choose CommonMark when you want maximum compatibility with strict, spec-compliant renderers.
Where does the HTML go?
Paste the copied HTML into a CMS or blog editor that accepts HTML, or feed the Markdown straight through a static site generator such as Hugo, Jekyll, MkDocs or Docusaurus. The Download HTML button produces a standalone document with a minimal embedded stylesheet, so the result looks right when opened in any browser — handy for sharing a document without relying on the recipient having a Markdown viewer.