HTML to Markdown (URL)
Convert a remote HTML URL to a downloadable Markdown file.
GET
1 credit
/v1/convert/html-to-markdown-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/html-to-markdown-file?url=https://toolkitapi.io/article"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/html-to-markdown-file?url=https://toolkitapi.io/article",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/html-to-markdown-file?url=https://toolkitapi.io/article", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary Markdown file streamed as a download (Content-Type: text/markdown)
Description
Convert a remote HTML URL to a downloadable Markdown file.
How to Use
1
1. GET with the page `url`.
2
2. Save the streamed Markdown.
About This Tool
Fetches an HTML page and streams back a Markdown file. URL-based counterpart to [HTML to Markdown](/convert/tools/html-to-markdown).
Why Use This Tool
- Article archiving — Snapshot web articles as Markdown for offline reading
- Content curation — Save pages into a Markdown-based knowledge base
- Migration — Bulk-convert an HTML site to Markdown
- CMS ingestion — Import public pages into a Markdown CMS
Frequently Asked Questions
Is boilerplate stripped?
Simple boilerplate (nav, footer) is not auto-detected. Feed the main content's URL directly, or post-process the result.
Are images preserved?
Yes — as Markdown image references with the original URLs.
Tables?
Yes — rendered as GFM-style Markdown tables.
Start using HTML to Markdown (URL) now
Get your free API key and make your first request in under a minute.