llms.txt: What It Is, How It Works, Markdown Format, and Examples
An llms.txt file is a proposed open standard that places a concise Markdown index at the root of your website (https://example.com/llms.txt) to help large language models understand your core pages. AI assistants read llms.txt to bypass noisy HTML menus and scripts. The file curates clean links and descriptions for inference.
Why Does llms.txt Exist and How Does It Differ From robots.txt and sitemap.xml?
Proposed by Jeremy Howard (co-founder of fast.ai and Answer.AI) in September 2024 at llmstxt.org, the llms.txt standard operates as an open convention to solve context window token bloat. Large language models struggle when processing raw web pages filled with navigation wrappers, advertisements, styling code, and JavaScript bundles during interactive chat prompts. Serving a concise, human-readable Markdown briefing at the site root hands AI assistants, RAG pipelines, and answer engines a high-signal map of relevant documentation and services.
The table below compares llms.txt against robots.txt, sitemap.xml, and agents.txt across file formats, consumers, scope, and crawler rules.
| Feature / Dimension | /llms.txt | /robots.txt | /sitemap.xml | /agents.txt |
|---|---|---|---|---|
| Primary Job | Curated context map explaining site purpose and linking key pages | Access and crawl governance declaring allowed or blocked paths | Exhaustive URL inventory for search engine crawlers | Agent action permissions, API rate limits, and endpoint rules |
| File Format | Markdown (text/plain or text/markdown) | Plain text (User-agent and Disallow syntax) | Structured XML (urlset and loc schema) | Plain text or structured JSON |
| Target Consumer | LLM inference engines, AI coding assistants (Cursor, Claude), RAG systems | Search engine crawlers (Googlebot) and AI scrapers (GPTBot) | Search engine indexers (Google, Bing) | Autonomous AI task agents and browser execution bots |
| Content Scope | Selective (top 15 to 50 URLs) with 1-sentence page summaries | Path-based allow and disallow pattern rules | Complete domain inventory (hundreds to millions of URLs) | Tool calling parameters, authorization scopes, and allowed actions |
| Does It Block Crawlers? | No (strictly informational guidance; blocks zero requests) | Yes (enforces exclusion under RFC 9309 rules) | No (serves discovery metadata) | Yes (sets task and execution boundaries) |
XML sitemaps often enumerate thousands of raw URLs without descriptive summaries, exhausting context tokens without informing language models which pages hold core documentation. Understanding how crawler boundaries and discovery indexes interact ensures balanced machine accessibility, explained in our guide to robots.txt: The Complete Guide With Examples. System designers verify autonomous machine policies using the dedicated agents.txt Checker.
How Is an llms.txt File Formatted? (The 4-Part Markdown Specification and Example)
The official llmstxt.org specification requires 4 specific Markdown sections in strict top-to-bottom order so deterministic parsers and language models extract structural context reliably.
- Declare an H1 Brand Title: The very first element in /llms.txt consists of a single Markdown level-1 heading (
# PromptDNS) establishing the official project or website identity. - Provide a Blockquote Summary: Positioned immediately below the H1 heading, a concise blockquote (
> Summary) spanning 1 to 3 sentences defines what the platform offers, its intended audience, and key technical capabilities. - Supply Explanatory Context Paragraphs: Optional unadorned text blocks placed before the links articulate operational rules, API baselines, protocol support, or data privacy practices.
- Organize H2 Link Sections: One or more level-2 headings group related resources using standard Markdown list items formatted as
- [Page Title](url): 1-sentence description. The specification reserves the exact heading name## Optionalfor supplementary links that automated parsers skip whenever token capacity runs low.
Reviewing PromptDNS's live production file illustrates how clean structural hierarchy coordinates diagnostic utilities and technical guides:
# PromptDNS
> PromptDNS provides 56 free browser-based DNS, email authentication (SPF, DKIM, DMARC), and AI web infrastructure diagnostic tools alongside 6-hour domain drift monitoring.
All interactive lookup tools execute in the browser over DNS-over-HTTPS (RFC 8484) across Cloudflare, Google, and AliDNS resolvers without logging queried hostnames.
## Core Diagnostic Tools
- [DNS Propagation Checker](https://promptdns.com/dns-propagation-checker/): Query A, AAAA, CNAME, MX, NS, TXT, SOA, PTR, SRV, CAA, DS, and DNSKEY records across 3 global DoH vantages.
- [SPF Record Checker](https://promptdns.com/spf-record-checker/): Validate v=spf1 syntax and count the 10-DNS-lookup limit.
- [DMARC Record Checker](https://promptdns.com/dmarc-record-checker/): Audit _dmarc policy (none, quarantine, reject), alignment, and RUA reporting.
- [AI Crawler Checker](https://promptdns.com/ai-crawler-checker/): Test whether robots.txt allows or blocks GPTBot, OAI-SearchBot, ClaudeBot, and PerplexityBot.
## Technical Reference Guides
- [What Is DNS?](https://promptdns.com/what-is-dns/): Complete architecture of the Domain Name System, 4 server tiers, and 8-step resolution.
- [Email Authentication Guide](https://promptdns.com/email-authentication/): Implementation guides for SPF, DKIM, DMARC, BIMI, MTA-STS, and TLS-RPT.
## Optional
- [Methodology](https://promptdns.com/methodology/): Scoring weights (0-100) and RFC standards used by PromptDNS tools.
- [Pricing](https://promptdns.com/pricing/): Free browser tools and upcoming Starter and Pro monitoring tiers. Adhering to strict line breaks, absolute HTTPS URLs, and valid heading structures prevents parsing errors across automated tool chains, detailed in our deep dive on llms.txt Syntax and Format Rules.
What Is the Difference Between /llms.txt, /llms-full.txt, and .md Page Mirrors?
The llmstxt.org specification defines a 3-tier ecosystem of Markdown files (/llms.txt, /llms-full.txt, and .md URL mirrors) so AI tools choose between a lightweight table of contents, a single-file documentation dump, or an individual clean article. The table below compares all 3 file types.
| File Path / Pattern | What It Contains | Typical Size (Tokens) | How AI Tools & Developers Use It |
|---|---|---|---|
| /llms.txt | Curated Index Map: H1 title, blockquote summary, section headings, and links with 1-sentence descriptions. | Compact (500 to 4,000 tokens) | Parsed during interactive prompts or agent browsing to quickly identify specific canonical URLs. |
| /llms-full.txt | Complete Documentation Archive: The full body copy of all core guides, API endpoints, and references concatenated into a unified text file. | Substantial (30,000 to 300,000+ tokens) | Ingested directly into large-context models (Claude, Gemini) or vectorized into local RAG systems for offline querying. |
| <url>.md or <url>/index.html.md | Clean Single-Page Mirror: The isolated Markdown text of an individual HTML web page, stripped of headers, sidebars, and scripts. | Targeted (800 to 3,000 tokens per page) | Fetched on demand after an agent inspects /llms.txt and selects a specific page to read in pure Markdown. |
Major developer platforms including Cloudflare, Anthropic, Stripe, Vercel, and Mintlify publish both indexes to accommodate distinct machine workflows. Conversational assistants rely on the compact /llms.txt file for low-latency link discovery, whereas developers building complex software load /llms-full.txt directly into IDE assistants such as Cursor or Claude Code to provide complete API context in a single operation.
Who Actually Reads llms.txt in 2026? (Adoption Reality vs SEO Myths)
Understanding the practical value of llms.txt in 2026 requires separating 3 proven technical use cases from unverified search engine ranking claims.
- Powering AI Coding Assistants, IDE Agents, and RAG Ingestion: Developer platforms and coding tools actively consume /llms.txt and /llms-full.txt. Cursor users use the
@Docsfeature to ingest documentation directly from an llms.txt endpoint. Windsurf, Claude Code, and developer RAG frameworks routinely check for /llms.txt to index third-party libraries without maintaining custom HTML scrapers. - Operating Independently of Traditional Search Ranking Signals: Traditional search engines do not calculate organic rankings from /llms.txt files. Search representatives clarify that Google Search treats the file as arbitrary plain text rather than a direct algorithmic ranking boost. Autonomous search crawlers continue to discover, parse, and rank websites primarily through standard HTML documents, schema markup, and XML sitemaps.
- Improving Citation Precision and Reducing Inference Hallucinations: Grounding language models with structured descriptions and canonical links dramatically improves answer quality. Language models reference canonical documentation directly during user queries when an llms.txt file provides clean Markdown links, preventing hallucinated pricing figures, broken URLs, or outdated technical parameters.
Publishing an llms.txt file requires minimal maintenance while improving conversational discovery, forming an integral component of modern Generative Engine Optimization (GEO): The Complete Guide and overall domain preparation in AI Readiness: Is Your Domain Machine-Readable?.
How to Create, Deploy, and Validate Your llms.txt File in 4 Steps
To build and publish a spec-compliant llms.txt file on your domain, complete 4 curation, generation, deployment, and crawler-access steps.
- Choose Your Most Important Pages: Select 15 to 40 core pages that represent your primary services, documentation hubs, pricing structures, and technical guides. Avoid dumping entire blog archives, category tags, or paginated search results into the file.
- Generate Valid Markdown Syntax: Construct your file using our free browser-based llms.txt Generator, which formats the mandatory H1 title, blockquote summary, and categorized link sections automatically.
- Deploy the File to Your Site Root: Save the output as
llms.txtinside your project static directory (such aspublic/llms.txtin Astro, Next.js, or SvelteKit) so the server returns HTTP 200 OK withContent-Type: text/plain; charset=utf-8:# Verify live llms.txt headers and plain-text delivery via terminal: curl -i https://promptdns.com/llms.txt - Verify Machine Accessibility and Permissions: Ensure your CDN edge and crawler policies permit automated tools to read the file. Audit your configuration with the AI Readiness Score Audit, inspect bot permissions in the AI Crawler Checker, validate syntax in the robots.txt Checker and Validator, and follow operational guides detailing How to Allow AI Crawlers or restrict specific scrapers in How to Block AI Crawlers.
Publishing clean Markdown maps establishes modern standards across AI Crawler Access. Understanding the role of an llms.txt file, adopting the llmstxt.org Markdown standard, contrasting llms.txt vs llms-full.txt, aligning llms.txt vs robots.txt and sitemap.xml, and driving LLM context window optimization ensure that both autonomous agents and interactive language models digest your digital assets with maximum fidelity.
Frequently Asked Questions
Does llms.txt replace robots.txt or sitemap.xml? ▾
No, llms.txt complements robots.txt and sitemap.xml rather than replacing them. Your robots.txt file controls which bots are permitted to crawl your site, sitemap.xml lists every indexable URL for search engines, and llms.txt provides a curated Markdown summary of your most important pages for AI models.
Where do I put the llms.txt file on my website? ▾
Place the file at the exact root directory of your domain so it is publicly accessible at https://yourdomain.com/llms.txt (and optionally https://yourdomain.com/llms-full.txt), served over HTTPS with a text/plain; charset=utf-8 or text/markdown content type.
How many links should I include in my llms.txt file? ▾
In practice, keep your main /llms.txt file concise, typically between 15 and 50 curated links (around 1,000 to 3,000 tokens total). Dumping hundreds of minor URLs into /llms.txt defeats its entire purpose of saving context-window tokens; put secondary links under the ## Optional heading and use /llms-full.txt for full-text documentation dumps.
Will adding an llms.txt file stop AI companies from training on my website? ▾
No, in real-world deployments llms.txt is purely an informational guide to help AI understand your content, not an opt-out or blocking mechanism. Website administrators wanting to block AI companies from scraping content for model training configure Disallow: / rules in /robots.txt and enforce them with a Cloudflare WAF or server 403 block.
Last verified: 2026-11-11