VOOZH about

URL: https://thenewstack.io/cloudflares-markdown-for-agents-automatically-make-websites-more-aifriendly/

⇱ Cloudflare's Markdown for Agents automatically make websites agent-ready - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2026-02-22 07:00:02
Cloudflare's Markdown for Agents automatically make websites agent-ready
AI / AI Engineering

Cloudflare’s Markdown for Agents automatically make websites agent-ready

We don't think of Cloudflare, the well-known security and Content Delivery Network provider, as being involved in AI, but here we are.
Feb 22nd, 2026 7:00am by Steven J. Vaughan-Nichols
👁 Featued image for: Cloudflare’s Markdown for Agents automatically make websites agent-ready
ghariza mahavira for Unsplash+.

Cloudflare, the well-regarded security and Content Delivery Network company, has launched a new feature called “Markdown for Agents” that automatically converts web pages from HTML to Markdown whenever AI agents request them — cutting token usage by as much as 80 percent.

Why? Can’t large language models (LLMs) read HTML? Of course they can, but from a model’s perspective, HTML is expensive noise.

A typical webpage includes HTML formatting like divs, as well as scripts and other payloads, which all become tokens the model must then “pay” to read. LLMs couldn’t care less about this markup around the text. In the end, this only burns extra tokens.  

How bad is it? Cloudflare’s own blog post announcing this news, when rendered as HTML, would weigh in at 16,180 tokens. In Markdown, this would only be 3,150 tokens. That’s a 80% saving in token usage. This is a real savings in inference costs. 

From HTML to Markdown

Cloudflare handles this by real‑time HTML‑to‑Markdown conversion at the edge for any site that enables Markdown for Agents. When a client includes an Accept: text/markdown header, Cloudflare fetches the original HTML from the origin, converts it to Markdown, and serves the transformed content instead of the full web page markup. The company says popular coding agents such as Claude Code and OpenCode already send these headers, which means many existing AI tools can immediately take advantage of the feature.

To make the content more machine‑friendly, Cloudflare adds an x-markdown-tokens response header that exposes the token count, allowing agents to determine whether a document fits within their context window or must be chunked. Converted responses also include a content-signal header (ai-train=yes, search=yes, ai-input=yes), indicating that the publisher allows AI training, search indexing, and agentic use by default.

Cloudflare says future versions will let site owners customize these content‑signal policies beyond the current defaults.

👁 Image

Cloudlare’s response to a Markdown request (credit: Cloudflare).

Markdown for Agents relies on standard HTTP content negotiation, using the Accept header to distinguish human traffic from AI crawlers or other text-only clients. An AI agent can request Markdown by sending Accept: text/markdown (often alongside text/html), while regular browser visits continue to receive the normal HTML page. Cloudflare’s edge then performs the conversion “on the fly,” without requiring any changes to site templates, CMS setups, or separate Markdown endpoints.

Getting started

Cloudflare customers on Pro and Business plans can flip the feature on from the AI Crawl Control section of the Cloudflare dashboard, where Markdown for Agents appears as a dedicated toggle. The same capability is available through the Cloudflare API.

For SaaS providers using Cloudflare for SaaS, Markdown conversion can be turned on for all custom hostnames via a dashboard “Quick Actions” switch, or selectively enabled per hostname using custom metadata and configuration.

Cloudflare frames Markdown as a de facto lingua franca for AI agents. Cloudflare is far from the only company to have spotted the advantages of using Markdown for agents and ML. 

Markdown Alternate

For example, Joost de Valk, a Dutch Internet entrepreneur and WordPress developer, has a WordPress plugin, Markdown Alternate, that also works with agents. He writes that his approach and Cloudflare can work together. “A WordPress site could use Markdown Alternate for rich, WordPress-aware markdown with dedicated URLs and full metadata, while Cloudflare’s feature provides a baseline for every other site on their network. The plugin gives you control and depth; Cloudflare gives you breadth and zero effort.”

There are also more directly competitive programs, like Fasterize EdgeSEO (Markdown for AI bots). This is an edge service that dynamically converts HTML pages to Markdown for known AI bots, without separate .md URLs.​ Another Cloudflare rival in this space is Firecrawl. This is a commercial “web data API for AI” that crawls, scrapes, and normalizes sites for LLM use.

For teams building AI-powered workflows that consume web content, some form of HTML-to-Markdown conversion is quickly becoming a necessity. Cloudflare’s edge-native approach lowers the barrier to entry: site owners flip a switch and every page becomes agent-ready.

TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.