Skip to content

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:

Structure of an llms.txt file under the v2 spec
PartRequiredWhat it holds
H1YesThe name of the project or site
BlockquoteNoA one or two sentence summary
Body textNoAny Markdown except headings: facts, rules, how to read the links
H2 file listsNoLists of [name](url): notes links, grouped under H2 headings
An Optional H2NoLinks 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.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.

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.

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 tools21.7%
Other and unidentified14.9%
General web crawlers13.1%
Tech profiling tools11.6%
AI agents and agentic infrastructure10.5%
GEO and AEO tools5.8%
AI training crawlers5.3%
AI assistants2.5%
AI retrieval bots1.1%
Humans4%

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:

Does llms.txt improve AI citations?
StudySampleFinding
SE Ranking (October 2026)Nearly 300,000 domains, 10.13% with a fileNo 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 files97% 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.

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

Guide questions. Straight answers.

What people ask after reading this.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

Not answered here? Write to hello@crispstats.com

Go further

Terms in this guide

Free tools

  • llms.txt generator

    Build an llms.txt file in the llmstxt.org format: a name, a summary and sections of annotated links, checked as you type.

  • robots.txt generator

    Write a robots.txt file that allows or blocks each AI crawler, with presets by kind, private paths and a sitemap line.

  • AI crawler checker

    Check whether a site's robots.txt lets GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in, by training, search and user fetch, with the deciding rule.

Use cases

  • CrispStats for developers

    A small cookieless script with web vitals and error tracking, an npm SDK, a REST API and an MCP server, so your analytics fits the way you work.

  • CrispStats for indie hackers

    Traffic, revenue by source, uptime and errors for every side project in one dashboard.

  • CrispStats for bloggers

    See which posts get read to the end, where readers come from, including AI assistants, and keep your site free of analytics cookies.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.