# What is llms.txt? The spec, who reads it and what the evidence says

The CrispStats team · Published 2026-11-23 · Updated 2026-11-29

**TL;DR:** 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](/glossary/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](https://llmstxt.org/index.md) was first published in September 2024, and its [changes page](https://llmstxt.org/changes.md) 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:

Structure of an llms.txt file under the v2 spec

| 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:

```md
# 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.txt` and 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 `.md` added (`page.html.md`) or swapped in (`page.md`), and `index.md` for 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 with `rel="describedby"`, either as a `<link>` element or as an HTTP `Link:` header.

> **llms-full.txt is a convention.** llms-full.txt, a single file holding the full text of every page, is not in the spec. It is a convention from documentation platforms. It is harmless, but no reader is promised to look for it.

## 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](https://ahrefs.com/blog/llmstxt-study/) 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.

Selected categories; the rest were discoverability, social, service and research bots. SEO audit tools include Ahrefs' own crawlers, 10.6% of all requests

| 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](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) 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](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt) 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](https://seranking.com/blog/llms-txt/) (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](https://ahrefs.com/blog/llmstxt-study/) (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.txt` with 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](/blog/how-to-get-cited-by-chatgpt).

## How do you write a good llms.txt?

1. **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.
2. **State the facts agents need** in short body text: prices, limits, supported platforms, the one thing people get wrong.
3. **Group links under H2s** such as Docs, Guides and Pricing. Give each link a note of a few words saying what it answers.
4. **Link to Markdown where you can.** Clean `.md` twins are the part of v2 that saves an agent the most work.
5. **Put nice-to-have links under `## Optional`.**
6. **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.
7. **Make sure it returns 200 or 404, never 5xx**, and serve it as `text/plain` or `text/markdown`.

The [llms.txt generator](/tools/llms-txt-generator) builds a spec-shaped file from a list of pages. For a working example, CrispStats's own [/llms.txt](/llms.txt) links to a separate [install file](/llms-install.txt) 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](/bots) 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](https://docs.crispstats.com/ai/ai-crawlers), and the [AI traffic](/features/ai-traffic) page shows the visits assistants send, which is the outcome worth watching after any change.

## Does Google require an llms.txt file?

No. Google's [guide to generative AI search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) says you do not need llms.txt, other AI text files, markup or Markdown to appear in Google Search, including its generative AI features. Search ignores the file, so having one neither helps nor harms visibility or rankings there.

That is a requirement question, separate from whether some agent might fetch the file. Nothing in Search breaks if the URL 404s. Lighthouse only fails the audit when the URL returns a server error, because the file is optional.

| Reader | Does it require llms.txt? |
| --- | --- |
| Google Search, AI Overviews and AI Mode | No. Google says Search does not use the file, and having one neither helps nor harms rankings |
| Coding agents reading documentation | Not required. This is the reader the spec describes |
| ChatGPT or Perplexity citations | No published requirement in the studies above. [Perplexity's crawler docs](https://docs.perplexity.ai/guides/bots) ask for PerplexityBot, not this file |

Say a blog publishes /llms.txt on Monday and checks Search Console on Friday. Read rankings and AI impressions as unchanged by the file, because Google says Search ignores it. If those numbers move, look for a crawl change, a ranking change or an edit to the page. The file is not the cause Google describes.

## What should the file contain if rankings are not the goal?

Facts an agent otherwise gets wrong, and links to the pages that hold them. The spec is written for coding agents at the moment they answer, which is a different job from Search.

| Put this in | Leave this out |
| --- | --- |
| The H1 and a one-sentence summary in a person's words | A line that promises citations or rankings |
| Prices, limits and supported platforms, copied from the same source as the site | A second copy of every blog post |
| Links to install guides and references, with a few words on each | A URL for every wording of the same question |
| Markdown links where you already have them | Stale prices that the pricing page no longer shows |

The last row is the failure mode. Say the file states a price the pricing page no longer shows. An agent that fetches the file can repeat the old price. That is a worse outcome than a 404, which Lighthouse treats as the file being optional. Google's guide also says a pile of pages for query variations, written mainly to manipulate rankings or AI answers, is [scaled content abuse](https://developers.google.com/search/docs/essentials/spam-policies). Listing those URLs in llms.txt does not make them a strategy.

## What should you do if llms.txt is not the job?

### What gets a page cited?

Crawler access, a quotable answer and being named on pages assistants already use. llms.txt is not that work. The steps for ChatGPT, Perplexity, Gemini and Copilot are in [how to get cited by ChatGPT](/blog/how-to-get-cited-by-chatgpt).

### What decides whether a bot may fetch the site?

robots.txt and the firewall decide whether a bot may fetch the site. llms.txt grants nothing and blocks nothing. [Should you block AI crawlers](/blog/should-you-block-ai-crawlers) splits training bots from the search bots that send citations.

### How do you know anyone read the file?

Count requests to /llms.txt in the server or edge log, by user agent. A script in the page never runs for that fetch. [How to measure AI visibility](/blog/how-to-measure-ai-visibility) keeps those hits out of the visit count.

## Frequently asked questions

### Is llms.txt an official standard?

No. It is a community proposal published at llmstxt.org, first in September 2024 and revised as v2 in August 2026. No standards body has adopted it, and no AI company is obliged to read it.

### Does Google use llms.txt?

Google Search does not. Google's guide to generative AI search says you do not need AI text files, Markdown or special markup to appear in Search. Chrome's Lighthouse has an audit that checks the file only for server errors.

### Does llms.txt help you get cited by ChatGPT?

No published study has found that it does. SE Ranking found no relationship across nearly 300,000 domains (October 2026), and Ahrefs found that 97% of files got no requests in May 2026, with AI retrieval bots making about 1% of the requests that did happen.

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

robots.txt tells crawlers what they may and may not fetch. llms.txt tells a model what the site is and which pages are worth reading. One is about access, the other about guidance, and llms.txt grants or blocks nothing.

### Where should the file go?

At the root, as /llms.txt. Under v2 you can also place one at a subpath such as /docs/llms.txt to cover only that section. The most specific file applies to a given page.

### Does Google require an llms.txt file?

No. Google's guide to generative AI search says you do not need llms.txt or other AI text files to appear in Google Search, including its generative AI features. Search ignores the file, so having one neither helps nor harms visibility or rankings there.

### Can an llms.txt file hurt Google rankings?

Google says having one neither helps nor harms visibility or rankings in Google Search, because Search ignores it. A server error on that URL is the practical failure: Chrome's Lighthouse audit fails on a 5xx, and a 404 counts as the file being optional.

### Should I add a page for every query and list them in llms.txt?

No. Google's generative AI guide says creating many pages for query variations, mainly to manipulate rankings or AI answers, violates its scaled content abuse policy. A useful llms.txt links the docs agents need and states facts that match the live pages.
