# Should your site have an llms.txt file? What the data shows

> In short: Most sites don't need an llms.txt file. Google Search says it ignores the file, Ahrefs found 97% of 38,000 published files got no requests at all in May 2026, and Semrush saw no change in AI results after adding one. It's worth an hour if coding agents or other AI agents use your docs or product; if you add one, measure it against questions it can't affect.

Guide from Keats, published 2026-11-28, updated 2026-11-28. Canonical: https://getkeats.com/guides/llms-txt-seo

No, most sites don't need an llms.txt file. Google Search says it ignores the file, the largest study so far found that 97% of published files were never requested, and no major assistant has said it reads one before answering. It's a cheap experiment that makes sense mainly for documentation-heavy sites and products that AI agents use. If you add one, measure whether your named and cited rates move against questions the file couldn't affect.

This guide is about that decision. What the file is and what goes in it are in our [llms.txt definition](https://getkeats.com/glossary/llms-txt), and the free [llms.txt generator](https://getkeats.com/tools/llms-txt-generator) writes a first draft from your sitemap.

## What is an llms.txt file?

It's a markdown file at `yoursite.com/llms.txt` that lists what a site is and which pages an AI model should read, with a line on each. Jeremy Howard proposed it at [llmstxt.org](https://llmstxt.org/) in September 2024, to help agents use a site at the moment someone asks rather than to feed training. Nothing in the proposal promises search visibility. That claim was attached later, by the people selling it.

## Does llms.txt help SEO or AI visibility?

Not on the evidence published by November 2026. Three sources, read on November 28, 2026:

| Source | What it found |
|---|---|
| Google Search Central, AI optimization guide | Lists "LLMS.txt files and other 'special' markup" under things you can ignore: Google Search "ignores them", and creating one "will neither harm nor help your site's visibility or rankings in Google Search" |
| Ahrefs, 137,210 domains, May 2026 logs | 28% published a file; of the roughly 38,000 valid files, 97% received zero requests. AI retrieval bots made 1.1% of the requests the rest received |
| Semrush, test on Search Engine Land from March 2025 | "We didn't find a correlation between implementing llms.txt and improved performance in AI results"; GPTBot, PerplexityBot, ClaudeBot and Google-Extended made zero visits to the file from mid-August to late October 2025 |

Two details from the Ahrefs study matter most. First, no AI bot requested an llms.txt from a site that didn't have one: they don't go looking, so having no file costs you nothing with them. Second, the bots that did fetch files were mostly SEO audit tools, training crawlers and coding agents (GPTBot first, Claude-Code second), not the search bots whose reading decides which pages an answer cites. Ahrefs' own verdict: if your goal is ChatGPT, Perplexity or AI Overviews, the file "is largely decoration".

Semrush puts it more gently: a "low-cost experiment" that "isn't mandatory", with no proof yet that it moves AI answers.

## Which sites should publish one?

The case rests on who reads the file, and the readers are agents doing a job.

- **Publish one** if developers point coding agents at your docs or API, or if agents act on your product for their users. Ahrefs found coding and agent tools were the file's largest AI readership. Keats publishes [its own](https://getkeats.com/llms.txt) for this reason: agents that [run AEO through Keats](https://getkeats.com/guides/aeo-with-your-ai-agent) read it to find each operation.
- **Publish one if it's free**, because your platform writes it for you. Then review what it lists, since an agent may follow the links.
- **Skip it** if you're a shop, a local business or a services firm hoping to be recommended more often. The file doesn't reach the search bots behind those answers, and your hour is better spent on the pages assistants already cite.

Whichever you choose, the work that changes answers is the same: let the search crawlers in ([AI crawlers and robots.txt](https://getkeats.com/guides/ai-crawlers-robots-txt)), put the answer first on the pages for your buyers' questions, and get named on the third-party lists assistants read. Our guide to [schema markup and llms.txt](https://getkeats.com/guides/schema-markup-ai-search) puts structured data through the same test.

## How do you test whether llms.txt changed anything?

Treat it as any other change, with a date and a comparison. A rise the week after you publish proves nothing on its own, because AI answers vary from one ask to the next and whole categories drift together.

1. **Take a baseline.** Ask your buyers' questions several times on each assistant for two weeks before publishing. Record how often you're named and how often your pages are cited.
2. **Split the questions.** The target set is the questions the file's linked pages answer. The [control questions](https://getkeats.com/glossary/control-questions) are ones it can't plausibly affect. Leave the controls alone, and change nothing else on those pages while the test runs.
3. **Publish and note the date.** Link the file from your site or docs, since Ahrefs found AI tools fetch it when something points to it.
4. **Read at three and five weeks.** Compare how far the targets moved with how far the controls moved. Only a gap wider than the [noise band](https://getkeats.com/glossary/noise-band), the usual week-to-week swing, counts as an effect.
5. **Check your logs.** If no AI user agent ever requested the file, any change in answers came from something else.

Keats runs this comparison for any change you log: it asks each question every week, several times each, compares the questions you targeted with the ones you didn't touch, and says whether the difference is beyond the normal swing. Our guide to [proving AEO results](https://getkeats.com/guides/prove-aeo-results) explains the method in full. The most likely result for llms.txt is no measurable effect, which is itself worth knowing before you spend more time on it.

## An llms.txt template for a docs-heavy site

This is the shape that suits the agents that read the file: a short summary, then the pages a developer's agent needs. The company is made up.

```
# Ledgerly API

> Ledgerly is a payments API for marketplaces: split payouts, refunds and tax forms through one REST API.

## Docs
- [Quickstart](https://docs.ledgerly.example/quickstart.md): API keys, first charge, test mode
- [Payouts](https://docs.ledgerly.example/payouts.md): split rules, schedules, currencies
- [Errors](https://docs.ledgerly.example/errors.md): every error code and the fix

## Product
- [Pricing](https://ledgerly.example/pricing.md): fees per transaction and per payout

## Optional
- [Changelog](https://docs.ledgerly.example/changelog.md): API versions and deprecations
```

Keep it to links and plain descriptions, with nothing that reads like an instruction to a model, and review anything your platform generates. Ahrefs advises treating the file like code, version-controlled and with few editors, because an agent may act on what it says.

## Who wrote this

Keats (getkeats.com) tracks how often AI assistants name and cite a brand for its buyers' questions, and tests each change against questions left untouched. To see whether assistants name you today, [check your brand free](https://getkeats.com/check).


## Your agent does this

Ask your agent: "We published an llms.txt on [date]. Compare how often we were named and cited on the questions it could affect with the questions it couldn't, before and after, and tell me whether the gap is outside the normal swing." It reads `list_answers` and `list_citations` for both sets of questions.

## Sources

- [Jeremy Howard: The /llms.txt file (llmstxt.org)](https://llmstxt.org/), read 2026-11-28
- [Google Search Central: Optimizing your website for generative AI features on Google Search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide), read 2026-11-28
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), read 2026-11-28
- [Ahrefs: We analyzed 137K sites, 97% of llms.txt files never get read (June 15, 2026)](https://ahrefs.com/blog/llmstxt-study/), read 2026-11-28
- [Semrush: What is llms.txt and should you use it? (November 26, 2025)](https://www.semrush.com/blog/llms-txt/), read 2026-11-28
