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 | llms.txt | |
|---|---|---|
| Purpose | Tells crawlers what access to the site is acceptable | Gives AI agents a short overview of the site and links to its most useful pages |
| Intended readers | Crawlers, which are requested to honor its rules | Agents that need information while they help someone |
| Format | Plain text in UTF-8, in groups of user-agent, allow and disallow lines | Markdown. 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 |
| Standing | RFC 9309, a Proposed Standard | A proposal, open for community input |
| Limits | Its rules are not a form of access authorization | The 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.
Related terms.
Sources
SourceRFC 9309: Robots Exclusion ProtocolThe standard for robots.txt rules.SourceThe /llms.txt file, v2The llms.txt proposal, on its own site.SourceSitemaps XML formatThe sitemap protocol, on sitemaps.org.SourceIntroduction to structured data markup in Google SearchGoogle Search Central documentation on structured data.SourceAI features and your websiteGoogle Search Central documentation on AI Overviews and AI Mode.SourceAGENTS.mdThe AGENTS.md format, on its own site.More explainers.
- What is the difference between a mention and a citation in an AI answer?
- How do AI answers choose their sources?
- Is letting AI crawlers in enough to get cited?
- Is llms.txt worth adding to your site?
- Should you block GPTBot and other AI crawlers?
- What is the difference between AI readiness and AI visibility?
- Do AI crawlers respect robots.txt?