llms.txt: What It Is, Who Reads It and Whether to Ship One

llms.txt is a Markdown map of your site for AI tools. Google ignores it and most files never get fetched. Here is who reads it, when it is worth an hour and how to build a good one.

Pixel-art report page beside a server rack, the llms.txt file a site serves as a map for AI agents.

llms.txt is a Markdown file at the root of a site that tells AI tools what the site is and which pages matter, with links to clean versions of those pages. Google Search ignores it, and most files never get fetched. It's still worth an hour if you have docs, an API or a product that AI agents use.

That's the honest answer, and it isn't the one most "AI SEO" checklists give. The file got hyped as a ranking trick for ChatGPT. The data says otherwise.

This explainer covers what the file is, who reads it, what the adoption data shows, when to ship one and how to build a good one in under an hour.

Key takeaways

  • Google ignores it. Google says llms.txt neither helps nor harms rankings.
  • Most files go unread. 97% of files in one large study got zero requests in a month.
  • Agents are the real readers. Coding agents and AI tools fetch it more than search crawlers.
  • Ship it if it's cheap. Generate it from your site's data, never by hand.

28%

Domains in the sample that publish an llms.txt file

Ahrefs, June 2026

97%

Of those files that got zero requests in May 2026

Ahrefs, June 2026

What is llms.txt?

llms.txt is a proposal by Jeremy Howard, first published on September 3, 2024, at llmstxt.org. It suggests every site add a Markdown file at /llms.txt. The file gives a large language model a short, curated guide to the site. It links to clean Markdown versions of key pages, so an AI tool doesn't have to parse messy HTML.

The proposal says the file is used mainly at inference time. That means when an AI tool is answering a user's question, not when a model is being trained.

It sits next to two files you already know. Robots.txt sets crawl rules. An XML sitemap lists every URL. llms.txt is different from both. It's a reading list, not a rulebook or an index. The XML sitemap guide covers the index side.

File Job Who reads it
robots.txt Says which URLs crawlers may fetch Every major crawler, AI crawlers included
XML sitemap Lists every URL you want indexed Search engines
llms.txt Summarizes the site and points to key pages Some AI tools and coding agents, when they choose to

What goes in an llms.txt file?

The spec is short. Only one part is required. Here's the order:

Stack of llms.txt parts: an H1 name, a blockquote summary, optional details, then H2 sections with noted link lists.Stack of llms.txt parts: an H1 name, a blockquote summary, optional details, then H2 sections with noted link lists.
Only the name is required, but the summary and noted links are what make the file useful. Source: The /llms.txt file.
  1. An H1 with the name of the site or project. This is the only required section.
  2. A blockquote with a one or two sentence summary.
  3. Optional details: plain paragraphs or lists with key context.
  4. H2 sections, each with a list of links. Each link can have a short note after a colon.

The spec also suggests serving clean Markdown copies of key pages at the same URL plus .md. It adds link tags so tools can find them: rel="alternate" with type text/markdown for a page's Markdown copy, and rel="describedby" for the llms.txt that covers it.

Here's a short example for a made-up product. Line numbers are added for reference.

