HTML File to Markdown Converter
Convert an HTML, HTM, or XHTML file to Markdown in your browser. Read up to 2 MiB of saved HTML locally and download a .md file.
Conversion settings
Markdown output
Batch input
Enter one public URL per line, up to 500 URLs. Select up to 20 per batch.
Batch output
Pasted HTML and local files stay in your browser.
Convert a saved document locally
Save the example as release-notes.html, then select Upload file or drop it onto the input editor. The Markdown contains a Release notes heading with one bullet. Full-body conversion is selected so that content outside the main section is also included.
Example input
<main>
<h1>Release notes</h1>
<ul><li>Fixed the export dialog.</li></ul>
</main>Files are limited to 2 MiB. Conversion reads the saved markup without running scripts or reading linked files. If the file has relative links, add an absolute base URL in the HTML when you need portable links.
HTML File to Markdown FAQs
Which saved HTML file types can I convert?
Open a .html, .htm, or .xhtml file up to 2 MiB. After conversion, copy the Markdown or download a .md file.
Is my saved HTML uploaded to a server?
The converter reads and converts local HTML on your device. The input file and generated Markdown stay in your browser. Open the converter online to load the app. A public URL import uses a separate server-side fetch.
Does the converter run the scripts from a saved file?
It converts markup already present in the file. Scripts and styles are removed, and linked pages or other files on your device are left untouched. To capture content added by a script, save or copy that content after it appears in your browser.
Why do links in my saved HTML still point to relative paths?
A saved file may lack the original page address. Add an absolute HTTP or HTTPS base URL to the HTML if you want portable links. If the original page is public, importing its URL gives the converter that context.
What happens to tables, links, and code blocks in saved HTML?
The converter preserves links when Keep links is enabled, creates fenced code blocks, and turns simple tables into GitHub Flavored Markdown pipe tables. Tables with merged cells are simplified to lists. Review the output in Preview before exporting.