AI-powered agents are gradually replacing traditional search engines as the primary means of online discovery. This transition demands that businesses rethink how their content is structured for machine consumption. Cloudflare is at the forefront of this shift, introducing Markdown for Agents, a feature that allows websites to serve their content directly in markdown, the language AI systems prefer.
Why Markdown Matters for Agents
HTML was designed for people, not machines. It's verbose and packed with elements that add little value to AI agents. Markdown, on the other hand, offers a streamlined, explicit structure that eliminates excessive tokens, sometimes achieving an 80% reduction in token usage.
Since AI agents process content on a per-token basis, markdown's efficiency translates directly to faster, more cost-effective AI operations. Despite its benefits, most of the web remains HTML-based, creating the need for conversion steps that waste resources and risk misinterpreting content.
Automatic HTML-to-Markdown Conversion,Powered by Cloudflare
Cloudflare’s new solution enables real-time, automatic conversion of any HTML website on its network to markdown whenever Markdown for Agents is enabled. AI agents need only include the Accept: text/markdown header in their HTTP requests. Cloudflare intercepts these requests, converts the HTML to markdown on the fly, and returns the result,no manual work or extra infrastructure required.
- AI crawlers like Claude Code and OpenCode can seamlessly request markdown content.
- Each response includes a
x-markdown-tokensheader, helping agents process and chunk content efficiently. - HTTP headers communicate permitted uses, supporting clear and transparent content usage policies.
Content Signals Policy for Responsible AI Use
As AI's influence grows, content creators need control over how their data is used. Cloudflare's Content Signals framework introduces headers like Content-Signal: ai-train=yes, search=yes, ai-input=yes in every markdown response. This ensures AI systems and crawlers know exactly what content can be used for training, search, or agent input. Upcoming enhancements promise even more granular control for publishers.
How to Try Markdown for Agents
Anyone can experience this feature by visiting Cloudflare's Developer Documentation or the Cloudflare Blog and making HTTP requests with the Accept: text/markdown header. The result is markdown-formatted content, ideal for AI systems and developers seeking lightweight, structured data.
Additional Markdown Conversion Options
Cloudflare provides more than just automatic conversion for its own network:
- Workers AI supports an
AI.toMarkdown()function, converting a range of document types and even summarizing content. - The Browser Rendering REST API converts dynamic web pages or applications to markdown for use beyond Cloudflare’s edge network.
Tracking and Insights with Cloudflare Radar
Understanding how AI agents consume web content is critical. Cloudflare Radar now tracks markdown and HTML usage by bots and crawlers, offering detailed analytics by MIME type. This helps organizations monitor consumption patterns and fosters transparency in AI-driven access, with data available via public APIs and the Data Explorer.
Getting Started: Enable Markdown for Agents Today
Cloudflare customers can activate this feature easily, just log into the dashboard, select your zone, and toggle Markdown for Agents under Quick Actions. It's in open beta and free for Pro, Business, Enterprise, and SaaS customers. Comprehensive support and documentation are available, and Cloudflare welcomes feedback as the web embraces a more agent-friendly future.
Key Takeaway
The future of the web is defined by AI agents and their need for efficient, structured data. By delivering markdown at the source, Cloudflare enables businesses to treat agents as first-class users, improving AI efficiency while providing publishers with clear control over their content. It’s a major step toward a more collaborative and accessible internet.
Source: Cloudflare Blog

Cloudflare's Markdown for Agents: Shaping the Future of Web Content for AI