---
type: Glossary Term
title: "Markdown twin"
description: "A Markdown twin is a clean text/markdown representation of an HTML web page served either at a deterministic sibling URL (such as /docs/page.html.md or /path/index.md) or dynamically on the canonical URL via HTTP content negotiation (Accept: text/markdown)."
resource: "https://agenticweb.wiki/terms/markdown-twin/"
tags: ["glossary", "read"]
status: stable
generated: { by: agenticweb-builder/1.0, at: 2026-11-29T00:00:00Z }
verified: { by: process:agenticweb-engine, at: 2026-11-12T00:00:00Z }
stale_after: 2026-12-12T00:00:00Z
sources:
  - id: ref-1
    resource: "https://llmstxt.org"
    last_modified: 2026-11-11T00:00:00Z
  - id: ref-2
    resource: "https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/"
    last_modified: 2026-11-12T00:00:00Z
  - id: ref-3
    resource: "https://developers.cloudflare.com/changelog/post/2026-10-09-markdown-for-agents-in-process-conversion/"
    last_modified: 2026-10-09T00:00:00Z
---

# Markdown twin

A **Markdown twin** is a clean `text/markdown` representation of an HTML web page served either at a deterministic sibling URL (such as `/docs/page.html.md` or `/path/index.md`) or dynamically on the canonical URL via HTTP content negotiation (`Accept: text/markdown`).

HTML pages routinely spend 70–90% of their byte payload on navigation chrome, inline scripts, SVG icons, and CSS classes that burn LLM context tokens without adding factual signal. Both [`llms.txt`](/protocols/llms-txt/) (which links `.md` sibling URLs) and [Cloudflare Markdown for Agents](/protocols/cloudflare-markdown-for-agents/) (which converts origin HTML to Markdown at the edge when `Accept: text/markdown` is sent, reaching General Availability on 9 November 2026) standardize how agents fetch the twin directly.

### Wire negotiation example

```http
GET /fundamentals/reference/markdown-for-agents/ HTTP/1.1
Host: developers.cloudflare.com
Accept: text/markdown, text/html;q=0.8

HTTP/1.1 200 OK
Content-Type: text/markdown; charset=utf-8
Vary: Accept
Content-Signal: ai-train=yes, search=yes, ai-input=yes
```

**Protocol contrast:** Sibling `.md` URLs work on any static file host without custom headers, whereas `Accept: text/markdown` content negotiation preserves a single canonical URL and returns `Vary: Accept` alongside `Content-Signal` permissions (note that Cloudflare removed its beta `x-markdown-tokens`, `x-original-tokens`, and `Content-Length` response headers on 9 October 2026 when switching to streaming edge conversion up to 6 MiB).

# Knowledge Graph

* **Related standards**: [llms.txt](/okf/protocols/llms-txt.md), [Markdown for Agents](/okf/protocols/cloudflare-markdown-for-agents.md)
