The short answer
llms.txt and robots.txt are different files with different jobs. robots.txt, at the site root, tells crawlers which URLs they may fetch. It is an established internet standard, documented in RFC 9309. llms.txt is a community proposal for a Markdown file, usually at /llms.txt on the site root, that gives language models a curated overview of the pages worth reading. It is not a replacement for robots.txt, and it is not an official IETF or W3C standard. If you are choosing what to publish, keep robots.txt for access control, and treat llms.txt as an optional, carefully maintained index.
This article answers the comparison directly: what each file is for, where to place llms.txt, and how both relate to a sitemap. For a broader walk through crawlers, sitemaps, and the rise of these files, see the role of robots.txt, sitemap.xml, and llms.txt. For access rules aimed at AI crawlers, see robots.txt for LLMs.
What robots.txt is for
robots.txt is a crawl access file. A typical file lives at https://www.example.com/robots.txt. Crawlers that honor the standard look there first. You can allow or disallow paths, name specific user agents, and point to sitemaps with a Sitemap line.
That is all it is designed to do: say which URLs may be requested. It does not explain your product, highlight your best pages, or describe how an assistant should cite you. It also does not, by itself, say what a system may do with content it already has, such as training a model. Some vendors document separate robots.txt tokens for training preferences. Those tokens still live in the access file. They are not a substitute for a curated reading list.
Because robots.txt is a standard, most well-behaved crawlers look for it in one place: the site root of the host they are fetching. A file in a subdirectory, or a file named robot.txt, is easy to miss.
What llms.txt is for
llms.txt, as proposed at llmstxt.org, is a Markdown file that introduces the site and links to the pages an assistant should read first. The idea is closer to a curated guide than to a full URL list. A sitemap can contain every indexable URL. llms.txt should not. It should point to the canonical explanations, policy pages, pricing, docs, and other sources you would hand a new colleague.
The proposal also suggests that important pages can offer a clean Markdown version, and that llms.txt can live at the site root or at a subpath that covers the pages under that path, for example /docs/llms.txt for a documentation site. The root file, /llms.txt, is still the conventional starting point when you control the whole host.
Two limits matter for marketing teams. First, this is a proposal, not a ratified standard. We should not claim that every major model provider is required to fetch it, or that adding the file will improve rankings by itself. Second, a stale llms.txt can point models at outdated pricing, retired products, or the wrong canonical page. If you publish one, someone has to own it.
llms.txt vs robots.txt
Use this side-by-side when a stakeholder asks which file they need.
- Job. robots.txt governs crawl access. llms.txt offers a curated, readable index of useful pages.
- Format. robots.txt is a simple text format with user-agent and allow or disallow rules. llms.txt is Markdown, written for both people and models.
- Standing. robots.txt is specified in RFC 9309. llms.txt is a community proposal. It has been discussed in early-stage standards venues, but it is not a finished official standard.
- Typical location. robots.txt must be at /robots.txt on the host. llms.txt is usually at /llms.txt, and may also sit at a subpath for a section of the site.
- Relationship. They complement each other. A crawler still has to be allowed to fetch the pages you list in llms.txt. Listing a URL in llms.txt does not override a Disallow rule in robots.txt.
If you only have time for one file, keep robots.txt accurate. That file already decides whether AI crawlers can reach the pages you care about. llms.txt is useful after those pages are fetchable and you want to point assistants at the right ones.
Where should llms.txt go?
The usual place is the site root: /llms.txt on the same host as your public site, for example https://www.example.com/llms.txt. That mirrors how /robots.txt and /sitemap.xml are found. If your marketing site and documentation live on one host, one root file can cover both, with clear links to each section.
If you only control a path on a shared host, the proposal allows an llms.txt at that path, covering the pages beneath it. That matters for teams that publish docs on a subdirectory they own but cannot add files to the host root.
Do not hide the file behind authentication, and do not block it in robots.txt if you want assistants that honor both files to read it. After you publish it, request the URL yourself and confirm it returns the Markdown you expect, not a soft 404 or a marketing template.
A file named llm.txt, without the s, is easy to typo. The proposal’s filename is llms.txt. If older posts on your site mention llm.txt, treat that as informal shorthand and publish the proposed name.
How a sitemap fits in
A sitemap lists URLs you want discovered, often with last-modified dates. You typically advertise it in robots.txt:
Sitemap: https://www.example.com/sitemap.xml
That line does not belong in llms.txt, and llms.txt is not a sitemap. People searching for an “LLM sitemap” are usually asking one of two things: how to help AI crawlers find pages, or where a curated list should live. The first job is still a sitemap plus a correct robots.txt. The second job is llms.txt, if you choose to keep one.
You can mention the sitemap from llms.txt in prose, but the operational place to declare sitemap locations remains robots.txt. If you want a deeper view of crawlability for key pages, use how to get AI bots to crawl and index your key pages and our AI readiness checker.
A practical order of work
- Confirm /robots.txt is at the site root, names the crawlers you care about, and does not block the decision-stage pages you want read.
- Confirm your sitemap is valid and declared in robots.txt.
- Decide whether you will maintain /llms.txt. If yes, list only current, canonical pages, in Markdown, and assign an owner to update it when pricing, product names, or flagship guides change.
- Fetch /llms.txt while logged out, and confirm the links resolve.
None of these files is a content strategy on its own. They help systems find and interpret the pages you already trust. If you also want visitors on your site to get those answers without hunting through navigation, sign up for Webless and put that same first-party content to work in an on-site answer experience.
FAQ
What is the difference between llms.txt and robots.txt?
robots.txt tells crawlers which URLs they may fetch, and it is an official standard. llms.txt is a proposed Markdown file that points language models to a curated set of useful pages. One controls access. The other is a reading list.
Where should I put llms.txt?
Place it at the site root as /llms.txt unless you only control a subdirectory, in which case you can publish one at that path to cover the pages beneath it. Make sure robots.txt does not block the file.
Do I still need a sitemap if I have llms.txt?
Yes, if you want conventional discovery. A sitemap lists URLs for crawlers. llms.txt is a short, curated index. Declare the sitemap in robots.txt, not as a substitute for either file.
Is llms.txt a required standard?
No. It is a community proposal. Publishing one can help systems that look for it, but it does not replace robots.txt, and it should not be treated as a guaranteed ranking or citation lever.