Markdown to HTML Converter
Write or paste Markdown and get clean, ready-to-use HTML — with a live preview.
Live preview
Hello, Markdown
This is a live preview of Markdown rendered to clean HTML.
- Fast
- No sign-up
- Runs entirely in your browser
Paste your own Markdown above to convert it.
HTML output
<h1>Hello, Markdown</h1> <p>This is a <strong>live preview</strong> of <em>Markdown</em> rendered to clean HTML.</p> <ul><li>Fast</li><li>No sign-up</li><li>Runs entirely in your browser</li></ul> <blockquote><p>Paste your own Markdown above to convert it.</p></blockquote> <p><a href="https://www.markdownguide.org">Learn Markdown</a></p>
Supports headings, bold, italics, inline code, links, images, single-level lists, blockquotes, code blocks and horizontal rules — everything runs locally in your browser.
Write or paste Markdown and get clean, standards-compliant HTML back with a live preview, so you can see exactly how headings, lists, links, code blocks, and emphasis will render before copying the output into a CMS, email, or static site.
Supports the common Markdown syntax used across GitHub, blogging platforms, and documentation tools, converted entirely client-side.
Syntax reference
| Markdown | Renders as |
|---|---|
| # Heading | <h1> |
| **bold** and *italic* | <strong> and <em> |
| [text](https://url) | A link |
|  | An image |
| - item | An unordered list |
| 1. item | An ordered list |
| > quote | <blockquote> |
| `code` | Inline <code> |
| ```lang | A fenced code block |
| | a | b | | A table row |
Things that catch people out
- A single line break usually does nothing. To force one, end the line with two spaces, or leave a blank line for a new paragraph.
- Lists need a blank line before them, or they get absorbed into the preceding paragraph.
- Indentation inside nested lists must be consistent — mixing tabs and spaces produces unpredictable nesting.
- Underscores inside words (snake_case_name) can accidentally trigger emphasis in some parsers. Escape them with a backslash or wrap the text in backticks.
- Raw HTML is allowed in Markdown, but many platforms strip it for safety. Don't rely on it if you're pasting into a CMS.
Which flavour of Markdown?
The original 2004 Markdown specification left many cases undefined, so implementations diverged. CommonMark is the effort to pin down the ambiguities precisely; GitHub Flavored Markdown builds on CommonMark and adds tables, task lists, strikethrough and autolinking.
In practice, if you stick to headings, emphasis, links, lists, code blocks and tables, your document will render essentially the same everywhere. It's the edge cases — nested lists inside blockquotes, HTML blocks, reference links — where parsers still disagree.
Frequently asked questions
- Does this support tables and code blocks?
- Yes — standard Markdown tables, fenced code blocks, and inline code are all converted to their corresponding HTML elements.
- Is the generated HTML safe to paste directly into a website?
- The output is clean semantic HTML, but always review it before publishing, especially if the source Markdown came from an untrusted source.
- Can I convert HTML back to Markdown?
- This tool converts one direction, Markdown to HTML. For editing further, keep your Markdown source as the source of truth and regenerate HTML as needed.
- Why isn't my line break showing up?
- Markdown collapses single newlines. End the line with two trailing spaces to force a <br>, or leave a blank line to start a new paragraph.
- What's the difference between CommonMark and GitHub Flavored Markdown?
- GFM is CommonMark plus tables, task lists, strikethrough and automatic URL linking. Documents using only core syntax render identically under both.