Convert HTML to Markdown
Drop in an HTML file and get clean Markdown back in a few seconds. The headings, links, lists and tables survive while the tags fall away, ready to paste into ChatGPT, Claude, or any AI tool, or to feed your RAG pipeline. It runs in your browser, so the file stays on your device.
How to convert HTML to Markdown
- 1
Add your HTML file
Drag an .html file onto the box above, or click to pick one from your computer.
- 2
Let it convert
The tool parses the markup in your browser and rewrites it as Markdown. Most files finish in a moment.
- 3
Copy or download
Copy the Markdown with one click, or save a .md file, then paste it into ChatGPT, Claude, or any AI tool.
Why convert HTML before sending it to AI
HTML is mostly tags. Every paragraph sits inside angle brackets, class names and attributes that an AI has to read and pay for, even though none of it changes the meaning. Markdown carries the same headings, links and lists in a fraction of the characters. A page often loses around 40 percent of its token count this way, so you pay less and the model spends its attention on the content, not the markup.
It reads the file you give it
This page converts a saved .html file exactly as written. It does not run JavaScript or fetch anything, so a page that builds its content with scripts can come out thin. To convert a live web page in one step, use the URL to Markdown tool, which fetches the page first.
HTML to Markdown questions
Is it free?
Yes. No account, no limits, no cost. Convert as many HTML files as you want.
Do my files get uploaded?
No. The conversion runs in your browser, so the file stays on your device and its contents are never sent to a server.
Can I convert a live web page?
Not on this page, which reads a file you already have. To pull in a page by its address, use the URL to Markdown tool, which fetches it and converts it in one step.
Why did my saved page come out short?
The file probably builds its content with JavaScript, which this tool does not run. It converts the HTML as written, so script-rendered pages can look empty.
Do links and tables survive?
Yes. Links keep their text and address, and tables, headings and lists all carry over into Markdown. Styling and scripts are dropped, since they add nothing for an AI.
How big a file can I convert?
Up to 15 MB, which is far larger than almost any single page of HTML. Bigger files can strain your browser, so the tool stops before that point.