What is the difference between llms.txt and robots.txt?
One controls access and the other gives directions.
- Job
- robots.txt: Says what a crawler may and may not fetch
- llms.txt: Says what the site is and links to its key pages
- Written in
- robots.txt: Its own rule format: User-agent, Allow, Disallow
- llms.txt: Markdown
- Read by
- robots.txt: Search engines and AI crawlers, before they crawl
- llms.txt: AI tools and agents that look for it
- Status
- robots.txt: An internet standard since 2022, in use since 1994
- llms.txt: A proposal, on its second version
- Followed by the major AI crawlers
- robots.txt: Yes, by their own account
- llms.txt: No engine has said it uses it for ranking
- What happens without it
- robots.txt: Everything may be crawled
- llms.txt: Nothing changes; tools read your pages directly
| Item | robots.txt | llms.txt |
|---|---|---|
| Job | Says what a crawler may and may not fetch | Says what the site is and links to its key pages |
| Written in | Its own rule format: User-agent, Allow, Disallow | Markdown |
| Read by | Search engines and AI crawlers, before they crawl | AI tools and agents that look for it |
| Status | An internet standard since 2022, in use since 1994 | A proposal, on its second version |
| Followed by the major AI crawlers | Yes, by their own account | No engine has said it uses it for ranking |
| What happens without it | Everything may be crawled | Nothing changes; tools read your pages directly |
Can llms.txt allow or block AI crawlers?
No. Access is decided in robots.txt, and at your firewall.
This is the most common mix-up. An llms.txt file has no "allow" or "disallow". It cannot open a door that robots.txt has closed, and it cannot keep anyone out. If your robots.txt disallows OAI-SearchBot, ChatGPT's search will not show your pages, however good your llms.txt is.
The llms.txt proposal says the same thing from the other side: the file is designed to coexist with current web standards, and it can complement robots.txt by providing context for the content that is allowed.
Which file do AI crawlers actually obey?
robots.txt, according to each company's own documentation.
OpenAI, Anthropic, Perplexity and Google each publish the names their crawlers answer to in robots.txt, and say their crawlers follow those rules. None of them documents llms.txt as a control. So if your goal is to be found, or to opt out of training, robots.txt is where you do it. We keep three robots.txt files you can copy for the common choices.
Then what is llms.txt for?
Helping an AI tool that has already arrived find the right page quickly.
A web page wraps its information in navigation, scripts and layout. An AI agent sent to your site, for example a coding assistant reading documentation or a chat assistant asked about your product, does better with a short index that says what the site is and where the important pages are. That is what llms.txt gives it.
Version 2 of the proposal, from August 2026, says that thousands of sites now publish one, that documentation platforms generate them automatically, and that Chrome's Lighthouse checks for one as part of its checks for agent browsing. It is most used for software documentation.
Do the two files ever conflict?
They can contradict each other, and when they do, robots.txt wins.
The mistake to avoid is listing pages in llms.txt that robots.txt disallows. An agent that follows the rules will read your llms.txt, try the link, and stop at the gate. Keep the two in step: every page you link from llms.txt should be one that crawlers are allowed to fetch.
Where does each file go?
Both sit at the root of your site.
- yoursite.com/robots.txt, one per host. A subdomain needs its own.
- yoursite.com/llms.txt. Version 2 also allows one in a subfolder, covering the pages under it.
Does Google use llms.txt?
Google says no special file is needed for its AI features.
Its guide to AI features says there are no additional requirements to appear in AI Overviews or AI Mode, and that you do not need new machine-readable files or AI text files. What Google does ask for is ordinary: crawling allowed in robots.txt and by your CDN or host, and pages that are indexed and can show a snippet.
Which should I set up first?
robots.txt, then llms.txt.
- Check that robots.txt lets the AI search crawlers in. A stray "Disallow: /" costs you every answer.
- Check that your firewall or CDN is not blocking them regardless.
- Add an llms.txt. It takes a few minutes with the free Kortex llms.txt generator, and the same page checks an existing file against the format.
If you are deciding between llms.txt and its larger cousin, see llms.txt vs llms-full.txt. To see what AI assistants say about your company today, run the free Kortex audit.