Turn a web page into LLM-ready Markdown

Fetch a page with curl, convert the HTML to Markdown with the mdkit API — a two-line pipeline for feeding web content to an LLM.

mdkit deliberately does not fetch URLs for you — you stay in control of what gets fetched, with your own client, headers and cookies. The pipeline is two commands: fetch the page, then convert the HTML.

curl

curl -s https://example.com/article -o article.html
curl -F "file=@article.html;type=text/html" https://mdkit.online/v1/convert

Or in one pipe, uploading from stdin:

curl -s https://example.com/article | \
  curl -F "file=@-;type=text/html;filename=article.html" https://mdkit.online/v1/convert

Python

import httpx

html = httpx.get("https://example.com/article").text
resp = httpx.post(
    "https://mdkit.online/v1/convert",
    files={"file": ("article.html", html.encode(), "text/html")},
)
print(resp.json()["markdown"])

Try it

Try it free — or paste the page source into the free HTML→Markdown tool.