llms.txt is a plain Markdown file at the root of your site (/llms.txt) that gives language models a short, curated list of your most useful pages, each with a one-line description. It helps coding agents, documentation tools and IDE assistants that fetch it on purpose. It does not help you rank in Google, and no major AI search crawler has confirmed that it reads it.
That second sentence is where most of the confusion lives, so this guide spends time on it. We also cover the format, the llms-full.txt variant, a complete example, and how to generate the file from a static build.
What is llms.txt?
The proposal comes from Jeremy Howard of Answer.AI, published on llmstxt.org on September 3, 2024. The problem it targets is real: HTML pages carry navigation, scripts, cookie banners and ads, and a model working with a limited context window wastes tokens on all of it. Howard suggested that sites offer a small Markdown file that says, in effect, “here is what this site is, and here are the pages worth reading.”
The spec also suggests that sites publish clean Markdown versions of individual pages at the same URL with .md appended (for example /guides/llms-txt/index.html.md or /guides/llms-txt.md). That part is optional and far less common than the index file.
llms.txt is a proposal, not a standard from any standards body. There is no registry, no validator from a search engine, and no promise from any AI vendor to read it. That is fine as long as you know it going in.
For a short definition you can link to, see the glossary entry for llms.txt.
What does the format look like?
The format is ordinary Markdown with a fixed order. Per the spec:
| Part | Required? | What goes in it |
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
| H1 | Yes | The name of the site or project. This is the only required element. |
| Blockquote | No, but expected | A short summary of what the site is, written so a model can quote it. |
| Free text | No | Any Markdown except headings: notes on how to read the docs, terminology, caveats. |
| H2 sections | No | “File lists”: bullet lists where each item is [name](url), optionally followed by : notes. |
| ## Optional | No | A special H2. Links here are secondary, and tools can drop them when they need a shorter context. |
A few practical rules we follow, which go slightly beyond the spec:
- Use absolute URLs. Agents often read the file out of context.
- Keep each description to one line and say what the page answers, not how good it is.
- Link to the canonical URL, never a preview, staging or parameterized URL.
- Keep the file small. If it runs past a few hundred lines, it has turned into a sitemap.
What is llms-full.txt?
llms-full.txt is not in the original spec. It is a convention that Mintlify shipped in late 2024 together with Anthropic for Anthropic’s developer docs, and it spread from there. The file contains the full text of the docs, concatenated into one Markdown document, so a tool can load everything with one request instead of following dozens of links.
The two files serve different jobs:
| | llms.txt | llms-full.txt | | ------------ | ------------------------------------- | ------------------------------------------------------------ | | Content | Links plus one-line descriptions | Full page text in Markdown | | Typical size | A few KB | Hundreds of KB to several MB on large docs sites | | Best for | Letting an agent decide what to fetch | Loading a whole doc set into a long context or a local index | | Risk | Goes stale if hand-written | Can exceed context windows, so tools may truncate it |
Docs platforms such as Mintlify and GitBook generate both files automatically, and the llmstxt.org site lists plugins for VitePress, Docusaurus, Drupal and WordPress SEO plugins (Yoast and AIOSEO). If you run on one of those, you may already have the files without knowing.
Who actually reads llms.txt in late 2026?
This is the honest part. We checked what each vendor has said publicly as of November 2026.
Google Search: no. Google’s guide to optimizing for generative AI features, published in May 2026, says you do not need special AI text files to appear in Google Search and that Google Search ignores them. Gary Illyes said in July 2025 that Google does not support llms.txt and had no plans to, and John Mueller has compared it to the old keywords meta tag. In mid 2026 Mueller said again that Google does not use it and that he knew of no other crawler or LLM that had confirmed using it (Search Engine Journal coverage).
Chrome Lighthouse: it checks for one. Search Engine Journal reported in May 2026 that Lighthouse 13.3 added an Agentic Browsing category that includes an llms.txt audit. That category is about how well browser agents can work with a page. It has nothing to do with rankings or citations, and Google Search’s position did not change.
OpenAI, Anthropic, Perplexity: no public commitment. Their crawler documentation (OpenAI, Anthropic, Perplexity) describes user agents and robots.txt rules. None of them says the search or training crawlers fetch llms.txt or treat it as a signal. Several of these companies publish llms.txt files on their own docs sites, which tells you they see value in it for developers, not that their crawlers prioritize it.
Agents acting for a user: yes, when pointed at it. This is where the file does real work. When a developer tells a coding agent “read the docs for this library,” the agent fetches a URL, and an llms.txt index is the cheapest good starting point.
So the summary is narrow and accurate: llms.txt is a reading aid for tools that choose to use it. It is not a discovery mechanism for AI search, and it will not get you cited by itself. How answer engines really pick sources is covered in how LLMs choose sources, and the work that does earn citations is what our GEO service covers.
Where does llms.txt actually help?
The file pays off when a person or a program deliberately loads your content into a model’s context. In practice that means:
- Coding agents and IDE assistants. Tools like Claude Code, Cursor and Copilot agents fetch docs URLs on request. A short index helps them find the right page without crawling your navigation.
- Documentation retrieval tools. MCP servers such as LangChain’s
mcpdoctake an llms.txt URL and expose its links to an agent as a tool, so the agent reads only the pages it needs. - Developer products and APIs. If people build against your product, an accurate llms.txt plus llms-full.txt reduces the number of wrong answers models give about your API.
- Internal knowledge bases. Teams that index their own docs for RAG can use llms-full.txt as a clean, boilerplate-free input.
For a local restaurant, a news site or a typical ecommerce category page, the benefit is close to zero today. It costs little to ship if you generate it, but do not expect traffic from it. If AI crawlers cannot read your pages without JavaScript, fix that first with technical SEO for your rendering and crawler access. No text file makes up for an empty HTML response.
A full example llms.txt
This is an illustrative file for a fictional developer tool. The structure follows the spec exactly.
# Acme Deploy
> Acme Deploy is a command-line tool and hosted service that deploys static
> and server-rendered web apps to edge locations. These docs cover the CLI,
> the configuration file, the HTTP API and pricing.
The CLI is the primary interface. Every CLI command has an equivalent HTTP API
endpoint. Configuration lives in acme.toml at the project root. Version 3 is
current; version 2 docs are listed under Optional and are deprecated.
## Getting started
- [Quickstart](https://docs.acme.example/quickstart/): Install the CLI and deploy a first project in five minutes
- [Concepts](https://docs.acme.example/concepts/): Projects, environments, deployments and domains explained
## Reference
- [CLI reference](https://docs.acme.example/cli/): Every command, flag and exit code
- [acme.toml reference](https://docs.acme.example/config/): All configuration keys with defaults and examples
- [HTTP API](https://docs.acme.example/api/): REST endpoints, authentication and rate limits
## Guides
- [Deploy a Next.js app](https://docs.acme.example/guides/nextjs/): SSR, ISR and image settings for Next.js
- [Custom domains](https://docs.acme.example/guides/domains/): DNS records, TLS certificates and redirects
## Policies
- [Pricing](https://acme.example/pricing/): Plans, limits and overage rules
- [Status and SLA](https://acme.example/sla/): Uptime commitments and incident history
## Optional
- [Changelog](https://docs.acme.example/changelog/): Release notes since version 1.0
- [Version 2 docs](https://docs.acme.example/v2/): Deprecated, kept for existing users
Note what is missing: no marketing claims, no tracking parameters, no links to login pages or search results. Every line is something a model can act on.
How do you generate llms.txt from a static site build?
Hand-written files rot. Pages get renamed, the file keeps the old URL, and agents land on a 404. Generate the file in the same build that produces your HTML, from the same data.
On an Astro site, an endpoint file such as src/pages/llms.txt.ts can read your content collections and return Markdown:
// src/pages/llms.txt.ts
import type { APIRoute } from "astro";
import { getCollection } from "astro:content";
const SITE = "https://example.com";
export const GET: APIRoute = async () => {
const guides = (await getCollection("guides")).sort(
(a, b) => a.data.order - b.data.order,
);
const services = await getCollection("services");
const line = (url: string, title: string, desc: string) =>
`- [${title}](${SITE}${url}): ${desc}`;
const body = [
"# Example Studio",
"",
"> Example Studio publishes guides on technical SEO for JavaScript sites.",
"",
"## Guides",
...guides.map((g) =>
line(`/guides/${g.id}/`, g.data.title, g.data.description),
),
"",
"## Services",
...services.map((s) =>
line(`/services/${s.id}/`, s.data.title, s.data.description),
),
"",
].join("\n");
return new Response(body, {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});
};
Because the site is static, Astro writes this to dist/llms.txt at build time. A second endpoint, llms-full.txt.ts, can do the same with each entry’s raw Markdown body. Next.js can do the same with a route handler that is statically generated, and Hugo or Eleventy can do it with an output template.
Then a few checks:
- The file returns HTTP 200 with a text content type.
- Every link in it returns 200 and is the canonical URL.
- robots.txt does not block
/llms.txt. - Your HTML head links to it, for example with an alternate link of type
text/plainpointing at/llms.txt, so tools that read the page can find it.
renderly.net does exactly this. The site publishes /llms.txt and /llms-full.txt, both generated from the same content collections as the pages you are reading, so they cannot drift out of date.
llms.txt checklist
| Check | Pass condition |
| ------------ | ---------------------------------------------------------------------- |
| Location | Served at /llms.txt on the main host, HTTP 200 |
| Structure | One H1, a blockquote summary, H2 link sections, optional ## Optional |
| Links | Absolute, canonical, all return 200, no parameters or preview hosts |
| Descriptions | One line each, factual, says what the page answers |
| Size | Index under a few hundred lines; full text moved to llms-full.txt |
| Freshness | Generated at build time from the same source as the HTML |
| Discovery | Linked from the HTML head or footer, not blocked in robots.txt |
| Expectations | Nobody on the team expects Google rankings or AI citations from it |
Should you publish one?
If you run docs, an API, a developer product or a knowledge site that people load into coding tools, yes. Generate it and move on. If you run a content or commerce site and someone is selling llms.txt as an AI visibility fix, spend that budget on the things that do move citations: pages AI crawlers can read without JavaScript, clear entities and structured data, and facts other sites repeat. That is the work in our generative engine optimization service, and the crawler side is covered in technical SEO for JavaScript and headless sites.