Convert documents to Markdown. Powered by Rust + WebAssembly, based on microsoft/markitdown.
Drop a file here or click to browse
.html .csv .pdf .txt .md .json .ipynb .epub .rss .atom .zip — up to 10 MB
curl -X POST https://<worker-url>/ \
-F "file=@document.html"
curl -X POST https://<worker-url>/ \
-H "Content-Type: text/html" \
-H "X-Filename: page.html" \
--data-binary @document.html
{
"markdown": "# Document Title\n\nConverted content...",
"title": "Document Title"
}
const form = new FormData();
form.append("file", fileBlob, "doc.html");
const res = await fetch("/", { method: "POST", body: form });
const { markdown, title } = await res.json();
import requests
resp = requests.post(
"https://<worker-url>/",
files={"file": open("doc.html", "rb")}
)
data = resp.json()
print(data["markdown"])
File type is detected from the Content-Type header, X-Filename extension,
and magic bytes. For best results, include the correct file extension.