Convert HTML (.html / .htm) to Markdown — free online tool
Convert HTML (.html / .htm) files or pasted HTML code to Markdown. Preserves headings, tables, lists, links, and code blocks. Runs entirely in your browser — safe for confidential HTML.
Drop an HTML file (.html / .htm) here, or click to select
or
Supported formats: .html · .htm · multiple files supported
What the HTML to Markdown Converter can do
This free online tool converts HTML (.html / .htm) files and pasted HTML code to Markdown entirely inside your browser. Your HTML is never uploaded, and headings, tables, lists, links, and code blocks from the source are preserved in the Markdown output.
Upload HTML files (.html / .htm)
Drag and drop .html, .htm, or .xhtml files, or click to select them. Batch conversion and ZIP download of all results are supported.
Second mode: paste HTML code to convert
Paste HTML copied from your blog editor or browser DevTools into the text area and convert it directly. You can paste the full page source or just the article body.
Preserved in Markdown: headings, tables, lists, and code
H1–H6 headings, paragraphs, bullet and numbered lists, tables (GFM pipe syntax), links, inline code (`code`), fenced code blocks (```), bold, and italic are preserved. script and style tags are automatically stripped for safety.
Three steps to convert HTML to Markdown
- Drag and drop an .html / .htm file, or paste HTML source into the "Paste HTML code" tab.
- Press the "Convert to Markdown" button and check the result in the preview pane.
- Copy to clipboard, or download the .md file.
Your HTML file is never sent to any server
How in-browser HTML → Markdown conversion works (turndown)
This tool uses the turndown library to parse HTML directly in your browser and convert it to Markdown in JavaScript. Neither uploaded HTML files nor pasted HTML code is ever sent to sakutto servers.
Why it's safe for confidential HTML content
Because nothing is transmitted, you can safely convert confidential content such as internal CMS exports, unpublished drafts, and HTML design documents. Close the tab and no data remains.
Use cases for HTML to Markdown conversion
- Migrating existing HTML blog posts to note, Zenn, or Qiita by converting just the article body to ready-to-paste Markdown.
- Preprocessing scraped HTML for LLMs by stripping tag noise and producing clean Markdown.
- Importing HTML exported from internal CMSs or WordPress into Obsidian or Notion as Markdown for your knowledge base.
Converting other formats to Markdown
- Convert PDF to Markdown (PDF to Markdown converter)
- Convert Word (.docx) to Markdown (Word to Markdown converter)
- Convert Excel (.xlsx) to Markdown (Excel to Markdown converter)
- Convert PowerPoint (.pptx) to Markdown (PowerPoint to Markdown converter)
- Convert a web page URL to Markdown (URL to Markdown converter)
- Convert any file to Markdown (File to Markdown hub)
Why HTML to Markdown Converter on sakutto is safe
Many online tools upload your files to external servers for processing. This tool never sends your HTML (.html / .htm) files and pasted HTML code to any server — everything is processed entirely in your browser.
* Some AI-powered tools require server-side processing. Tools that send data to a server will always notify you beforehand.
| Comparison | Typical online tools | sakutto |
|---|---|---|
| Where data is sent | Uploaded to external servers | Nowhere — processed in your browser |
| Data leak risk | Risk during transfer and server storage | No risk — no network transfer occurs |
| External traffic | File data travels over the internet | No file data appears in network logs |
| Offline use | Not possible (server required) | Works offline after initial load |
How browser-based processing works
- WebAssembly (WASM): Processes HTML (.html / .htm) files and pasted HTML code in your browser at near-native speed. No server communication occurs.
- Web Workers: Runs on a background thread separate from the main thread, so your browser stays responsive during processing.
- After processing, your browser automatically frees the data from memory. No HTML (.html / .htm) files and pasted HTML code remains outside your device.
For IT security teams: How to verify
You can verify that sakutto never sends your HTML (.html / .htm) files and pasted HTML code externally by checking the Network tab in your browser's DevTools while using the tool. You'll see that no requests involving your HTML (.html / .htm) files and pasted HTML code are made. This can also serve as documentation for your IT security team.
Frequently asked questions about the HTML to Markdown Converter
Are both .html and .htm files supported?
Yes. .html, .htm, and .xhtml files can all be dropped in and converted to Markdown.
Can I paste HTML code instead of uploading a file?
Yes. Switch to the "Paste HTML code" tab and paste the full page source or just a snippet of the body.
Are tables, lists, links, and code blocks preserved?
Yes. Headings (H1–H6), bullet and numbered lists, tables (GFM pipe syntax), links, inline code, and fenced code blocks are all preserved.
Is my HTML sent to any server?
No. All processing happens inside your browser. Neither your uploaded HTML files nor pasted HTML code is sent to or stored on sakutto servers.
Related Tools
Convert to Markdown Tool List →PDF to Markdown Converter
Convert PDF content to Markdown format. Auto-detects headings, tables, and lists — ideal for RAG and AI workflows.
Convert to MarkdownWord to Markdown Converter
Convert Word (.docx) files to Markdown. Preserves headings, tables, and lists. Runs entirely in your browser — safe for confidential documents.
Convert to MarkdownExcel to Markdown Converter
Convert Excel (.xlsx / .xls / .csv) files to Markdown tables. Each sheet becomes a GFM pipe table. Runs entirely in your browser — safe for confidential data.
Convert to MarkdownPowerPoint to Markdown Converter
Convert PowerPoint (.pptx) files to Markdown. Each slide becomes a `## Slide N` heading with body text, bullet lists, and speaker notes preserved. Runs entirely in your browser — safe for confidential decks.
Convert to MarkdownURL to Markdown Converter
Convert any public web page URL to Markdown. Preserves headings, tables, lists, and links — perfect for LLM and RAG preprocessing, research notes, and archiving web articles.