Skip to content
What Is llms.txt? The Spec, Examples and Honest Verdict
Article

What Is llms.txt? The Spec, Examples and Honest Verdict

AI & Machine Learning

llms.txt tells AI models how to read your site. The spec explained, real examples, how to write one, and whether it actually does anything yet in 2026.

By MrScraper Team 10 min read

Adding an llms.txt file to your web server root is one of the most discussed proposals in modern web architecture. As large language models (LLMs) and autonomous AI search agents increasingly replace traditional search engines, developers and SEO strategists are asking how to make web content easily readable by machines without wasting context window tokens.

The file proposal—originally pitched by Jeremy Howard at Answer.AI—serves as a curated, Markdown-formatted index designed specifically for AI models. But does adding one actually change how ChatGPT, Claude, or Perplexity cite your content, or is it another unproven trend?

Note

The Honest Verdict (2026) Is llms.txt worth adding today? Yes, with tempered expectations. Creating an llms.txt file takes under twenty minutes and provides an clean Markdown map of your documentation. As of August 2026, developer platforms like Mintlify and Cloudflare, along with AI tools like Perplexity and Claude agents, actively fetch it. However, standard search crawlers do not require it, and adding the file will not magically boost your organic rankings overnight.

What Is an llms.txt File? The Proposed Standard

Understanding what is llms.txt starts with recognizing how LLMs interact with web content. When an AI search engine or developer agent visits your website, parsing raw HTML navigation bars, cookie consent popups, and JavaScript bundles consumes valuable context window tokens.

An llms txt file solves this by providing a standardized Markdown text file located at /llms.txt on your domain root. It provides a human-readable and machine-friendly directory of your site's most critical pages, summarized concisely to maximize token efficiency.

https://yourdomain.com/llms.txt

