AI search
What is llms.txt? The spec, who reads it and what the evidence says
llms.txt is a Markdown file at /llms.txt that points AI tools to your key pages. What the spec says, who actually requests it and whether it changes citations.
The CrispStats team · · 8 min read
In short
llms.txt is a plain Markdown file at the root of a site (/llms.txt) that gives AI tools a short summary of the site and a list of links to its most useful pages, ideally in Markdown. It is a community proposal from llmstxt.org, not a web standard, and its own spec says it is used mainly by coding agents reading documentation at the moment they answer a question. Google says Search does not use it, and the published studies so far found no link between having one and being cited in AI answers, so publish it for agents, not for rankings.
Much of the advice on llms.txt dates from 2024 and suggests it will get you into ChatGPT. The spec has changed since, two large log and citation studies have been published, and Google has said plainly what it does with the file. This guide covers all three, with links, so you can decide in ten minutes whether to publish one and what to put in it.
What is an llms.txt file?
An llms.txt file is a Markdown document served at /llms.txt that describes a site for language models: what it is, in a sentence or two, and which pages hold the useful material. The idea is that a model working inside a small context window should not have to crawl and clean dozens of HTML pages, full of navigation and scripts, to find one answer. The llms.txt proposal was first published in September 2024, and its changes page dates the current version, v2, to August 2026.
It is not part of any standards body’s work. No crawler is obliged to read it, and nothing breaks if you do not have one.
What does the spec require?
Very little. Only one element is required; the rest is optional but in a fixed order:
| Part | Required | What it holds |
|---|---|---|
| H1 | Yes | The name of the project or site |
| Blockquote | No | A one or two sentence summary |
| Body text | No | Any Markdown except headings: facts, rules, how to read the links |
| H2 file lists | No | Lists of [name](url): notes links, grouped under H2 headings |
An Optional H2 | No | Links an agent can skip when it is short of context |
A minimal valid file for an analytics product could look like this:
# ExampleStats> Privacy-first web analytics. One script, no cookies.Prices are in USD. Every feature is on every plan.## Docs- [Install](https://example.com/docs/install.md): add the script to any site- [Custom events](https://example.com/docs/events.md): track clicks and signups## Optional- [Changelog](https://example.com/changelog.md)What changed in v2
- Subpath files. A file can sit at
/docs/llms.txtand cover only the pages under it. When several apply, the most specific one wins. - Markdown twins. Each page can have a Markdown version at the same URL with
.mdadded (page.html.md) or swapped in (page.md), andindex.mdfor directory URLs. - Discovery links. A page can point to its Markdown twin with
rel="alternate" type="text/markdown"and to the llms.txt that covers it withrel="describedby", either as a<link>element or as an HTTPLink:header.
Who actually reads llms.txt?
The spec itself is specific about this. It expects the file to be used for inference rather than training: fetched on demand while an agent helps a user, mainly by coding agents looking for API references and tutorials. That matches what server logs show.
Ahrefs looked at the logs of 137,210 domains using its web analytics product in May 2026 (published June 2026). About 28% published an llms.txt file, which Ahrefs calls an upper bound because its customers lean technical. Of roughly 38,000 valid files, 97% received no requests at all in the month. The remaining 3%, about 1,100 domains, shared roughly 22,000 requests between them.
| Who requested llms.txt (Ahrefs, May 2026) | Share of requests |
|---|---|
| SEO audit tools | 21.7% |
| Other and unidentified | 14.9% |
| General web crawlers | 13.1% |
| Tech profiling tools | 11.6% |
| AI agents and agentic infrastructure | 10.5% |
| GEO and AEO tools | 5.8% |
| AI training crawlers | 5.3% |
| AI assistants | 2.5% |
| AI retrieval bots | 1.1% |
| Humans | 4% |
Read the table from the bottom. The bots that fetch pages for ChatGPT or Perplexity answers made up about 1% of requests. The largest group was tools that audit or study llms.txt files. AI agents and agent infrastructure, the category closest to the coding agents the spec was written for, were about a tenth.
What Google says
Google’s guide to optimizing for generative AI search says you do not need to create new machine-readable files, AI text files, markup or Markdown to appear in Google Search. It names llms.txt directly: Google Search does not use these files and ignores them, so having one neither helps nor harms your visibility or rankings there.
Chrome is a separate case. Lighthouse has an agentic browsing audit that requests the file. It fails only when your server returns an error for it; a 404 is marked not applicable, because the file is optional. So the one rule with a consequence is: if you publish the URL, do not let it return a 5xx.
Does llms.txt improve AI citations?
The evidence so far says no. Both studies are correlational, but they point the same way:
| Study | Sample | Finding |
|---|---|---|
| SE Ranking (October 2026) | Nearly 300,000 domains, 10.13% with a file | No relationship between having llms.txt and how often a domain is cited in sampled AI answers. Removing the variable made their model slightly more accurate. |
| Ahrefs (June 2026) | 137,210 domains, about 38,000 valid files | 97% of files got zero requests in a month, and AI retrieval bots made about 1% of the requests there were. |
The second study explains the first. If the bots that build answers rarely fetch the file, it cannot change what they cite. That could change if a major assistant announces support, and SE Ranking itself says “at least not yet”. Until then, treat any claim of a citation lift from llms.txt as unproven.
Should you publish one anyway?
Often yes, for a narrower reason than the hype. It costs an hour and serves the readers it was designed for:
- Developer tools, APIs and SDKs. Coding agents follow llms.txt links to install guides and references. If people install your product from an editor, this is the clearest win.
- Documentation sites. A subpath file at
/docs/llms.txtwith links to Markdown twins gives agents clean text instead of rendered HTML. - Sites with facts that agents get wrong. Prices, limits and supported platforms stated plainly in one file are easy for an agent to quote correctly when it does fetch it.
If you run a local business site or a blog with no product documentation, there is little reason to bother. Your time is better spent on the things that do correlate with AI visibility, covered in how to get cited by ChatGPT.
How do you write a good llms.txt?
- Start with the H1 and a one-sentence blockquote that says what the site is and who it is for, in the words a person would use.
- State the facts agents need in short body text: prices, limits, supported platforms, the one thing people get wrong.
- Group links under H2s such as Docs, Guides and Pricing. Give each link a note of a few words saying what it answers.
- Link to Markdown where you can. Clean
.mdtwins are the part of v2 that saves an agent the most work. - Put nice-to-have links under `## Optional`.
- Keep it true and current. An out-of-date price in llms.txt is worse than no file. Generate it from the same source as your pages if you can.
- Make sure it returns 200 or 404, never 5xx, and serve it as
text/plainortext/markdown.
The llms.txt generator builds a spec-shaped file from a list of pages. For a working example, CrispStats’s own /llms.txt links to a separate install file written for coding agents, which is the use the spec describes.
How can you tell if anything reads it?
Look at requests to /llms.txt in your server, CDN or edge logs, and note the user agents; the AI crawler directory lists the known ones and what each is for. A JavaScript analytics script cannot see these requests, because nothing runs a script when a bot fetches a text file. If you see coding agents and assistant fetchers, the file is doing its job. If you see only audit tools for three months, you have your answer for your site.
How CrispStats handles llms.txt
CrispStats does not generate or host an llms.txt file for your site, and it does not count requests to it on its own. What it does report is AI crawler hits sent from your edge or middleware: the user agent, the path and the status code, grouped by operator and purpose, so a fetch of /llms.txt by a known AI crawler or user fetcher shows up with the other paths that crawler read. Requests from SEO tools and unknown bots are ignored by design. Setup is in the AI crawler docs, and the AI traffic page shows the visits assistants send, which is the outcome worth watching after any change.