Markdown and HTML

Markdown and HTML

Convert a conservative Markdown subset to HTML or HTML back to Markdown, with a safe preview.

About this tool

Markdown is a plain text shorthand for headings, lists, links and emphasis. HTML is what the browser renders, and moving between the two should not lose the structure.

Convert a conservative Markdown subset to HTML, or HTML back to Markdown, with a preview. The preview is sanitised before it is shown, so scripts and event handlers cannot run.

Worked example

# Title with **bold** and a [link](https://example.com) becomes an h1, a strong element and an anchor, with the text escaped first.

Common searches