AI Webkits

HTML to Markdown Converter

Paste HTML code or upload an .html file and convert to clean, readable Markdown.

Markdown Output

Free Online HTML to Markdown Converter

Moving content from the web into Markdown-based systems (GitHub, static site generators, Obsidian, Notion) requires converting HTML to clean Markdown. Our free converter uses Turndown.js to produce readable Markdown from any HTML input. Paste code directly into the editor or upload an .html file from your machine — the file is read locally and never leaves your browser. Once converted, copy the Markdown to your clipboard or download it as a .md file.

How It Works

Paste HTML code into the input field or click "Upload .html" to load a file from disk. Turndown.js parses the DOM and converts each element to its Markdown equivalent: headings become #, strong becomes **, links become [text](url), lists become dashes. Formatting is stripped; content structure is preserved. Use the Download .md button to save the result as a file.

Use Cases

Content migration from WordPress to Hugo/Jekyll, storing webpage content in note apps like Obsidian, and copying content to GitHub READMEs. Upload saved .html pages directly to extract their content as Markdown. For bulk migration, scripted solutions with Turndown's Node package are recommended.

Frequently Asked Questions

Does this handle complex HTML layouts?

The tool extracts content from semantic HTML. Layout structures (nested divs, Grid, Flexbox) are stripped — only text and semantic hierarchy remain. Markdown does not support layout.

Can I upload an HTML file instead of pasting?

Yes. Click the "Upload .html" button and select any .html or .htm file. The file is read entirely in your browser — nothing is uploaded to a server.

What happens to images?

Images become ![alt text](image-url). Original URLs are preserved. You may need to update them for your own hosting.

Can I download the Markdown output?

Yes. Click the "Download .md" button to save the converted Markdown as a file. You can also copy it to your clipboard with the Copy button.

Can I customize the output style?

The tool uses ATX headings, asterisks for emphasis, and hyphens for lists — the most compatible Markdown conventions.