Skip to content

HTML ↔ Markdown converter

Convert HTML to Markdown and Markdown back to clean HTML. Both directions, one page. Processed locally in your browser. Nothing is uploaded.

HTML file
Output

Output appears here as you go.

Parsed with Turndown right in your browser. Tables, links and code blocks are kept intact.

Frequently asked questions

How do I convert a Markdown file to HTML?
Paste or type your Markdown into the Markdown to HTML tab above, then copy the generated HTML or preview the rendered result. It follows GitHub Flavored Markdown, so headings, links, tables and fenced code blocks all convert cleanly. It is free and runs in your browser.
How do I convert HTML to Markdown?
Switch to the HTML to Markdown tab and paste your HTML, or upload an .html file. Turndown converts it to tidy Markdown in the browser and keeps your headings, links, lists, tables and code blocks.
How do I convert an HTML webpage to Markdown?
Open the page source or copy the rendered HTML, then paste it into the HTML to Markdown tab. The markup is cleaned up into readable Markdown on your own device. If you have saved the page, upload the .html file directly.
Can you put Markdown inside HTML?
Browsers do not render raw Markdown dropped into an HTML page, so you convert it first. Paste your Markdown into the Markdown to HTML tab, copy the output, and add that to your page or template.
How do I convert Markdown to HTML in VS Code?
VS Code previews Markdown with the built-in Open Preview command (Ctrl+Shift+V), and extensions like Markdown All in One can export HTML. If you would rather skip the setup, paste your Markdown here and copy the HTML instead.
How do I convert Markdown to HTML in Python?
In Python you would normally use the markdown package, like markdown.markdown(text). For a single conversion this browser tool is quicker than installing and importing a library. Just paste your Markdown and copy the HTML.
Is the HTML output standards-compliant, and is anything uploaded?
Marked renders your Markdown into clean, standards-compliant HTML, and every conversion runs in your browser. Nothing is uploaded, stored or tracked, and it works both ways: HTML to Markdown and Markdown to HTML.