Unlike traditional web feeds, llms.txt does not use complex XML tags or JSON schemas. Instead, it relies on simple Markdown formatting (# H1, blockquotes, and list items), making it trivial for any LLM to parse using standard text splitters.

The Exact llms.txt Spec Format: How to Write One

The official llms.txt spec (v2 proposal maintained at llmstxt.org) defines a clean structural layout. The file must be formatted strictly in Markdown and follow four layout rules:

  1. H1 Title: The file MUST start with a single # H1 heading containing the project or site name.
  2. Blockquote Summary: A short blockquote (> Summary) immediately following the H1, explaining what the site or project does in 2–4 sentences.
  3. Optional Context Paragraphs: Markdown prose providing background guidance for the AI reader.
  4. Sectioned Link Lists: H2 headers (## Section Name) grouping markdown bullet links with short descriptions formatted as - [Page Title](url): Concise summary.
markdown
# Project Name

> Project Name provides high-performance web APIs for developer automation. This file outlines key documentation for AI assistants and automated agents.

Optional background context explaining system constraints or architectural defaults.

## Core Documentation

- [API Reference](https://example.com/docs/api): Complete OpenAPI specs and endpoint documentation.
- [Authentication](https://example.com/docs/auth): Guide on Bearer tokens and API key rotation.

## Optional Resources

- [Architecture Guide](https://example.com/docs/arch.md): High-level system topology diagram.

The Role of llms-full.txt

The specification also introduces llms-full.txt. While llms.txt acts as an index of linked URLs, llms-full.txt concatenates the complete text of all essential documentation into a single contiguous Markdown file. This allows AI systems with large context windows (such as Gemini 1.5 Pro or Claude 3.5 Sonnet) to ingest your entire documentation suite in a single HTTP request.

Three Real llms.txt Examples: Minimal, Good, and Bloated

Examining a real llms.txt example helps separate production-ready implementations from poor configurations.

1. Minimal llms.txt (Fast API Docs Index)

markdown
# Acme API

> High-throughput payment processing API infrastructure.

## Documentation

- [Getting Started](https://acme.dev/docs/start): Quickstart guide.
- [API Spec](https://acme.dev/docs/spec): Endpoints reference.

Commentary: Ideal for small microservices or open-source libraries. It uses minimal tokens while giving AI models exact entry points.

2. Complete Production-Grade llms.txt (Well-Curated)

markdown
# Cloud Platform Docs

> Scalable cloud infrastructure hosting for serverless functions, static assets, and edge databases.

This document guides AI agents to primary technical specifications.

## Essential Guides

- [Deployment Quickstart](https://cloud.example/docs/deploy): Step-by-step CLI deployment commands.
- [Environment Variables](https://cloud.example/docs/env): Managing secrets across staging and production.

## System Limits & Pricing

- [Rate Limits](https://cloud.example/docs/limits): Request quotas and concurrent execution boundaries.
- [Pricing Model](https://cloud.example/docs/pricing): Token and bandwidth billing calculations.

## Optional Full Context

- [Full Text Index](https://cloud.example/llms-full.txt): Complete concatenated documentation file.

Commentary: Excellent implementation. It provides clear sectioning, concise page summaries, and links to llms-full.txt for deep context models.

3. Bloated Anti-Pattern (Keyword Stuffed)

markdown
# Best Cheap Cloud API Provider Free Fast Tools 2026

> The best affordable cloud API provider with top performance and high availability.

## Links

- [Link 1](https://example.com/page1)
- [Link 2](https://example.com/page2)
- [Link 3](https://example.com/page3)
... (500 uncurated URLs without descriptions)

Commentary: Fails the spec. It lacks descriptive summaries, includes raw uncurated link dumps, and uses spammy keyword stuffing that wastes model context tokens.

llms.txt vs robots.txt vs sitemap.xml

A common area of confusion is how llms.txt relates to existing root-level web standards. Understanding llms.txt vs robots.txt requires evaluating target consumers and architectural intent.

Make Your Web Content AI-Readable With Clean Structured Ingestion

While robots.txt controls access permissions and sitemap.xml lists URL structures, llms.txt delivers curated, token-efficient Markdown content directly to AI models.

Standard Primary Consumer Content Format Purpose & Behavior
robots.txt Web Crawlers (Googlebot, GPTBot) Plain Text Directives Restricts crawler access to specific paths (Disallow: /admin)
sitemap.xml Search Engine Indexers XML Markup Provides a complete list of URLs and update frequencies
llms.txt LLMs & AI Agents Markdown Spec Provides a curated, token-optimized text index for AI models

Does llms.txt Work in 2026? AI Ecosystem & Crawler Support

The central question for webmasters is straightforward: does llms.txt work in production today?

As of August 2026, adoption across the AI ecosystem falls into three distinct categories:

1. Active Adopters (Confirmed Support)

  • Developer Documentation Platforms: Services like Mintlify, ReadMe, and GitBook automatically generate and serve llms.txt files for hosted docs.
  • AI Search Engines & Agents: Perplexity, Claude Web Search agents, and custom GPT actions actively look for /llms.txt when exploring documentation domains to construct accurate citations.
  • Edge Networks: Cloudflare provides one-click workers to convert HTML sites into /llms.txt indexes automatically.

2. Passive Consumers (Secondary Crawling)

  • GPTBot & ClaudeBot: Primary AI web crawlers fetch /llms.txt when present, using it to prioritize discovery of core documentation URLs.

3. Non-Adopters (Standard Indexing)

  • Traditional Search Engines: Standard Google Search indexers continue to rely on HTML parsing, sitemap.xml, and structured schema.org data.

The Chrome Lighthouse Agentic Signal

A notable milestone in mid-2026 was Chrome Lighthouse introducing an experimental audit signal for agentic web readiness. Lighthouse checks for the presence of /llms.txt under its machine readability audit suite, signaling that browser vendors anticipate agentic web navigation becoming a standard pattern.

How AI Crawlers Read Sites Without llms.txt

When a site lacks an llms.txt file, AI models and web crawlers must inspect raw HTML pages individually. They execute HTTP requests, strip boilerplate markup, extract text node content, and attempt to deduce heading hierarchy automatically.

For dynamic Single Page Applications (SPAs) built on modern JavaScript frameworks, AI crawlers face significant obstacles. Most AI crawlers still read pages the hard way, and many cannot run JavaScript at all. MrScraper's Web Scraper API returns clean structured content from any page, which is the same problem llms.txt is trying to solve from the other direction.

For a deeper look into web crawling mechanics, read our guides on JavaScript crawling for web scrapers, agentic search trends, the rise of agentic AI, and web crawling vs web scraping.

The Criticism and Risks: Summary Substitution & Token Manipulation

While llms.txt offers clear benefits, the proposal has drawn valid criticism from web standards developers and security researchers:

1. Summary Substitution Risk

Critics argue that by providing pre-written blockquote summaries in llms.txt, site owners risk AI search engines citing the summary instead of reading the source page. If the summary lacks nuance, the AI model may return superficial answers.

2. Generative Engine Optimization (GEO) Manipulation

Like meta keywords in early search engine history, unverified llms.txt files can be manipulated with biased claims. AI models must balance trusting curated site summaries against verifying facts in full source text.

3. Maintenance Staleness

If an engineering team updates API documentation but forgets to update llms.txt, AI assistants will direct users to outdated URLs or deprecated parameters, creating stale context.

How to Create and Test Your File: llms.txt Generator Tools

Setting up your file takes only a few minutes. You can build it manually or use an automated llms.txt generator tool.

bash
# Example CLI generation using node
npx llmstxt-generator --input ./docs --output ./public/llms.txt

Setup Steps:

  1. Create the File: Create a plain Markdown file named llms.txt.
  2. Add Header Metadata: Include your project H1 title and blockquote summary.
  3. Curate Core Links: Group primary documentation URLs under H2 section headings with 1-sentence descriptions.
  4. Deploy to Root: Upload the file to your root web directory (https://yourdomain.com/llms.txt).
  5. Verify Access: Ensure your web server returns the text/markdown or text/plain Content-Type header without authentication blocks.

Frequently Asked Questions

Is llms.txt actually used by AI models?

Yes, as of 2026, AI search tools like Perplexity, Claude agents, and developer platforms like Mintlify actively fetch and process llms.txt files. However, traditional search engines like Google still rely primarily on standard HTML crawling and sitemap.xml.

Is llms.txt worth it?

Yes, llms.txt is worth the minimal setup effort. Creating one takes under twenty minutes and ensures AI assistants, technical chatbots, and agentic crawlers parse your core documentation with high token efficiency and accurate link context.

Is llms.txt mandatory?

No, llms.txt is not mandatory. It is a proposed community standard, not an official W3C or IETF web requirement. Websites function normally without it, but adding one improves content readability for AI models.

What is an llms.txt file?

An llms.txt file is a plain Markdown document located at the root of a website (/llms.txt). It provides a curated index of a site's key pages, summaries, and documentation links optimized specifically for LLMs.

What is the difference between llms.txt and robots.txt?

robots.txt specifies access permissions for web crawlers using directive rules (Allow/Disallow). In contrast, llms.txt provides a curated Markdown directory of clean content to help AI models digest web pages efficiently.

Does llms.txt help SEO?

Indirectly, yes. While llms.txt does not directly boost traditional Google organic rankings, it enhances Generative Engine Optimization (GEO) and Answer Engine Optimization (AEO) by making your content easily indexable for AI search engines.

What is llms-full.txt?

llms-full.txt is a companion file to llms.txt that consolidates the full text of all essential site documentation into a single Markdown file, allowing large-context AI models to read your entire knowledge base in one request.

Where do I put the llms.txt file?

Place the llms.txt file in the root directory of your web server so it is publicly accessible at https://yourdomain.com/llms.txt, served with a text/markdown or text/plain HTTP header.

How do I generate an llms.txt file?

Generate an llms.txt file manually using standard Markdown syntax, or automatically using CLI tools, static site generator plugins (for Docusaurus/Hugo), or edge platforms like Cloudflare Workers.

Build an AI-Ready Web Content Architecture

Adopt llms.txt as a low-cost, high-efficiency Markdown index for AI models, while ensuring your core web pages remain accessible to automated scrapers and crawlers alike.

  • Deploy a curated llms.txt file at your domain root to guide AI agents.
  • Keep summaries factual to prevent summary substitution errors.
  • Ensure your underlying web infrastructure serves clean, structured content across all endpoints.

Ready to streamline web content extraction for your AI pipelines? Schedule a personalized demo with our engineering team today to see clean structured ingestion in action.

llms.txt vs robots.txt vs sitemap.xml Architecture

Summarize this post

Open it in your assistant of choice with the prompt ready to send.

Take a Taste of Easy Scraping!