Markdown to HTML (URL)
Convert a remote Markdown URL to a downloadable HTML file.
GET
1 credit
/v1/convert/markdown-to-html-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/markdown-to-html-file?url=https://toolkitapi.io/README.md"
import httpx
resp = httpx.get(
"https://convert.toolkitapi.io/v1/convert/markdown-to-html-file?url=https://toolkitapi.io/README.md",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/markdown-to-html-file?url=https://toolkitapi.io/README.md", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
Binary HTML file streamed as a download (Content-Type: text/html)
Description
Convert a remote Markdown URL to a downloadable HTML file.
How to Use
1
1. GET with the Markdown `url`.
2
2. Optionally set `gfm`, `sanitize`, or `filename`.
3
3. Save the streamed HTML.
About This Tool
Fetches a Markdown file from a URL and streams back an HTML file. URL-based counterpart to [Markdown to HTML](/convert/tools/markdown-to-html).
The rendered HTML is a complete standalone document with a default stylesheet, suitable for offline reading or hosting as-is.
Why Use This Tool
- README snapshots — Render a project README as a standalone HTML page
- Documentation exports — Produce distributable HTML from Markdown source
- Static site fallbacks — Generate HTML artifacts without running a full SSG
- Email embedding — Pre-render Markdown as HTML for email pipelines
Frequently Asked Questions
Is the HTML a complete document?
Yes — `<html>`, `<head>`, and `<body>` are included, with a minimal default stylesheet.
Are relative links preserved?
Yes — relative links inside the Markdown remain unchanged. They resolve against wherever the HTML is hosted.
Can I customize the stylesheet?
Not via this endpoint — post-process the HTML to inject your own styles.
Start using Markdown to HTML (URL) now
Get your free API key and make your first request in under a minute.