How is llms.txt different from robots.txt?

They do different jobs. robots.txt is a standard file of rules that tells crawlers which parts of a site they may visit. llms.txt is a proposed Markdown file that gives AI agents a short overview of a site to read when they help someone. The proposal says the two have different purposes, and that llms.txt can complement robots.txt.

Key points.

  • robots.txt is set out in RFC 9309, a Proposed Standard. llms.txt is a proposal, open for community input.
  • robots.txt says what access is acceptable. The llms.txt proposal does not describe it as a way to allow or block access.
  • The llms.txt proposal says a sitemap lists all pages for search engines, while llms.txt gives language models a selected overview.
  • AGENTS.md is a different file: guidance for coding agents, kept in a code repository.

Side by side.

Each row comes from the file's own standard or proposal, listed under Sources.

robots.txt and llms.txt compared
robots.txtllms.txt
PurposeTells crawlers what access to the site is acceptableGives AI agents a short overview of the site and links to its most useful pages
Intended readersCrawlers, which are requested to honor its rulesAgents that need information while they help someone
FormatPlain text in UTF-8, in groups of user-agent, allow and disallow linesMarkdown. The only required part is an H1 with the site's name
Location/robots.txt, at the top level of the site/llms.txt at the site root, or a path such as /docs/llms.txt
StandingRFC 9309, a Proposed StandardA proposal, open for community input
LimitsIts rules are not a form of access authorizationThe proposal does not describe it as a way to allow or block access

Whether crawlers follow robots.txt: Do AI crawlers respect robots.txt?

Whether llms.txt is worth adding: Is llms.txt worth adding to your site?

llms.txt and a sitemap.

A sitemap is an XML file that gives search engines details about the pages on a site. One file can list up to 50,000 URLs and be up to 50MB, and robots.txt can point to it with a Sitemap line.

The llms.txt proposal says a sitemap lists all pages for search engines, while llms.txt gives language models a selected overview. It gives three reasons a sitemap is no substitute: it often lacks the versions of pages a language model can read, it leaves out links to other sites that could help, and the pages it covers are generally too large together to fit in a model's context window.

llms.txt and structured data.

Google defines structured data as a standardized format for providing information about a page and classifying its content. Google recommends the JSON-LD format, and says most structured data for Search uses the schema.org vocabulary.

The llms.txt proposal says the file can point to the structured data a site uses, to help language models interpret it in context.

For its AI features, Google says you need no new machine-readable files, AI text files or markup, and no special schema.org structured data, to appear in AI Overviews or AI Mode.

llms.txt and AGENTS.md.

AGENTS.md is an open format for guiding coding agents. The file usually sits at the root of a code repository, and a repository with several packages can add one inside each, where the nearest file takes precedence. Its site says README files are for people, and AGENTS.md holds what a coding agent needs, such as build steps, tests and conventions.

llms.txt is for websites. It gives agents that read a site an overview and links while they help someone.

What we do not know yet.

We do not know whether any major AI answer system reads llms.txt when it answers a question, or whether having one changes how often a site is named or cited.