Markdown to HTML and back
Convert Markdown to clean HTML source and turn HTML back into Markdown.
Related tools
Markdown to HTML and back
Markdown is quick to write, but the web runs on HTML, and sooner or later you need one turned into the other. Paste Markdown and get the HTML source out; flip the direction and paste HTML to get tidy Markdown back. The output is plain source you can copy into a template, a CMS field, an email or a static-site page — not a rendered preview, so what you see is exactly what you paste.
Both directions cover the syntax people actually use: headings, bold and italic, links and images, ordered and unordered lists, blockquotes, horizontal rules, fenced code blocks and inline code. The GitHub-flavoured extras are here too — tables, strikethrough and task lists with their checkboxes. Text is escaped as it should be, so a stray less-than sign, ampersand or greater-than in your content becomes <, & and > instead of breaking the markup or vanishing.
The line-break option decides how single newlines are read. Leave it off and Markdown's usual rule applies: a single break inside a paragraph is just a space, and only a blank line starts a new paragraph. Turn it on when your text uses one line per thought and you want each of those to become a real line break, the way many chat and note apps behave.
Everything runs locally in your browser. Nothing you paste is uploaded, which matters when the Markdown is a draft, release notes or internal documentation. The tally under the output counts the elements produced alongside the character change, so you can see at a glance how much structure the conversion found.