1   # Acme Analytics
2
3   > Acme Analytics is account-level product analytics for B2B SaaS teams.
4   > It shows which accounts use which features and syncs that data to the CRM.
5
6   Pricing is per tracked account. Setup takes one script tag and a CRM connection.
7
8   ## Product
9   - [How Acme works](https://acme.example/how-it-works.md): data model and setup
10  - [Pricing](https://acme.example/pricing.md): plans, limits and what counts as an account
11
12  ## Docs
13  - [Quickstart](https://acme.example/docs/quickstart.md): install in ten minutes
14  - [API reference](https://acme.example/docs/api.md): endpoints, auth and rate limits
15
16  ## Optional
17  - [Changelog](https://acme.example/changelog.md): release notes by month

The Optional section is a common convention for links a tool can skip when it's short on space. A Common Crawl analysis of 584,107 files found 9.71% include one.

Real examples exist in the wild. The Next.js docs, for example, point to a /docs/llms.txt index at the top of their docs pages. This site generates its own llms.txt from the same data that builds its pages, and refreshes it every hour.

Who actually reads llms.txt?

Not Google. Google's guide to optimizing for generative AI features names llms.txt directly. It says these files "will neither harm nor help" your visibility or rankings in Google Search, because Google Search ignores them. The same page says you don't need special AI text files or markup to appear in Search.

Waffle chart of llms.txt files in the Ahrefs sample: 97% got zero requests in May 2026 and 3% were fetched at least once.Waffle chart of llms.txt files in the Ahrefs sample: 97% got zero requests in May 2026 and 3% were fetched at least once.
Across sites that publish the file, almost none saw a single request in a month. Source: We Analyzed 137K Sites: 97% of llms.txt Files Never Get Read.

So who does? The best data comes from an Ahrefs study of 137,210 domains using May 2026 server data. The findings:

  • 28% of the domains published an llms.txt file. Ahrefs calls that an upper bound, since its users skew technical.
  • 97% of those files got zero requests in May 2026.
  • 96% of the requests that did happen came from bots, not people.
  • Named AI bots made 19.5% of those requests. SEO audit tools made more, at 21.7%.
  • GPTBot was the most active AI training crawler. Claude Code fetched files more than most AI assistants and retrieval bots.

That last point is the useful one. The readers are mostly agents doing work, like a coding assistant reading your API docs. They are not search crawlers deciding your rank.

Ahrefs also notes that a fetch is not a read. A bot that downloads the file may never use it in an answer.

Is it worth shipping one?

Use this decision rule. It takes about a minute.

Your site Ship llms.txt? Why
Developer docs, an API or an SDK Yes, with .md page copies Coding agents fetch docs and benefit most
A SaaS product AI agents sign up for or use Yes Agents need clean facts on pricing, limits and setup
A B2B marketing site Yes, if it's generated An hour of work for a small upside
A local business or a small store Optional Your effort is better spent on your Google listing and reviews
Any site, as a ranking tactic No Google ignores it, and AI answers don't depend on it

If you sell to developers, this matters more. The AI and dev tools industry page covers how that buyer researches tools.

How do you build a good llms.txt?

Treat it like a product page for robots. Keep it short, true and current.

  1. Write the summary first. One or two plain sentences on what you do and who it's for. This is the line most likely to be quoted.
  2. Pick 10 to 30 links. Your most useful pages, not every page. The sitemap already lists everything.
  3. Add a note to each link. Say what the page answers. Common Crawl found only 32.94% of files do this.
  4. Serve Markdown copies of key pages. Pricing, product overview, docs and FAQs matter most.
  5. Serve it as text, not HTML. Common Crawl found 40.36% of successful responses at llms.txt paths were HTML, mostly app shells acting as soft 404s.
  6. Generate it. Build it from the same source as your pages, so it never goes stale. An llms.txt generator gets you a first draft.
  7. Review it like code. Ahrefs warns about prompt injection. Keep anything that reads like an instruction to AI out of the file.

On Next.js, a route handler can build the file from your content at build time. The Next.js on Vercel SEO guide covers similar generated files like sitemaps.

What matters more than llms.txt for AI answers?

The file is a nice extra. These move AI visibility far more:

This is the core of answer engine optimization. llms.txt is a footnote to it. If AI agents need to act inside your product, a Model Context Protocol setup does far more than a text file.

What should you do this week?

Give it one hour, then move on to the work that moves visibility. If you want help with the bigger picture, see AI search visibility or New Theory's SEO and AEO services.

FAQ

Does llms.txt help SEO?

Not for Google. Google's guide to generative AI features says llms.txt files will neither harm nor help your visibility or rankings in Google Search, because Google Search ignores them. Any benefit comes from other AI tools and coding agents that choose to read the file, and those visits are rare for most sites today.

Where do you put an llms.txt file?

Put it at the root of your site, so it loads at yourdomain.com/llms.txt. The proposal also allows a file at a subpath, such as /docs/llms.txt, which covers the pages under that path. Serve it as plain text or Markdown, not HTML, and check that the URL returns a 200 status.

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

Robots.txt tells crawlers which URLs they may fetch. It is a set of rules. Llms.txt is a curated reading list. It tells AI tools what your site is about and which pages matter most, with links to clean versions of those pages. One controls access, the other offers a guide.

Do ChatGPT and Claude read llms.txt?

Some of their crawlers and agents fetch it, but rarely. An Ahrefs study of May 2026 server data found named AI bots made 19.5% of requests to llms.txt files that were fetched at all. GPTBot was the most active AI crawler. Fetching a file does not mean a model used it in an answer.

What is llms-full.txt?

It is a common companion file that puts the full text of your key pages into one Markdown file, so an AI tool can load everything at once. Many documentation platforms generate both files. It is useful for developer docs. For a marketing site, the short llms.txt file is usually enough.

Can llms.txt hurt my site?

It can't hurt Google rankings, since Google ignores it. The real risks are a stale file that points to old pages, a file that leaks pages you meant to keep quiet, and text that reads like instructions to an AI tool. Generate it from your site's own data and review it like code.

More like this

Glossary: AI Crawlers

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.