Convert Markdown to HTML

Type Markdown, see it rendered in a locked-down preview, and copy the HTML. Nothing leaves your browser.

This page opens on the HTML. Type or paste Markdown on the left and the converted code appears first, ready to copy or save as an .html file. Tables written with pipes, strikethrough and task lists are converted, and a block of code becomes pre and code. Use GitHub-style line breaks when your text keeps one sentence per line and you want each line to stay on its own line. Turn on Wrap the HTML in a full page to get a doctype, head and body, so the result opens as a page. The rendered preview sits below the code in a locked frame with no scripts, so you can still check what you made. The HTML itself is raw and not sanitised: a script tag you type stays in it, so clean the output before you use it on a site that shows other people's text. Your Markdown is converted in this tab and is not uploaded.

How it works

  1. Type or paste your Markdown
  2. Check the preview and the two options
  3. Copy or download the HTML

Frequently asked questions

Can I get a complete HTML file, not just the body?

Yes. Turn on Wrap the HTML in a full page and the output gains a doctype, a head with a UTF-8 charset and a viewport tag, and a body. Use Download .html to save it as a file.

Does the converter clean the HTML?

No. Raw HTML in your Markdown, such as a script tag, is kept in the output. Only the preview frame is filtered. Sanitise the code before you publish it on a site that shows other people's text.

Will a pipe table become a table?

Yes, when the second line is a divider row such as | --- | --- |. Without the divider row the lines stay as a paragraph.