Skip to content

Free tool Agent Frendly

Markdown for agents test

Check whether your homepage answers with Markdown when an AI tool asks for it with the Accept: text/markdown header, and whether it links to a Markdown version.

Test your homepage

What Markdown for agents is

An HTTP request says which formats it prefers in its Accept header. An AI tool can send Accept: text/markdown. A site that supports it answers with a Markdown version of the page and Content-Type: text/markdown, while browsers, which ask for HTML, still get the normal page. One URL serves both.

Why agents need it

Markdown carries the text and links of a page without scripts, styles and layout markup. An agent spends less of its context on markup and reads the content more reliably.

A correct example

Our homepage does this. Ask for Markdown and you get Markdown:

$ curl -sS -H 'Accept: text/markdown' https://agentfrendly.com/
# Can an agent use your product?

Agent Frendly runs the free Agent Readiness Test. We check whether AI assistants and AI search can find your site, ...

The response has Content-Type: text/markdown; charset=utf-8 and Vary: Accept. The Vary header tells caches to keep the HTML and Markdown versions apart.

How to add it

  • Cloudflare: Markdown for Agents converts your HTML to Markdown when a request asks for it. It launched in February 2026 and has been generally available since 9 November 2026, on Pro, Business and Enterprise plans and for SSL for SaaS customers. Turn it on in the dashboard under Agent Readiness, Markdown for Agents, Serve Markdown to AI agents. It answers with Content-Type: text/markdown; charset=utf-8, adds Accept to Vary, and converts pages of up to 6 MiB of HTML.
  • Vercel and Next.js: Vercel documents a pattern for this: a route handler that returns Markdown with Content-Type: text/markdown; charset=utf-8 and Vary: Accept, and a rewrite that sends requests whose Accept header contains text/markdown to it.
  • Netlify: there is no built-in setting. An Edge Function can check the Accept header and return the Markdown version.
  • Any server: when text/markdown is preferred in Accept, serve a Markdown file with Content-Type: text/markdown and Vary: Accept.

Also link to the Markdown version from the page head, so agents that never send the header can still find it:

<link rel="alternate" type="text/markdown" href="/index.md">

What this check does

We request your homepage with Accept: text/markdown. It passes when the answer is successful, has Content-Type: text/markdown, and is not HTML. It does not depend on any other header, such as the x-markdown-tokens header Cloudflare stopped sending on 9 October 2026. If your homepage sends HTML but links to a Markdown version, the result is "Needs work". We test only the homepage, because the scan reads your main domain.

Test your homepage

Free, no account needed. We read your homepage, a few pages it links to, and standard files like robots.txt. We only check your main domain, so anything after it in the URL is ignored.