Markdown to HTML converter
Runs entirely in your browser. Your files and data never leave your device.
About this tool
Paste Markdown and this tool converts it to HTML, or paste HTML and it converts back to Markdown. Pick the direction you need, and the output updates as you type.
How does the conversion work?
Markdown to HTML runs on the marked library, with GitHub Flavored Markdown support for tables, strikethrough, and task lists turned on by default. The raw HTML marked produces comes out as one tag per line, so this tool runs it through a shared HTML beautifier afterward, which indents nested markup like lists, tables, and blockquotes so the result actually reads like formatted code instead of a wall of flat tags.
HTML to Markdown runs on turndown, configured for ATX-style headings (#, ##) and fenced code blocks. Turndown parses the HTML with a bundled parser rather than a real browser DOM, so it tolerates broken markup: unclosed tags, mismatched nesting, and other malformed HTML get parsed as best it can instead of throwing an error. That makes it forgiving of HTML copied from a live webpage, which is rarely as clean as hand-written markup.
Is my content sent anywhere?
No. Both conversions run entirely in your browser using JavaScript libraries bundled into the page; nothing you paste is sent to a server or logged anywhere. That matters if you’re converting an unpublished README draft, an internal doc, or HTML scraped from a page that still has real names or account details in it. An empty input just produces empty output on either side, so there’s nothing to clean up before you start.
What is this useful for?
Common uses include turning a README draft into HTML for a preview, converting a pasted webpage snippet into clean Markdown for a wiki or notes app, or checking how a GFM table renders before committing it to a repository. It also works well for stripping formatting out of HTML email templates or CMS exports, since Turndown collapses most inline styling down to plain Markdown equivalents.
See the CommonMark spec for the base Markdown syntax, MDN’s HTML reference for the other direction, and GitHub’s GFM spec for the table, strikethrough, and task list extensions this tool supports.