llms.txt vs robots.txt vs sitemap.xml: Which File Does What
· 13 min read
Listen to this article · 13 min
AI-generated voice
robots.txt tells crawlers which paths they may fetch, sitemap.xml lists the URLs you want search engines to find, and llms.txt is an optional Markdown index for language models. Only robots.txt states access rules, and crawlers honor them by choice. In my sample of 102 domains, 69 serve all three files.
TL;DR
- According to RFC (Request for Comments) 9309, robots.txt rules are "not a form of access authorization".
- Google says Google Search ignores llms.txt, and no crawler page I read says its bots read the file.
- In my sample, 70 of 102 domains serve llms.txt, all 70 also serve robots.txt, and none of the 102 has a
User-agent: *rule that closes /llms.txt. - Seven of the eight domains that block an AI (artificial intelligence) crawler token serve llms.txt, and five of those seven block no search or user-triggered token, a consistent policy in my reading.
- A crawler that honors a block skips /llms.txt too unless an Allow line reopens it, and llms.txt cannot reopen what robots.txt closed.
- I measured presence, not effect: nothing here shows that any file changes what an AI system cites.
llms.txt vs robots.txt vs sitemap.xml: how do the three files differ?
On 26 November 2026 I read each file's standard or proposal and the crawler pages of Google, OpenAI, Anthropic and Perplexity. The table gives each file the same six rows.
| robots.txt | sitemap.xml | llms.txt | |
|---|---|---|---|
| Addressed to | Crawlers | Search engines | Language models and agents |
| Defined by | RFC 9309, Standards Track, September 2022 | The sitemaps.org protocol | A proposal at llmstxt.org, 3 September 2024 |
| Format | Plain text: User-agent, Allow, Disallow |
XML (Extensible Markup Language): <urlset>, <url>, <loc> |
Markdown with a required H1 |
| Binding on the reader? | Asked, not forced: "not a form of access authorization" | No; Google says a sitemap does not guarantee that all its items are crawled and indexed | No mechanism described |
| Without the file | A 4xx response lets crawlers fetch any path; a 5xx or unreachable file means complete disallow | Google can usually discover most of a properly linked site | Not an error: Lighthouse marks a 404 as not applicable |
| Who documents reading it | Google, OpenAI and Anthropic; user-triggered fetchers may ignore it | No crawler page I read; Google says Google Search ignores it |
Only robots.txt is a rule, and Google says even its instructions cannot enforce crawler behavior. The llms.txt proposal expects agents to read the file, but no crawler page I read says they do.
What does each file do?
What does robots.txt do?
A robots.txt file tells crawlers which URLs they may fetch. Google's introduction to robots.txt says it is used mainly to avoid overloading a site with requests and cannot keep a page out of Google.
What does sitemap.xml do?
A sitemap.xml file lists the URLs you want search engines to know about. According to the sitemaps.org protocol, one file holds up to 50,000 URLs and 50MB (52,428,800 bytes), and a Sitemap: line in robots.txt announces it.
What does llms.txt do?
The llms.txt file is Markdown at /llms.txt that gives language models a curated overview of a site. On 3 September 2024, Jeremy Howard published the proposal at llmstxt.org, which requires only an H1 naming the site and says agents are "expected to view or search" the file. OpenAI, Perplexity and Meta each publish an llms.txt for their own documentation, yet none of their crawler pages says its bots read the file. Setup is in the Next.js walkthrough and the WordPress plugin comparison, and the llms-full.txt article covers the full-text variant.
Does llms.txt replace robots.txt?
No. The llms.txt file has no allow or disallow syntax, so it cannot open or close a path. The llmstxt.org proposal says the two files "have different purposes" and that llms.txt "can complement robots.txt by providing context for allowed content." In my sample, all 70 domains that serve llms.txt also serve robots.txt, so the file sits next to robots.txt, not in its place.
Is llms.txt a sitemap for AI?
Partly. Both are lists of URLs for machines, and they promise different things: the proposal calls sitemap.xml "a list of all the indexable human-readable information available on a site", while llms.txt is a curated overview with a note per link.
What did the check on 102 domains show?
On 26 November 2026 I requested /robots.txt, /llms.txt, /sitemap.xml and up to three sitemaps named in robots.txt from the 102 domains of the 18 November 2026 top 20 in my adoption scan. I also checked each robots.txt for blocks of AI crawler tokens. Each figure below is a number of domains.
| What the check looked for | Domains of 102 |
|---|---|
| robots.txt answers 200 with a type other than text/html | 101 |
robots.txt has a Sitemap: line |
91 |
| A sitemap is reachable, from robots.txt or at /sitemap.xml | 100 |
| llms.txt answers 200 with a type other than text/html | 70 |
| All three files | 69 |
A User-agent: * rule that closes /llms.txt |
0 |
A Disallow: / group for at least one of 11 AI crawler tokens |
8 |
| Of those 8, serving llms.txt | 7 |
| Of those 8, blocking OAI-SearchBot, ChatGPT-User or PerplexityBot | 2 |
Of the 102 domains, 70 serve llms.txt, all 70 also serve robots.txt, and 69 of them have a reachable sitemap too. These pages rank for AI search queries, so I expect their sites to know the topic better than most and read 70 of 102 as an upper bound for the wider web.
Which domains block AI crawlers and still serve llms.txt?
Eight of the 102 domains have a group with Disallow: / for at least one of 11 AI crawler tokens, and seven of the eight serve llms.txt. Whether that clashes depends on what each token is for, and the vendors' own pages say.
| What the vendor's page says the token is for | Tokens |
|---|---|
| Search | OAI-SearchBot (OpenAI), PerplexityBot (Perplexity) |
| Fetching on a user's request | ChatGPT-User (OpenAI), where robots.txt rules may not apply |
| Training or other model use | GPTBot (OpenAI), ClaudeBot (Anthropic), meta-externalagent (Meta), Applebot-Extended (Apple), Google-Extended (Google) |
| An open web archive | CCBot (Common Crawl) |
| No vendor page I could open | Bytespider, anthropic-ai |
Here are the eight domains, with the role of what each one blocks.
| Domain | Tokens blocked of 11 | OAI-SearchBot, ChatGPT-User or PerplexityBot blocked | llms.txt |
|---|---|---|---|
| vocus.cc | 11 | All three | Yes |
| www.firstaisearch.com | 9 | ChatGPT-User | Yes |
| byaxovox.com | 8 | None | Yes |
| isyoursiteinai.com | 8 | None | Yes |
| rankfixer.co | 8 | None | Yes |
| www.broworks.net | 5 | None | Yes |
| thedigitalelevator.com | 1 | None | Yes |
| brandmek.com | 1 | None | No |
Five of the seven that serve llms.txt block none of the three search or user-triggered tokens: byaxovox.com, isyoursiteinai.com, rankfixer.co, broworks.net and thedigitalelevator.com. In my reading that is a consistent policy, not a contradiction. The robots.txt file can refuse training and admit search because it works by token, while llms.txt has no tokens and goes to whoever asks. byaxovox.com's robots.txt labels its block of AI training scrapers as one that "does not touch Google Search", and leaves the live search and user-fetch bots unblocked. On 18 November byaxovox.com had neither llms.txt nor any block, and it has both now.
The scan flags two domains for a search or user-triggered token. vocus.cc's robots.txt puts OAI-SearchBot, ChatGPT-User, PerplexityBot and three more tokens in one group. That group has Disallow: / and a long list of Allow lines, including Allow: /llms.txt. Under RFC 9309 those tokens may therefore fetch the file, and the scan flags them only because it does not read Allow lines. firstaisearch.com's robots.txt allows OAI-SearchBot and PerplexityBot and groups ChatGPT-User with its training blocks, with no Allow line for the file. That leaves user-triggered ChatGPT fetches without /llms.txt, though OpenAI says robots.txt rules may not apply to ChatGPT-User anyway.
Can robots.txt block llms.txt?
Yes. The /llms.txt URL is a path like any other. A crawler compares each rule's path with the start of the URL path, byte by byte, as RFC 9309 describes. A rule matches when its whole path fits the start of the URL. Disallow: / is a single slash, so it matches /llms.txt like every other path on the site.
RFC 9309 says a crawler obeys the group that matches its token and uses the * group only when none matches. A Disallow: / under User-agent: * therefore closes /llms.txt for crawlers without a group of their own, while the same line under User-agent: GPTBot closes it for GPTBot alone.
One line reverses this for a single file. RFC 9309 says the most specific match, the one with the most octets, must be used, and an allow rule is preferred in a tie. The path in Allow: /llms.txt is longer than the path in Disallow: /, so inside the same group it opens the file, which is the pattern vocus.cc uses.
The mechanism binds only crawlers that honor it, because RFC 9309 says its rules are not a form of access authorization. It also may not reach user-triggered fetchers: OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them. The AI crawler list for robots.txt names the tokens.
Which file should come first, and how should they point at each other?
This order is my suggestion, ranked by what breaks when a file is wrong, not by a measured effect on visibility.
- robots.txt first. Serve it with status 200 as plain text. According to RFC 9309, a 4xx response lets crawlers fetch anything, and a server error means they must assume complete disallow.
- sitemap.xml second. Publish it and name it in robots.txt with a
Sitemap:line, as 91 of the 102 domains in my sample do. - llms.txt last, and only if it is cheap. List only pages that are in the sitemap and that robots.txt allows to the readers you want.
- Decide per token. The vendors separate training tokens from search tokens, so you can block one without the other. If a token's group has
Disallow: /, addAllow: /llms.txtto it to let that token read the file.
Run this loop to check all three files in one pass. It prints the status and content type of each file.
for f in robots.txt sitemap.xml llms.txt; do
curl -sL -o /dev/null -w "$f %{http_code} %{content_type}\n" "https://example.com/$f"
doneA file counts when the status is 200 and the content type is not text/html. The loop checks the default sitemap path only, so request the URL your robots.txt names if it differs. The curl manual documents the http_code and content_type variables.
FAQ
Is llms.txt like robots.txt?
In name and place only. Both are text files that a machine requests at a fixed path, usually at the site root. Everything else differs: robots.txt is a set of rules that crawlers are asked to obey, token by token, and llms.txt is a reading list with no rules at all. In my sample, all 70 domains that serve llms.txt also serve robots.txt, so the practical question is how the two fit together, not which one to pick.
Do I need llms.txt?
Not for Google. Google's guide to generative AI search says you do not need new machine readable files, AI text files, markup or Markdown to appear in Google Search, and that Google Search ignores llms.txt files. I suggest adding one only when it costs a plugin setting or a route handler. I have not measured any effect on citations.
Does Google use llms.txt?
No. According to Google's guide to generative AI search, Google Search ignores llms.txt files, so creating one neither harms nor helps visibility or rankings there. Chrome's Lighthouse has a separate audit that fetches the file, and its documentation calls providing the file optional at the moment.
How do I add llms.txt to a website?
Save a Markdown file named llms.txt in the site root, start it with an H1 that names the site, and serve it as plain text. On Next.js a static file or a route handler does it, and on WordPress the Yoast SEO, Rank Math and All in One SEO plugins can generate it. The Next.js walkthrough and the WordPress plugin comparison give the steps.
Method and limits
The sample is the 102 domains behind the 104 pages of the 18 November 2026 top 20 in the adoption scan. That scan took United States English Google results from DataForSEO for seven queries and dropped platform domains. On 26 November 2026 my script made one request per file with a desktop Chrome User-Agent, a 20-second timeout and no retry. The blocks come from a second request for each robots.txt the same day, read with the function the adoption scan uses. Every per-domain record, for files and blocks alike, is in the dataset for this article. These limits apply:
- A file is present when the response is 200, the type is not text/html and the body is not empty. A sitemap needs
<urlsetor<sitemapindexin its first 2,000 characters. - A block is a group naming the exact token with
Disallow: /. Allow lines are not read, so a group that reopens some paths still counts as blocked. - A WAF (web application firewall) or Cloudflare rule is invisible in robots.txt, and I did not check llms.txt files for valid structure.
- The
*check matches path prefixes and does not expand the wildcards of RFC 9309, soDisallow: /*.txtwould be missed. The llms.txt file was requested at the root only. - The sample is self-selected. The 70 domains with llms.txt here and 69 on the research page for 18 November differ by day, fetcher and byaxovox.com's new file, not by trend.
- I measured presence, not effect, and had no server logs, so I cannot say which bots fetch /llms.txt. Every external page cited here was read on 26 November 2026.