TechnicalAIMarkdown3 min read to read

What Is llms.txt? Format, Real Examples and What It Doesn't Do

llms.txt is a markdown file at /llms.txt that gives AI agents a curated map of a site's docs. The format, real examples, and why Google ignores it.

Written byAndrii
Published on

Corrected November 22, 2026. An earlier version of this post described llms.txt as a file that lists the AI models a project uses. That was wrong. llms.txt has nothing to do with which models you run, and the post below replaces that version.

llms.txt is a markdown file at the root of a website (https://example.com/llms.txt) that gives AI agents a short, curated map of the site's content: the site name, a one-line summary, and links to the pages that matter, each with a short note. A coding agent that needs your API reference can read that one small file instead of crawling every page.

Jeremy Howard of Answer.AI proposed it on llmstxt.org in September 2024. Version 2 of the spec came out in August 2026 (changes).

TL;DR

  • llms.txt is a reading list for AI agents, written in markdown. Mostly used for developer docs.
  • It's not an access rule (that's robots.txt), not a full page list (that's sitemap.xml), and not a disclosure of the AI models you use.
  • Only the H1 is required. The usual shape is H1, blockquote summary, then H2 sections of - [name](url): note links.
  • Google Search doesn't use it, and it won't move your rankings either way.
  • In Ahrefs' May 2026 study, 97% of valid llms.txt files got zero requests. Coding agents are the main real readers.

What llms.txt is, and what it isn't

The idea is simple. HTML pages are built for people: navigation, cookie banners, scripts. An agent that needs one fact has to dig through all of that, and a whole site doesn't fit in a context window anyway. So the site owner picks the pages worth reading and lists them in one small markdown file. The spec says the file should stay small enough to fit in context, with the detail behind the links.

A few things it gets confused with:

FileWhat it's forWho reads it
robots.txtSays what crawlers may and may not accessSearch engines, AI crawlers, any well-behaved bot
sitemap.xmlLists every indexable pageSearch engines
llms.txtA short, curated list of the pages an agent should read, with notesAI agents, at the moment they need information
llms-full.txtThe full text of the docs in one file (not in the spec)AI agents and tools that want everything at once

llms.txt blocks nothing. If you want to keep a bot out, that still goes in robots.txt. The spec itself says the two have different purposes: robots.txt is about access, llms.txt is used "on demand, when an agent needs information about a topic while assisting a user".

It's also not a sitemap. A sitemap lists everything, usually far too much to fit in a model's context, and it links HTML pages, not markdown versions.

And it's not an AI disclosure file. It doesn't say which models your product runs, who provides them or how they're licensed. If you saw that claim somewhere (including on this page before the correction), ignore it.

The llms.txt format (spec v2)

The file is markdown, but in a fixed order, so a parser or a regex can read it too. Per the spec, the parts are:

  1. An optional byte-order mark.
  2. An H1 with the name of the project or site. This is the only required part.
  3. A blockquote with a short summary.
  4. Optional paragraphs or lists with more detail. No headings here.
  5. Zero or more H2 sections of "file lists": markdown lists where each item is a [name](url) link, optionally followed by : and a note.

The spec's own mock example:

# Title

> Optional description goes here

Optional details go here

## Section name

- [Link title](https://link_url): Optional link details

## Optional

- [Link title](https://link_url)

A section called ## Optional is a convention for links an agent can skip when it's short on context. In v1 it had a special meaning for the llms_txt2ctx tool. v2 dropped that tool from the proposal, so now it's just a convention.

Three more things v2 added or clarified:

  • Subpaths. A file can sit at /docs/llms.txt and covers the pages under that path. When more than one file applies, the most specific one wins.
  • Markdown copies of pages. Pages that agents need should have a clean markdown version at the same URL, as page.html.md or page.md. The links in llms.txt should point at those when they exist.
  • Discovery. A page can point to the llms.txt that covers it with rel="describedby", as an HTML <link> or an HTTP Link: header.

A real llms.txt example

This is the cut-down FastHTML file the spec uses as its example (the full version lives at /docs/llms.txt):

# FastHTML

> FastHTML is a python library which brings together Starlette, Uvicorn, HTMX, and fastcore's `FT` "FastTags" into a library for creating server-rendered hypermedia applications.

Important notes:

- Although parts of its API are inspired by FastAPI, it is *not* compatible with FastAPI syntax and is not targeted at creating API services
- FastHTML is compatible with JS-native web components and any vanilla JS library, but not with React, Vue, or Svelte.

## Docs

- [FastHTML quick start](https://fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features
- [HTMX reference](https://github.com/bigskysoftware/htmx/blob/master/www/content/reference.md): Brief description of all HTMX attributes, CSS classes, headers, events, extensions, js lib methods, and config options

## Examples

- [Todo list application](https://github.com/AnswerDotAI/fasthtml/blob/main/examples/adv_app.py): Detailed walk-thru of a complete CRUD app in FastHTML showing idiomatic use of FastHTML and HTMX patterns.

## Optional

- [Starlette full documentation](https://gist.githubusercontent.com/jph00/809e4a4808d4510be0e3dc9565e9cbd3/raw/9b717589ca44cedc8aaf00b2b8cacef922964c0f/starlette-sml.md): A subset of the Starlette documentation useful for FastHTML development.

What I like about it: the "Important notes" block tells the model exactly what it would otherwise get wrong (FastHTML is not FastAPI, and it doesn't work with React). The links go to .md files, not HTML pages. Every link has a note. Most files in the wild skip at least one of those.

Who publishes llms.txt

Mostly developer docs. OpenAI, Anthropic and Google's Gemini API all publish one for their own docs. Docs platforms like Mintlify and GitBook serve one automatically, Wix generates one for every site, and WordPress plugins such as Yoast SEO and AIOSEO can write one (integrations list).

On November 21, 2026 we fetched a few of them and checked them against the spec (full survey):

PublisherSizeLinksLinks with notesSpec errors
OpenAI6.2 KB4183%0
Anthropic102.5 KB7480%200
Cloudflare16.2 KB111100%0
Stripe96.8 KB47593%5
FastHTML (/docs)4.7 KB21100%0
WebCrawlerAPI (ours)29.3 KB2190%0

Two things stood out. The big names don't follow the format strictly: Anthropic's file reads like a docs page of its own, with prose and plain bullets instead of link notes. And passing the format check means little. Ours has zero errors, 219 links and not a single note, which makes it less useful than OpenAI's 41.

llms-full.txt

You'll often see llms-full.txt next to llms.txt. It's one file with the full content of the docs, not a list of links. It isn't in the llmstxt.org spec. Mintlify says it created the format with Anthropic, and it caught on: six of the ten files in our survey had one at the same path.

The tradeoff is size. llms.txt is meant to fit in a context window. llms-full.txt usually doesn't, so a tool has to search or chunk it.

llm.txt or llms.txt?

People search for "llm txt" and "llm.txt" a lot. The file is llms.txt, plural. The spec only defines files with that name, so a file saved as llm.txt sits where nothing looks for it.

Does llms.txt do anything?

For Google, no. Google's AI optimization guide says you don't need AI text files to appear in Google Search, "as Google Search itself doesn't use them". The June 15, 2026 Search Central update adds that these files "won't negatively or positively impact your visibility or rankings", and that it's fine to keep them for other systems that use them.

Most files don't get read at all. Ahrefs looked at 137K domains in May 2026: 28% published llms.txt, and 97% of the roughly 38,000 valid files got zero requests that month. Among named AI tools, GPTBot fetched the most and Claude-Code, Anthropic's coding agent, came second.

That matches what the spec describes: llms.txt is used most for software docs, by coding agents looking up an API. For a marketing site, I wouldn't expect much. For developer docs, the file is cheap to keep, and coding agents are the ones most likely to read it. Our llms.txt generator guide has the rest of the data in its "Does llms.txt work?" section, plus a one-liner to count llms.txt requests in your own access logs.

Making one

For a small site, write it by hand: H1, one-line summary, a few H2 sections of links with real notes. Serve it as plain text at /llms.txt.

For a quick first draft, the free llms.txt generator crawls up to 100 pages and returns an index. To build llms.txt and llms-full.txt from a crawl, validate them against the spec and rebuild them on a schedule, see how to generate llms.txt and llms-full.txt for any website.

FAQ

What is llms.txt?

A markdown file served at /llms.txt (or under a path like /docs/llms.txt) that gives AI agents a short, curated map of a site: an H1 with the site name, a one-line summary and H2 sections of links with notes. Jeremy Howard of Answer.AI proposed it in September 2024, and spec v2 followed in August 2026.

Does llms.txt list the AI models a website uses?

No. llms.txt says nothing about which models a site or app runs. It points AI agents to the site's most useful content, usually documentation.

Is llms.txt the same as robots.txt?

No. robots.txt tells crawlers what they may access. llms.txt blocks nothing; it's a reading list an agent can use when it needs information about your site. Access rules stay in robots.txt.

Is it llm.txt or llms.txt?

llms.txt, with an s. The llmstxt.org spec only defines files named llms.txt, so a file saved as llm.txt is not where agents and tools look.

What is llms-full.txt?

A single file with the full text of a site's docs. It isn't part of the llmstxt.org spec. Mintlify says it created the format with Anthropic, and many docs sites serve one next to llms.txt.

Does Google use llms.txt?

No. Google's AI optimization guide says Google Search doesn't use llms.txt or other AI text files, and the June 15, 2026 Search Central update says they won't negatively or positively impact visibility or rankings.


About the Author

Andrii Mazurian
Andrew Mazurian@andriixzvf

Founder, WebCrawlerAPI · 🇳🇱 Netherlands

Engineer with 15 years of experience in APIs, big data, and infrastructure. Founded WebCrawlerAPI in 2024 with a single goal: to build the best data API, and have been shipping it every day since.