Markdown → HTML
Write Markdown and see the live HTML preview side by side
Welcome to Markdown Preview
This is a bold and italic text demo.
Features
- Live preview as you type
- Supports bold, italic, and bold italic
- Links like Google
- Code blocks and
inline code
Ordered List
- First item
- Second item
- Third item
This is a blockquote
function hello() {
console.log("Hello, World!"); }
Enjoy writing Markdown!
About This Tool
Write Markdown and see a live preview and the generated HTML side by side, then copy the HTML for use in a website, CMS or email.
Write in plain text, publish as HTML
Markdown is a lightweight way to format text using ordinary characters: a # for a heading, asterisks for emphasis, a dash for a bullet. It is the format behind README files, many documentation sites, note-taking apps and forum posts. Browsers, though, display HTML. This tool converts as you type, showing either a rendered preview or the raw HTML source, so you can draft content comfortably and paste clean markup into a CMS, a static page or a template. Conversion runs entirely in your browser.
How to use it
- Type or paste Markdown into the left-hand Markdown panel. A sample document is loaded to show the supported syntax; replace it with your own text.
- Keep Preview selected on the right to see the formatted result update with every keystroke.
- Switch to HTML to view the generated markup.
- Click Copy HTML to copy the markup to your clipboard.
Supported syntax
| You type | You get |
|---|---|
# Title through ###### Title | Headings h1 to h6 |
**bold** or __bold__ | bold |
*italic* or _italic_ | italic |
***both*** | bold and italic |
[text](https://example.com) | A link that opens in a new tab |
 | An image |
- item, * item or 1. item | Bulleted or numbered lists |
> quote | A blockquote |
--- on its own line | A horizontal rule |
| Text between single backticks | Inline code |
| Text between lines of three backticks | A code block |
Lines separated by a blank line become separate paragraphs; consecutive lines without a blank line between them are joined into one paragraph, which is standard Markdown behavior.
How Markdown conversion works
A Markdown converter reads your text line by line and recognises patterns. Block-level patterns, such as a line starting with # or -, decide what kind of element a line becomes. Inline patterns, such as pairs of asterisks, are then replaced inside those blocks. Code is handled first and its contents are escaped, so characters like < show up literally instead of being treated as markup.
Markdown has several dialects. The original 2004 syntax was loosely specified, and later efforts such as CommonMark and GitHub Flavored Markdown added stricter rules and extras like tables and task lists. This converter covers the core syntax listed above. It does not handle tables, nested lists, task lists, strikethrough or footnotes, so if your document relies on those, check the preview carefully.
Tips
- Underscores inside words such as
file_name_herecan be read as italics. Wrap technical names in backticks to keep them intact. - Leave a blank line before and after lists and headings to keep them separate from surrounding paragraphs.
- Raw HTML typed into the editor is passed through unchanged, which is useful but means you should only paste content you trust.
- Tidy the copied output with the HTML formatter, or shrink it with the HTML minifier before embedding it.
FAQ
Will the HTML include styles?
No. The output is plain semantic markup with no CSS, so it takes on the styling of the page where you paste it.
Why are my links opening in a new tab?
Generated links include target="_blank" and rel="noopener". Edit the HTML after copying if you prefer same-tab links.
Can I convert HTML back to Markdown?
This tool only works in the Markdown to HTML direction.