Guides · Guide

What Is llms.txt? How It Works and Whether You Need One

llms.txt explained: what the file is, who proposed it, the format it follows, how it differs from robots.txt and sitemap.xml, which systems read it, and how to write one for your site.

By The AEO Signal Editors · Updated

The short answer

llms.txt is a Markdown file a website publishes at /llms.txt to give AI agents and language models a short, curated guide to its content: a title, a one-paragraph summary and lists of links to the pages worth reading, ideally in clean Markdown. Jeremy Howard of Answer.AI proposed it in September 2024 and revised it as v2 in August 2026. It is a community proposal, not an official web standard, and it does not control access the way robots.txt does. Coding agents and documentation tools use it widely; Google says Google Search, including AI Overviews and AI Mode, ignores it. It is cheap to add and harmless, but it is not a shortcut to being cited in AI answers.

Side by side

llms.txt and robots.txt side by side
llms.txtrobots.txt
What it doesTells AI agents what the site is and which pages to read, with links and short notesTells crawlers which URLs they may and may not request
FormatMarkdown: an H1, an optional blockquote summary, optional notes, then H2 sections of linksPlain-text rules: User-agent, Allow and Disallow lines
Where it lives/llms.txt at the site root, or at any path (such as /docs/llms.txt) to cover the pages under it/robots.txt at the root of the host only
StatusA community proposal from Answer.AI (llmstxt.org), not a W3C or IETF standardAn IETF standard, the Robots Exclusion Protocol (RFC 9309)
Who reads itAI agents and tools that choose to look for it, most of all coding agents reading documentationSearch engine and AI crawlers, which are expected to honour it
Can it block AI crawlers or training?No. It describes content; it grants and refuses nothingYes, by user-agent, for crawlers that respect it
Used by Google Search?No. Google says Search ignores it and it neither helps nor hurts rankingsYes, for Googlebot's crawling

What llms.txt is

Web pages are built for people: the information sits inside navigation, scripts, ads and layout, and an AI agent reading the page has to strip all of that away before it can use the text. Context windows are also too small to read most sites whole. llms.txt is a proposal to fix both problems with one file: a short, Markdown index at a known address that says what the site is and points to the pages that matter, ideally in a clean Markdown version.

Jeremy Howard of Answer.AI published the proposal on September 3, 2024. Version 2, published in August 2026, reflects two years of adoption. The proposal itself notes that thousands of sites publish the file, that documentation platforms generate one automatically, and that OpenAI, Anthropic and Google's Gemini publish llms.txt files for their own developer docs.

The name follows /robots.txt and /sitemap.xml: a standard filename at a standard place, so an agent can look for it without being told where it is. Unlike those two, it is written to be read by a language model as well as parsed by a program.

The format

An llms.txt file is Markdown with a fixed order of parts. Only the first is required.

  • An H1 with the name of the site or project. This is the only required section.
  • A blockquote with a short summary: the key facts a reader needs to understand the rest of the file.
  • Optional notes: paragraphs or lists, but no headings, with more detail on the site and how to read the linked files.
  • H2 sections of links, each a Markdown list of [name](url) links, optionally followed by a colon and a note on what the page holds.
  • An "Optional" section, by convention, for secondary links an agent can skip when it is short of context.
# Example Co

> Example Co makes invoicing software for small agencies. This file lists the pages that explain the product, its pricing and its documentation.

Pricing changes are announced on the changelog; older blog posts may describe retired plans.

## Product

