HTML to Markdown over a REST API
Strip markup, keep meaning: convert HTML to clean Markdown via the mdkit API, or paste it into the free browser tool — no signup.
Last updated
HTML is the messiest common input: navigation, scripts and markup noise drown the content. Converting it to Markdown keeps the structure (headings, lists, links, tables) and drops the noise — which is why Markdown is the de facto ingestion format for LLM pipelines.
curl
curl -F "file=@page.html;type=text/html" https://api.mdkit.online/v1/convert
Plain text (text/plain) is accepted too, so you can push raw scraped content
through the same endpoint.
No code at all
For a one-off conversion, paste the HTML into the free HTML→Markdown tool — it runs the same conversion in the browser page, no signup, up to 100 KB.
Try it
FAQ
- Is there a free HTML-to-Markdown API?
- Yes. POST HTML to /v1/convert with no key at 30 requests per minute per IP, or paste it into the free browser tool at /tools/html-to-markdown with no signup at all.
- How is this different from a local library like html2text?
- For simple HTML it is not, and a local library is the right answer. The API earns its place when you need the same clean output across PDF, Word, PowerPoint and Excel too, without maintaining a converter per format.
- Does the conversion strip scripts and styling?
- Yes — the output is the document's text content as Markdown. Presentation markup is not something an LLM prompt benefits from.