# How is llms.txt different from robots.txt?

Canonical HTML page: https://brainjuicelabs.xyz/library/explainers/llms-txt-vs-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.

Table: robots.txt and llms.txt compared

|  | 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?](https://brainjuicelabs.xyz/library/explainers/do-ai-crawlers-respect-robots-txt)

Whether llms.txt is worth adding: [Is llms.txt worth adding to your site?](https://brainjuicelabs.xyz/library/explainers/is-llms-txt-worth-it)

## 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.

## CiteSurge AI Readiness Check

Figure: A score dial for the AI Readiness Check. The ring fills as a website's score counts up out of 100, and the letter grade changes as the score crosses each grade band.

It looks for an llms.txt file on your site, checks its structure and tests whether its links resolve.

Free. No email.

[Check your llms.txt with the free AI Readiness Check](https://citesurge.com/score)

## 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

- [llms.txt](https://brainjuicelabs.xyz/library/glossary#llms-txt): llms.txt is a proposed convention for a Markdown file at /llms.txt on a website that gives language models a short overview of the site and links to its most useful pages.
- [robots.txt](https://brainjuicelabs.xyz/library/glossary#robots-txt): robots.txt is a plain text file at /robots.txt on a website whose rules tell crawlers, by user agent, which parts of the site they may and may not visit.

## Sources

- [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309.html): The standard for robots.txt rules.
- [The /llms.txt file, v2](https://llmstxt.org/): The llms.txt proposal, on its own site.
- [Sitemaps XML format](https://www.sitemaps.org/protocol.html): The sitemap protocol, on sitemaps.org.
- [Introduction to structured data markup in Google Search](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data): Google Search Central documentation on structured data.
- [AI features and your website](https://developers.google.com/search/docs/appearance/ai-features): Google Search Central documentation on AI Overviews and AI Mode.
- [AGENTS.md](https://agents.md/): The AGENTS.md format, on its own site.

## More explainers

- [What is the difference between a mention and a citation in an AI answer?](https://brainjuicelabs.xyz/library/explainers/mention-vs-citation)
- [How do AI answers choose their sources?](https://brainjuicelabs.xyz/library/explainers/how-ai-answers-choose-sources)
- [Is letting AI crawlers in enough to get cited?](https://brainjuicelabs.xyz/library/explainers/ai-crawler-access-and-quotability)
- [Is llms.txt worth adding to your site?](https://brainjuicelabs.xyz/library/explainers/is-llms-txt-worth-it)
- [Should you block GPTBot and other AI crawlers?](https://brainjuicelabs.xyz/library/explainers/should-you-block-gptbot)
- [What is the difference between AI readiness and AI visibility?](https://brainjuicelabs.xyz/library/explainers/ai-readiness-vs-ai-visibility)
- [Do AI crawlers respect robots.txt?](https://brainjuicelabs.xyz/library/explainers/do-ai-crawlers-respect-robots-txt)
