Est.

llms.txt: What It Is, How to Write One, and What It Does for AI Search

A Markdown file at the root of a site that tells AI agents what the site is and where its best pages are. What goes in it, how to check it, and why it is not a lever for AI Overviews or ChatGPT citations on its own.

AI Search Intelligence Editors · Updated

The short answer

llms.txt is a Markdown file served at /llms.txt that gives AI agents a short, curated map of a website: its name, a one-paragraph summary, and lists of links to the pages that matter, each with a note. It was proposed by Jeremy Howard of Answer.AI in September 2024 and revised as v2 in August 2026 (llmstxt.org).

It is a proposal, not a standard any engine is bound by. It is read on demand, when an agent working for someone needs to understand a site, and it is most used for software documentation, where coding agents follow it to the right reference page.

It does not control crawling (that is robots.txt) and it is not a ranking or citation signal any major AI search engine documents. Google says you don’t need new machine-readable files or AI text files to appear in AI Overviews or AI Mode. Publish one because it is cheap and helps agents that do read it; don’t expect it to move your AI search visibility on its own.

Side-by-side comparison

llms.txt, robots.txt and sitemap.xml compared
llms.txtrobots.txtsitemap.xml
What it is forTelling an AI agent what the site is and which pages to readTelling crawlers which paths they may and may not fetchListing every indexable URL so search engines can find them
FormatMarkdown: an H1, a blockquote summary, then H2 sections of links with notesPlain-text directives per user agent (Allow, Disallow)XML list of URLs with optional last-modified dates
Who reads itAgents and tools that choose to, when they need context about the siteSearch and AI crawlers, before they fetch pagesSearch engine crawlers
What it coversA curated selection, small enough to fit in a model’s context, and may link to other sitesRules for the whole hostEvery page you want indexed on the site
StatusCommunity proposal ([llmstxt.org](https://llmstxt.org/)); optionalInternet standard (RFC 9309)Protocol supported by the major search engines ([sitemaps.org](https://www.sitemaps.org/protocol.html))
Effect on AI search citationsNone documented by Google, OpenAI or PerplexityDecides whether their crawlers may fetch your pages at allHelps pages get discovered and indexed, which AI features that answer from search depend on

What llms.txt is

Web pages are built for people: navigation, scripts, cookie banners and layout wrap the text an agent actually needs, and a whole site rarely fits in a model’s context window. The llms.txt proposal answers that with one predictable file, in the same spirit as /robots.txt and /sitemap.xml: a short Markdown overview that an agent can read first and then follow to the pages it needs (the proposal).

The proposal expects the file to be used at inference time, when an assistant is answering a question or an agent is doing a task, rather than for model training. Adoption is widest in developer documentation: OpenAI, Anthropic and Google’s Gemini API all publish one for their own docs (OpenAI, Anthropic, Gemini API). Publishing a file for your docs is not the same as reading other sites’ files when answering a search, and none of those companies documents the latter.

The format, section by section

The specification fixes the order of the parts so a program can parse the file as well as a model can read it:

  1. An H1 with the name of the site or project. This is the only required part.
  2. A blockquote with a short summary: what the company or project is and the key facts needed to make sense of the rest.
  3. Optional paragraphs or lists (no headings) with more detail, such as how the site is organized or what an agent should know before reading on.
  4. Zero or more H2 sections of “file lists”. Each item is a Markdown link to a page (its name in square brackets, then its URL in parentheses), optionally followed by a colon and a note on what the page holds.
  5. An “Optional” section, by convention, for secondary links an agent can skip when it is short on context.

An illustrative file for a B2B software company might look like this (every name and URL here is an example):

# Example Co

> Example Co makes invoicing software for mid-sized wholesale distributors.
> Plans, pricing and integrations are listed on the pages below.

Example Co is sold directly and through accounting partners.
Product names on this site: Example Invoicing, Example Payments.

## Product

- [Product overview](https://example.com/product.md): What the software does and who it is for
- [Pricing](https://example.com/pricing.md): Current plans and what each includes
- [Integrations](https://example.com/integrations.md): Supported ERPs and accounting tools

## Company

- [About](https://example.com/about.md): Who we are, where we operate
- [Security](https://example.com/security.md): Certifications and data handling

## Optional

- [Blog](https://example.com/blog): Articles and announcements

This site publishes its own file at /llms.txt, generated from the same data as its sitemap: the site name, its one-line summary, then every post and guide with a short description.

What changed in v2

The August 2026 revision kept the format and added rules that adoption had asked for (changes in v2):

  • Markdown versions of pages. Pages an agent might need can offer a clean Markdown copy at the same URL with .md appended (page.html.md) or replacing the extension (page.md). Links in llms.txt should point at those where they exist.
  • Discovery through link relations. A page can point to its Markdown copy with rel="alternate" type="text/markdown" and to the llms.txt that covers it with rel="describedby", either as HTML <link> elements or an HTTP Link: header.
  • Files in subpaths. An llms.txt covers the pages under its path, so /docs/llms.txt covers /docs/, and the most specific file applies.
  • How it is consumed. Agents are expected to read or search the file and follow its links; the “Optional” section is now only a convention, with no special meaning to tools.

Not directly, on the evidence the engines publish. Google’s guidance for AI Overviews and AI Mode says there are no additional requirements beyond being indexed and eligible to show with a snippet, and that you don’t need to create new machine-readable files, AI text files or markup to appear in those features (Google Search Central). OpenAI’s and Perplexity’s crawler documentation explains how to allow or block their bots in robots.txt; neither says its crawler reads llms.txt to decide what to fetch, rank or cite (OpenAI’s crawlers, Perplexity’s crawlers).

What does decide whether an assistant names and cites you is unchanged: crawlers being allowed to reach your pages, pages that answer the question clearly (structural rewrites that make pages quotable), a consistent picture of who you are (entity authority), and the third-party pages models lean on (why aggregators capture citations).

Where llms.txt does earn its keep is with agents that are already on your site: a browsing agent comparing vendors, a coding agent reading your API docs, an assistant asked to summarize your pricing page. Pointing them to clean, current pages lowers the chance they read a stale page or a navigation menu and get a fact about you wrong (brand description accuracy across engines). Chrome’s Lighthouse also checks for the file in its agentic browsing audits, and marks the check not applicable rather than failed when there is none (Lighthouse llms.txt audit).

How to write one for a company website

  1. Start with the summary. One blockquote that says what you sell, to whom, and in which category, in the words you want repeated. Keep it consistent with your About page, product pages and the profiles third parties hold.
  2. Pick the pages, don’t dump the sitemap. Product, pricing, integrations, security, documentation, about and contact pages usually matter more than every blog post. The file is meant to fit in a model’s context.
  3. Write a note for every link. One line on what the page answers helps an agent pick the right one.
  4. Link to clean versions where you have them. Markdown copies of key pages, or at least pages whose main text renders without JavaScript.
  5. Serve it as plain text at the root, return a 200 status, and make sure robots.txt does not block it or the pages it links to.
  6. Keep it in step with the site. Generate it from the same source as your sitemap if you can, so a renamed plan or a removed page does not linger in it.

Generators and plugins

Many platforms will build the file for you. The proposal lists, among others, Mintlify, GitBook, Wix, and the Yoast SEO and AIOSEO plugins for WordPress, plus plugins for Docusaurus and VitePress (integrations). Mintlify also generates an llms-full.txt with the full text of every page (Mintlify docs); that file is a platform convention, not part of the specification.

Generated files tend to list everything. Check what yours includes, and whether the tool lets you edit the summary and choose the pages, on each tool’s own documentation before relying on it.

How to check your file

  • Open https://yourdomain.com/llms.txt in a browser: it should load as text, with an H1 on the first line.
  • Click every link in it. Each should return a page, not a redirect chain or a 404.
  • Run Lighthouse’s agentic browsing audits on the site, which flag a server error when fetching the file.
  • Do what the proposal suggests: give an assistant only your llms.txt and ask it questions about your company. Wrong or vague answers show what the summary and notes are missing.

Frequently asked questions

Is llms.txt an official standard?

No. It is an open proposal maintained at llmstxt.org, with its source on GitHub. Unlike robots.txt, which is an IETF standard, no engine is obliged to read it.

Does Google use llms.txt for AI Overviews?

Google’s documentation for its AI features says you don’t need new machine-readable files or AI text files to appear in AI Overviews or AI Mode; inclusion depends on being indexed and eligible to show with a snippet. Google’s Lighthouse tool does check for the file as part of its agentic browsing audits, which is a separate thing from Search.

Will llms.txt stop AI companies from using my content?

No. llms.txt describes content; it does not grant or deny access. To control crawling, use robots.txt rules for each crawler’s user agent (the AI crawlers and their tokens), as documented by OpenAI, Perplexity and Google.

What is the difference between llms.txt and llms-full.txt?

llms.txt is a short index of links with notes. llms-full.txt, produced by some documentation platforms, puts the full text of the site’s pages into one file. Only llms.txt is described by the proposal.

Should a marketing site have one, or only documentation?

Either can. The proposal names business sites outlining their structure and policies as a use. For a marketing site it is a small piece of work that helps agents find accurate pages; measure the visibility work that matters more (mentions, accuracy and citations across engines) separately, as in competitor citation gap analysis.

Where to check the facts