Anything to Markdown

2026-02-27 [cloudflare, markdown, ai agents, python, swift]

Markdown is the “food” for AI agents. Cloudflare recently introduced Markdown conversion functionality, which allows you to convert multiple file formats into Markdown using their API. Additionally, you can use Browser rendering to turn any URL into Markdown output.

I recently created two small projects that wrap these Cloudflare features, making them easy to integrate into your applications:

Take anything2md for example, all the format or url are hidden behind a unified API:

import anything2md
md = anything2md.transform("https://www.example.com")
md = anything2md.transform("https://pub-979cb28270cc461d94bc8a169d8f389d.r2.dev/somatosensory.pdf")
md = anything2md.transform("https://pub-979cb28270cc461d94bc8a169d8f389d.r2.dev/cat.jpeg")
print(md.markdown)

Supported input formats include PDF, images, HTML, XML, XLSX, DOCX, CSV, Numbers, and more.

Taking a look at the output text of some webpages or pdfs, it doesn’t give perfect markdown layout, but as in most cases, this contents will be fed into AI agents, so it’s good enough.

Cloudflare doesn’t mention the exact rate limit for this feature, but it should be generous enough for light use cases.