Development Tools
Markdown to HTML Converter
Write or paste Markdown and get clean HTML, a rendered preview and buttons to copy or download the result. It handles headings, paragraphs, bold and italic text, links, images, nested lists, blockquotes, fenced and indented code blocks, tables and horizontal rules, and can add id attributes to headings or wrap the output in a full HTML document. Safety is built in: raw HTML typed into the Markdown is shown as text rather than run, and links and images are limited to http, https, mailto, tel and relative addresses, so neither the output nor the preview can execute a script. It is not a full CommonMark implementation, so reference-style links and raw HTML blocks are not supported. Nothing is uploaded.
How to use it
- Type or paste Markdown in the source box.
- Choose whether to add heading ids or wrap the output as a full HTML document.
- Check the rendered preview, then copy or download the HTML.
Example
The Markdown # Title and a [link](https://example.com) become an h1 and an anchor tag. A line containing <script> is shown as literal text, and [x](javascript:alert(1)) is turned into plain text.
Related tools
Build a contents list from your headings with the table of contents generator, check how it reads with the readability checker, and see links in finished HTML with the HTML link extractor.
Understanding the output
Each Markdown element becomes a plain HTML tag: # headings become h1 to h6, blank-line-separated text becomes p, asterisks become em and strong, hyphens become ul and li, and fenced blocks become pre and code. Anything inside a code block or backticks is escaped, so angle brackets show as text.
Raw HTML that you type is shown as text rather than passed through, and links and images are limited to safe addresses. This keeps the output free of scripts, but it also means you cannot embed custom HTML in your Markdown.
Common mistakes
- Forgetting the blank line before a list or heading, so it merges into the paragraph above.
- Expecting every Markdown extension to work. Reference-style links and raw HTML blocks are not supported.
- Pasting the HTML into a page without checking its heading order: a document should have one h1.
Questions
Is the HTML safe to paste into my site?
The converter escapes raw HTML and blocks dangerous link schemes, so the output contains only the tags it generates. Still, review output before publishing and let your CMS sanitise content as well.
Why is my raw HTML shown as text?
On purpose: passing raw HTML through is how scripts get injected. If you need custom HTML, write it in your page template instead.
Which Markdown features are supported?
Headings, paragraphs, emphasis, strikethrough, links, images, ordered and unordered lists (nested), task lists, blockquotes, code blocks, tables and horizontal rules.
Does it follow the CommonMark specification exactly?
No. It covers the common syntax and is tested on it, but edge cases such as reference-style links, raw HTML blocks and some nested-emphasis corner cases are not supported.
Is my text sent anywhere?
No. The conversion happens in your browser.
Get practical SEO tips by email
Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.
