Convert Markdown to HTML.
Paste Markdown and get clean, safe HTML to copy or download.
Loading…
Next step: Meta tag preview →
Three steps.
Paste your Markdown on the left.
Read the HTML on the right, or switch to Preview to check how it looks.
Copy the HTML, or download it as a complete .html page.
What you get
Copy HTML gives you the body only: headings, paragraphs, lists, links, tables and code, ready to paste into a CMS, a newsletter tool or a template. Download .html wraps the same HTML in a complete page with a title and simple readable styles, so you can open it in any browser or send it as a file.
Why sanitised?
Markdown allows raw HTML, so a pasted document could contain a script or an onerror attribute. Every conversion goes through DOMPurify, a widely used sanitiser, which strips anything that could run code. Normal formatting is untouched.
Supported syntax
CommonMark plus GitHub extensions: tables, ~~strikethrough~~, task lists and automatic links. Line breaks inside a paragraph follow the standard: end a line with two spaces, or leave a blank line for a new paragraph.
Questions.
Does the HTML include styles?
Copy HTML gives plain semantic tags with no styles. The downloaded .html page adds a few basic styles for reading.
Why did my line break disappear?
In Markdown a single line break joins lines in the same paragraph. Leave a blank line, or end the line with two spaces.