๐ Markdown to HTML Converter
* Supports common syntax: headings, emphasis, lists, links, and code blocks.
Convert Markdown text into HTML source code. Supports common syntax like headings, bold, italics, lists, links, and code blocks. Handy for pasting straight into a CMS, email body, or anywhere else you need actual HTML source.
How to use
- Enter the Markdown text you want to convert.
- The converted HTML source code appears automatically. Use the "Copy" button to copy it.
How the calculation works
Markdown expresses document structure through simple symbols in plain text. This tool replaces each kind of symbol with the matching HTML tag. The main mappings: a line starting with one to six "#" becomes <h1>โ<h6>; "**bold**" becomes <strong>; "*italic*" becomes <em>; lines starting with "-" or "1." become <ul> or <ol> lists; "[text](URL)" becomes an <a> link; and text fenced in "```" becomes a <pre><code> block. Characters with special meaning in HTML, such as < and >, would be read as tags if output as-is, so they are escaped to entities like < first. Markdown has many dialects, and extensions such as tables and footnotes are written differently from one implementation to another, so this tool sticks to the core syntax.
Worked example
Converting this Markdown ## Notice **Today** we are closed. See [details](https://example.com). results in <h2>Notice</h2> <p><strong>Today</strong> we are closed. See <a href="https://example.com" target="_blank" rel="noopener noreferrer">details</a>.</p> The paragraph is wrapped in <p>, and the bold text and link become their respective tags. Links automatically get target="_blank" to open in a new tab, plus rel="noopener noreferrer" for safety.
Things to be aware of
- Extended syntax such as tables, footnotes and task lists is not supported.
- If you display untrusted Markdown from outside sources, sanitise the resulting HTML separately.
- To see the rendered result, use the Markdown preview tool.
- Line break handling varies between implementations; use a blank line to separate paragraphs.
FAQ
I want to see a rendered preview instead โ what should I use?
This tool shows raw HTML source. For a visual rendered preview, try our Markdown Preview tool.
Does this support extended syntax like tables or footnotes?
No โ the current version only supports common syntax: headings, emphasis, lists, links, and code blocks.
Is the converted HTML safe to use as-is?
This does basic conversion with the input text escaped. That said, if you're embedding untrusted Markdown from an external source into a production site, we'd recommend running it through a separate sanitizer as well.