# Markdown content negotiation

> Markdown negotiation is plain HTTP. When a request asks for text/markdown, the server returns a Markdown version of the same URL, with a Vary header on Accept so caches keep the two versions apart.

_Published 2026-11-26, updated 2026-11-29, facts checked 2026-11-26. https://agents404.com/protocols/markdown-negotiation_

Serving a Markdown representation when a client asks for text/markdown, with a Vary header on Accept.

## Facts

- Status: Stable
- Version: RFC 9110, RFC 7763
- Owner: IETF
- Layer: Content (can agents read it?)
- Where on a site: Accept: text/markdown on any URL
- Specification: https://www.rfc-editor.org/rfc/rfc9110
- Last checked: 2026-11-26

## In short

- An agent sends `Accept: text/markdown`. The server answers with `Content-Type: text/markdown` and `Vary: Accept`. Same URL, no new file [1][2].
- The building blocks are stable RFCs. Using them for agents is a practice led by vendors, not a standard of its own.
- Markdown is much smaller than HTML. Cloudflare measured one page at 16,180 tokens as HTML and 3,150 as Markdown [3].
- Not every agent asks for it. In a February 2026 test, 3 of 7 coding agents requested Markdown [4].
- 3 of the 14 sites we scanned in November 2026 serve it.

## Agents can ask for the same page as Markdown

A browser asks for HTML; an agent can ask for the same page as Markdown, and the server picks the version. This is ordinary HTTP content negotiation [1]. People visiting the site see no change.

Markdown helps an agent because it keeps headings, lists, links and tables but drops navigation, scripts and styling. The agent spends fewer tokens and is less likely to read a cookie banner as content.

## The server answers the Accept header

- **The request it answers** sends `Accept: text/markdown`, possibly listed with other types and q-values [1].
- **The response** carries `Content-Type: text/markdown; charset=utf-8`. RFC 7763 requires the `charset` parameter [2].
- **For caching,** send `Vary: Accept` whenever the same URL serves both HTML and Markdown, so a cache does not hand Markdown to a browser [1].
- **As an optional link,** pages can advertise a Markdown copy with `rel="alternate" type="text/markdown"`, and copies can live at `page.md`. That convention comes from llms.txt v2, a proposal [5].
- **On Cloudflare,** Markdown for Agents (vendor-proprietary) converts HTML at the edge on paid plans, generally available since 2026-11-09 [6]. If your origin sends no `Content-Signal` header, it adds one that allows all uses; send your own if you want a different signal [6]. It stopped sending the `x-markdown-tokens` header on 2026-10-09, so do not build anything that needs it [7].

## Few sites answer in Markdown yet

- Cloudflare Radar found 3.9% of roughly 200,000 top domains passing in April 2026 [8].
- Radar's 2026-11-02 scan, as transcribed by TechnologyChecker, counted 4,924 of 115,468 domains [9].
- On the agent side, Checkly found that Claude Code, Cursor and OpenCode requested Markdown, while OpenAI Codex, Gemini CLI, GitHub Copilot and Windsurf did not [4]. A Vercel study of 1,033 agent runs on 25 sites found 65.1% of fetches asked for Markdown, without naming the agents [10].
- Google says Search does not use Markdown versions [11].

In our scan of 14 sites on 2026-11-26, 3 of 14 serve Markdown on request and 1 advertises a Markdown copy of its homepage. Neither venture23.io nor prashish.xyz serves it yet; fixes for both are prepared and checked on a local testbed [12].

## Start with docs, pricing and product pages

- **Docs, pricing and product pages benefit most.**
- **On a Cloudflare paid plan,** turn on Markdown for Agents and check the output.
- **Elsewhere,** generate Markdown at build time and pick the version by the `Accept` header in your server or CDN.
- **Test both directions.** `curl -H "Accept: text/markdown"` should return Markdown with the charset and `Vary: Accept`. A normal browser request must still get HTML.
- **Keep the versions in step.** The Markdown should say what the HTML says, including any usage signals.

A pass shows an agent can get Markdown. It does not show that agents use it or that the copy is complete.

## Questions

### How do I serve Markdown to AI agents?
Check the request's `Accept` header. If it lists `text/markdown`, return a Markdown version of the page with `Content-Type: text/markdown; charset=utf-8` and `Vary: Accept` [1][2]. CDNs such as Cloudflare can do the conversion for you [6].

### Does Markdown negotiation help Google rankings?
No. Google says Search does not need Markdown versions or AI text files [11]. The benefit is for agents and tools that fetch pages directly.

## Sources

| # | Source | Publisher | Primary or secondary | Checked | Status |
|---|---|---|---|---|---|
| 1 | https://www.rfc-editor.org/rfc/rfc9110 | RFC Editor | primary | 2026-11-26 | stable (RFC 9110) |
| 2 | https://www.rfc-editor.org/rfc/rfc7763 | RFC Editor | primary | 2026-11-26 | stable (RFC 7763) |
| 3 | https://blog.cloudflare.com/markdown-for-agents/ | Cloudflare | primary (vendor announcement) | 2026-11-11 | vendor-proprietary |
| 4 | https://www.checklyhq.com/blog/state-of-ai-agent-content-negotation/ | Checkly | secondary (independent test) | 2026-11-11 | measurement (2026-02-19) |
| 5 | https://llmstxt.org/ | Answer.AI (Jeremy Howard) | primary | 2026-11-26 | proposal (v2) |
| 6 | https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/ | Cloudflare | primary | 2026-11-26 | vendor-proprietary (GA 2026-11-09) |
| 7 | https://developers.cloudflare.com/changelog/post/2026-10-09-markdown-for-agents-in-process-conversion/ | Cloudflare | primary | 2026-11-26 | changelog |
| 8 | https://blog.cloudflare.com/agent-readiness/ | Cloudflare | primary (vendor data) | 2026-11-11 | adoption data (2026-04-17) |
| 9 | https://technologychecker.io/blog/agentic-commerce-statistics-insights | TechnologyChecker (Cloudflare Radar data) | secondary | 2026-11-26 | adoption data (2026-11-02) |
| 10 | https://vercel.com/kb/guide/make-your-documentation-readable-by-ai-agents | Vercel | secondary for study data | 2026-11-11 | vendor study |
| 11 | https://developers.google.com/search/docs/fundamentals/ai-optimization-guide | Google Search Central | primary | 2026-11-11 | vendor guidance |
| 12 | Our scans of 14 sites, 2026-11-26 (scanner 0.2.0) | Agents404 | primary (own data) | 2026-11-26 | own data |

## Primary sources

| # | Source | Publisher | Primary or secondary | Checked |
|---|---|---|---|---|
| 1 | https://www.rfc-editor.org/rfc/rfc9110 | RFC Editor | primary | 2026-11-11 |
| 2 | https://www.rfc-editor.org/rfc/rfc7763 | RFC Editor | primary | 2026-11-11 |
