markdown.new - Markdown for Agents | Cloudflare-Powered URL to Markdown
Saturday, February 14, 2026 AI
Scraped Article
# Markdown for Agents
The web was built for humans. AI agents need structured data. We convert any URL to clean Markdown using Cloudflare's native `text/markdown` content type — no parsing, no waste.
80%fewer tokens than raw HTML
Convert
`https://markdown.new/any-url-here`
Prepend markdown.new/ to any URL in your browser for instant conversion
## Three-Tier Conversion Pipeline
We try the fastest method first and fall back automatically. Every request gets the best possible Markdown.
Primary
### Markdown for Agents
Fetches the URL with `Accept: text/markdown`. Cloudflare-enabled sites return clean Markdown directly from the edge — zero parsing needed.
fetch(url, {
headers: {
Accept: "text/markdown"
}
})
Fallback 1
### Workers AI
If content negotiation returns HTML, we pass it directly through Cloudflare Workers AI `toMarkdown()` — fast, no re-fetch needed.
env.AI.toMarkdown(\[{\
name: "page.html",\
blob: htmlBlob\
}\])
Fallback 2
### Browser Rendering
For JS-heavy pages, we render in a headless browser via Cloudflare's Browser Rendering API for full page content extraction.
POST/browser-rendering/markdown
{ "url": "https://..." }
// Full page render
## Why Markdown Matters for AI
Feeding raw HTML to an AI is like paying by the word to read packaging instead of the letter inside.
HTML — 12-15 tokens
<h2 class="section-title"
id="about">About Us</h2>
**16,180** tokens for a blog post
Markdown — 3 tokens
\## About Us
**3,150** tokens for the same post
80%
Token reduction
5x
More content per context window
0
External dependencies
## What You Get Back
Clean Markdown with metadata headers, including token count via `x-markdown-tokens`.
HTTP/2 200
content-type:text/markdown; charset=utf-8x-markdown-tokens:725// estimated token countvary:accept
\-\-\-
title:Markdown for Agents
\-\-\-
\# Introducing Markdown for Agents
The way content and businesses are discovered
online is changing rapidly. Now the traffic is
increasingly coming from AI crawlers and agents
that demand structured data...
## Built For
Developers, AI agents, and teams building the next generation of intelligent applications.
→AI agents that browse and summarize the web
→RAG pipelines that need clean document chunks
→Training data preparation for LLMs
→Documentation migration and static site generators
→Knowledge base builders and research tools
→Content archival in human-readable format