Skip to content

Blog

llms.txt vs robots.txt: what each file does, and why you need to know the difference

robots.txt tells crawlers which parts of your site they may fetch, and llms.txt tells AI tools what your site is and which pages matter most; the first is a gate that the major crawlers obey, the second is a guide that some tools read, and an llms.txt cannot let in a crawler that robots.txt keeps out.

By Hemanth Arety ·

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

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.

  1. Check that robots.txt lets the AI search crawlers in. A stray "Disallow: /" costs you every answer.
  2. Check that your firewall or CDN is not blocking them regardless.
  3. 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.

Questions

Frequently asked questions

  • Is llms.txt a replacement for robots.txt?

    No. robots.txt controls which pages crawlers may fetch. llms.txt is a summary and a list of links for AI tools. They do different jobs and most sites should have both.

  • Can I block ChatGPT with llms.txt?

    No. llms.txt has no blocking rules. To block or allow OpenAI's crawlers, name them in robots.txt.

  • Do AI crawlers read llms.txt?

    Some AI tools and agents fetch it when they visit a site. No major engine has said it uses llms.txt to decide rankings, and Google says no such file is needed.

  • Should the pages in llms.txt be allowed in robots.txt?

    Yes. A link in llms.txt to a page that robots.txt disallows leads a well-behaved agent to a page it will not fetch.

  • Is robots.txt legally binding?

    It is a voluntary standard. The major search and AI companies say their crawlers follow it, but a crawler can ignore it, so a firewall rule is the only hard block.

See whether AI recommends you.

20 questions your customers ask, put to ChatGPT, Gemini and Claude, plus Google, and four fixes written for you. Free, one per website.