- [How invoicing works](https://example.com/product.md): Creating, sending and tracking invoices
- [Pricing](https://example.com/pricing.md): Current plans and what each includes

## Docs

- [API reference](https://example.com/docs/api.md): Endpoints, authentication and rate limits

## Optional

- [Company history](https://example.com/about.md)

Markdown versions of pages, and what v2 added

The proposal pairs the file with a second idea: pages an agent might need should also be available as clean Markdown at the same URL, either with .md appended (page.html.md) or with the extension replaced (page.md). The links in llms.txt should point to those versions where they exist, so the file stays small and the detail sits one click away.

Version 2 made three practical changes. It allows both Markdown URL forms. It defines what a file at a subpath means: /docs/llms.txt covers everything under /docs/, and the most specific file applies. And it recommends standard link relations so an agent can find both from any page: rel="alternate" type="text/markdown" for a page's Markdown version and rel="describedby" for the llms.txt that covers it, as HTML <link> elements or an HTTP Link header. The full list is on the proposal's changes page.

How it differs from robots.txt and sitemap.xml

robots.txt is about access: which crawlers may fetch which URLs. llms.txt grants and refuses nothing. If you want to keep an AI crawler out of your site, or out of model training, robots.txt (and each provider's documented user-agents) is still the tool; an llms.txt file won't do it.

sitemap.xml is about completeness: every indexable page, for search engines to crawl. llms.txt is about selection: the handful of pages that best explain the site, with a note on each, small enough to fit in a model's context. A sitemap usually lists HTML pages only, can't point to useful pages on other sites, and on most sites is far too long to read in one go. The three files work side by side, and most sites that publish llms.txt keep the other two.

Who actually reads llms.txt

This is the question that matters for AEO, and the honest answer is: fewer systems than the hype suggests, and not the ones most marketers have in mind.

  • Coding agents and developer tools. This is where llms.txt is used most. Agents fetch a library's llms.txt to find the right API reference, which is why documentation platforms such as Mintlify and GitBook publish one for the docs they host.
  • Google Search does not. Google's guide to optimizing for generative AI features says you don't need llms.txt or other AI text files to appear in Search, including AI Overviews and AI Mode, because Google Search doesn't use them. It adds that keeping one for other services is fine and will neither help nor hurt your visibility in Google Search.
  • Chrome's Lighthouse checks for it. Lighthouse's agentic browsing audit flags a page when requesting /llms.txt returns a server error, and marks the check not applicable when the file is simply missing, since it is optional.
  • Other AI answer engines. Whether ChatGPT search, Perplexity, Claude or Copilot read llms.txt when they choose sources isn't something they have documented as a ranking or citation signal. Check each provider's crawler and publisher documentation before you rely on it, and check your own server logs to see which agents request /llms.txt at all.

Does llms.txt help AEO?

Not directly. Being cited in an AI answer still depends on what it always has: pages that can be crawled and indexed, that answer the question plainly, and that the engine trusts. Our pieces on how large language models select citations and ChatGPT search's source selection cover what those systems look for, and none of it is a file at the root of your site.

Where llms.txt earns its place is with agents: a buyer's assistant comparing products, a developer's coding agent reading your docs, a browser agent completing a task on your site. For them a clear summary and a short list of the right pages saves guesswork, and a summary you wrote is one less thing a model has to infer. Treat it like structured data: worth doing once your pages are in order, never a substitute for them.

How to write one

A useful llms.txt takes an hour, not a project. Write it the way you would brief a new colleague.

  • Start with the H1 and a blockquote that states, in two or three sentences, what the organization does and for whom. Use the same description you use everywhere else; see entity salience and brand visibility in LLMs for why consistency matters.
  • Add any notes an agent would otherwise get wrong: which product names are current, which pages are out of date, what the site does not cover.
  • Group the links under a few H2 sections, such as Product, Pricing, Docs and Guides, and give each link a short note on what the page holds.
  • Point to Markdown versions of pages where you can serve them, and keep secondary material under an "Optional" heading.
  • Serve it as plain text at /llms.txt, make sure it returns a 200 rather than an error, and generate it from the same source as your pages so it never drifts out of date. Yoast SEO, AIOSEO, Wix, Mintlify and GitBook can generate one; check what your platform offers before writing your own.
  • Test it the way the proposal suggests: give an AI assistant only the file and ask it questions about your business.

An example you can read

This site publishes its own: /llms.txt on The AEO Signal is generated at build time from the same data as the pages, with the site's name as the H1, then every post and guide as a link with a one-line summary. Larger real-world examples include the files OpenAI, Anthropic and Google publish for their developer documentation, linked from the llmstxt.org proposal, which also lists public directories of sites that publish one.

FAQ

Is llms.txt an official standard?

No. It is a community proposal published by Jeremy Howard of Answer.AI at llmstxt.org, open for input on GitHub. It is not a W3C or IETF standard, unlike robots.txt, which is standardized as RFC 9309.

Does Google use llms.txt for AI Overviews?

No. Google's guidance on generative AI features says Google Search, including AI Overviews and AI Mode, does not use llms.txt, and that having one neither helps nor hurts your visibility in Google Search.

Will an llms.txt file get my site cited in ChatGPT or Perplexity?

Not on its own. Neither has documented llms.txt as a signal for choosing sources. Citations still come from crawlable, trusted pages that answer the question well. Check each provider's documentation, and your server logs, to see whether their agents request the file.

Can llms.txt stop AI companies from training on my content?

No. llms.txt describes your content; it does not grant or refuse access. To control AI crawlers, use robots.txt rules for the user-agents each provider documents.

What is llms-full.txt?

It is not part of the llms.txt proposal. Some documentation platforms publish an llms-full.txt beside llms.txt with the full text of the docs in a single file. Check your platform's documentation for what its version contains.

Where does the llms.txt file go?

At the root of your site, at /llms.txt. Under version 2 of the proposal it can also sit at a subpath, such as /docs/llms.txt, where it covers the pages under that path.

Sources

  1. The /llms.txt file, v2 (Jeremy Howard, Answer.AI, llmstxt.org)
  2. llms.txt changes: v2, August 2026 (llmstxt.org)
  3. Optimizing your website for generative AI features on Google Search (Google Search Central)
  4. llms.txt audit, agentic browsing (Chrome for Developers, Lighthouse)
  5. RFC 9309: Robots Exclusion Protocol (IETF)