Most of the files that shape how machines see a website have dull, settled jobs. A robots.txt file tells crawlers where they may go. A sitemap lists URLs so a search engine can find them. llms.txt is newer and less settled. It is a plain Markdown file at the root of a site that gives a language model a short, curated guide to the content that matters most, along with links to clean versions of those pages.
The idea is useful, and it is easy to write one. The confusion comes from what people expect it to do. Some treat it as a ranking signal for AI search. Others treat it as a way to keep AI systems out. It is neither. This guide covers what the public proposal actually says, how the format works with an annotated example, what the major AI providers document about it, why it gives you no control over access, and how it compares with robots.txt and XML sitemaps. It ends with a practical method for writing one.
What the llms.txt proposal says
llms.txt began as a proposal, and its public specification at llmstxt.org still describes it that way. It was put forward in 2024 by Jeremy Howard of Answer.AI. It is not a standard from a standards body, and no search engine or AI lab governs it.
The proposal starts from a limitation of language models. Their context windows are too small to take in a whole website. Even when they could, converting a typical HTML page into something a model can use is messy. Navigation, cookie banners, scripts, ads and layout markup all compete with the content. A site owner knows which pages matter and can say so briefly, in a format both people and models read easily. The proposal suggests doing exactly that.
Several points in the spec are worth getting right, because commentary often gets them wrong:
- It is aimed mainly at inference time, not training. The spec presents the file as help for a model that is using a site's information to answer a question or complete a task, such as a coding assistant reading library documentation. It is not mainly a statement about whether content may be used to train models.
- It is Markdown, not a configuration syntax. robots.txt has directives and sitemaps have XML schemas. llms.txt is structured prose that can also be parsed by a program, because the format fixes the order and style of a few elements.
- It lives at
/llms.txt. The spec puts it at the root path of a site and also allows it in a subpath, for example under a documentation directory. - It has a companion idea: Markdown versions of pages. The proposal suggests that sites offer a clean Markdown copy of useful pages at the same URL with
.mdappended. For URLs without a file name, it suggestsindex.html.md. This is optional, but it explains why many llms.txt files link to.mdURLs.
Read in this light, llms.txt is closer to a well-written README for a website than to a technical control file. It tells a model where to start and what each resource contains.
The file format, element by element
The spec defines a short list of elements that must appear in a fixed order. Only the first is required.
- An H1 with the name of the project or site. This is the one mandatory element.
- A blockquote with a short summary. One or two sentences with the key information a reader needs to make sense of the rest of the file.
- Optional detail sections. Any number of paragraphs or lists, without headings, giving more context about the project and how to interpret the files.
- Zero or more H2 sections containing file lists. Each section is a Markdown list. Each item is a link with a name and URL, optionally followed by a colon and a short note about the resource.
- An optional section titled exactly "Optional". The spec gives this heading a special meaning. Links listed under it are secondary and can be skipped when a shorter context is needed.
Because the structure is fixed, a program can split the file into its parts reliably. The reference tooling released with the proposal does this: it reads the file, fetches the linked resources and assembles them into a single context document. Through a flag or option, it can include or leave out the "Optional" section.
An annotated example
Here is an llms.txt file for a fictional company that sells accounting software. It is invented for illustration and follows the structure described above.
# Ledgerly
> Ledgerly is cloud accounting software for small businesses. This file points
> to the documentation, API reference and policies most useful for answering
> questions about the product.
Ledgerly has two products: Ledgerly Books (bookkeeping and invoicing) and
Ledgerly Payroll. Feature availability differs by country; the regional
availability page is the authoritative source and should be checked before
stating whether a feature exists in a given market.
Pricing changes and is published only on the pricing page. Do not infer prices
from blog posts or older documentation.
## Product documentation
- [Getting started](https://example.com/docs/getting-started.md): Account setup, importing data, first invoice
- [Invoicing](https://example.com/docs/invoicing.md): Creating, sending and reconciling invoices
- [Payroll overview](https://example.com/docs/payroll.md): How payroll runs work and which regions are supported
## API
- [API reference](https://example.com/api/reference.md): Endpoints, authentication, rate limits
- [Webhooks](https://example.com/api/webhooks.md): Event types and payload formats
## Policies
- [Regional availability](https://example.com/availability.md): Which features are offered in which countries
- [Pricing](https://example.com/pricing): Current plans; the only authoritative source for prices
- [Data security](https://example.com/security.md): Hosting, encryption and compliance summary
## Optional
- [Changelog](https://example.com/changelog.md): Release history
- [Company blog](https://example.com/blog): Announcements and articles; may be out of date
What each part does:
# Ledgerlyis the required H1. Use the name people actually call the site or product.- The blockquote gives the shortest useful description. If a model reads nothing else, it should come away with a correct one-sentence summary of what the site is.
- The two unheaded paragraphs are the optional details. This is where you put context that changes how the linked material should be read: which product is which, which page wins in a conflict, what not to infer. Instructions of this kind are often the most useful part of the file.
- The H2 sections group the links by purpose. The names are up to you. The spec only requires that each section is a list of links.
- Each list item combines a descriptive link name, a URL and a short note after a colon. The note should say what the resource contains, not repeat the title.
.mdURLs point to Markdown copies of pages, following the companion convention. If you don't publish Markdown versions, link to the normal HTML pages. The format still works.## Optionalholds material that is useful but can be dropped when space is tight.
llms-full.txt and other conventions
You will often see a second file, llms-full.txt, next to llms.txt on documentation sites. It usually contains the complete text of the documentation in one Markdown file, so a tool can load everything without following links. This convention spread through documentation platforms and developer tools. It is not part of the core llms.txt specification. That matters if you're deciding what you "need" to publish. If you publish an llms-full.txt, treat it as a convenience for people and tools that request it, not as something the proposal requires.
Which AI systems say they read it
This is the question most site owners care about, and the answer is less exciting than the coverage suggests. Two different things often get mixed up:
- Publishing an llms.txt file. Many companies, including AI companies, publish llms.txt files for their own developer documentation. That shows they want models and coding tools to read their docs easily.
- Officially reading other sites' llms.txt files as part of a crawler, search index or answer engine. This requires a provider to document that its systems fetch the file and use it. Very few, if any, of the major providers say this.
The table below lists the official pages where each major provider documents how its crawlers and AI features interact with websites. It reflects these pages as documented up to mid-2026. Providers revise these pages without notice. Open each one yourself, note the date you checked it, and rely on what the live page says.
| Provider | Official page to check | What it documents | llms.txt status as documented |
|---|---|---|---|
| Google Search Central: "AI features and your website" | How content appears in AI Overviews and AI Mode; no special requirements beyond normal Search eligibility | Not listed as a signal. Google representatives have said publicly that Search does not use it | |
| Google's list of common crawlers, including the Google-Extended token | Crawler user agents and robots.txt tokens, including control over use in models | Control is through robots.txt, not llms.txt | |
| 's crawler documentation ("Overview of Crawlers") | OAI-SearchBot, GPTBot and -User, and how robots.txt applies to each | No llms.txt support documented | |
| 's help-center article on its crawlers | ClaudeBot and related user agents, and how to restrict them with robots.txt | No llms.txt support documented for crawling; publishes llms.txt for its own docs | |
| Perplexity | Perplexity's crawler documentation | PerplexityBot and Perplexity-User, and robots.txt behavior | No llms.txt support documented |
A few notes on reading this table correctly.
Google has been the most explicit. Its documentation on AI features says you don't need special files or markup to appear in AI Overviews or AI Mode. The same crawling, indexing and quality systems apply. Its search advocates have also addressed llms.txt directly in public and said Google Search does not use it. One compared it to the old keywords meta tag. If your goal is visibility in Google's AI features, see AI Overview: Everything an SEO Pro Needs to Know in 2026. The levers there are the usual ones: crawlable, indexable, useful content.
"Not documented" does not mean "never fetched." Crawlers request all kinds of URLs, and an llms.txt file at your root may well show up in your server logs. A fetch is not the same as a documented use. Without a statement from the provider, you can't tell whether the file shapes answers, gets indexed like any other text file, or gets ignored.
User-initiated reading is real, and it is where the file helps most. When someone gives an AI assistant your llms.txt URL, or a coding tool or agent is set up to fetch it, the model reads it because it was asked to. That is the use case the proposal was designed for. Developer documentation benefits most, because developers often point their tools straight at docs. A search engine deciding by itself to prefer your file is a different matter, and no provider has documented it.
For how the answer engines source and cite pages in general, see Best AI Search Engines in 2026: How They Compare on Sources and Citations and the provider-specific guide Perplexity: Complete 2026 Guide for SEO and GEO Strategy.
Why llms.txt is not an access control
The most damaging misunderstanding is that llms.txt lets you allow or block AI systems. It can't, for three reasons.
It has no directives. The format has a title, a summary, prose and lists of links. There is no syntax for "disallow" or "allow," and no way to name a user agent. Writing "please do not use this content for training" in the details section is just a sentence in a text file. No provider has committed to honoring such a sentence.
It is opt-in reading, not enforcement. A system reads llms.txt only if it chooses to. A system that ignores the file loses nothing, and the file has no means of stopping it.
Even robots.txt is not real access control. robots.txt is the mechanism AI providers do document. It is still a voluntary protocol. Well-behaved crawlers follow it, but it doesn't authenticate or block anything. If content must stay private, the controls work at the server or application level:
- authentication and login walls for anything that is not meant to be public;
- server or CDN rules that refuse requests from specific user agents or IP ranges published by providers;
- bot-management and firewall features offered by hosting and CDN platforms;
noindexand related directives where the goal is keeping pages out of search results rather than out of reach.
If your aim is to limit how AI crawlers use your public content, the practical first step is a robots.txt file that names each provider's documented user-agent tokens. A robots.txt generator can help you build one without syntax mistakes. Be aware that some tokens govern training use and others govern search or user-triggered fetching. Blocking the wrong one can remove you from AI search results while leaving training use untouched, or the reverse. Check each provider's crawler page for the current tokens and what each one controls.
There is also a quieter risk. An llms.txt file is a public, neatly organized index of your most important content. Its purpose is to make that content easier to find and read. Don't list anything there that you would not want any reader, human or machine, to find.
llms.txt vs robots.txt vs XML sitemaps
These three files sit side by side at the root of many sites, and they do different jobs.
| robots.txt | XML sitemap | llms.txt | |
|---|---|---|---|
| Purpose | Tells crawlers which paths they may or may not request | Lists URLs so search engines can discover and recrawl them | Gives language models a curated guide to key content |
| Format | Plain-text directives (User-agent, Disallow, Allow) | XML following the sitemaps protocol | Markdown in a fixed element order |
| Audience | Crawlers | Search engine crawlers | Language models and the tools that call them, plus human readers |
| Coverage | Rules by path pattern | Ideally every indexable URL | A deliberately small selection |
| Carries context? | No | Minimal (e.g. last modified) | Yes, through summaries, notes and instructions |
| Formally standardized? | Yes, as an IETF RFC | Yes, through the sitemaps.org protocol supported by major engines | No, a public proposal |
| Documented support by major AI search systems | Yes, through provider crawler tokens | Used by search engines for discovery | Not documented by major providers as of mid-2026 |
| Controls access? | Advisory only, but widely honored | No | No |
The comparison clears up a common mix-up: llms.txt is not a sitemap for AI. A sitemap aims to be complete and is meant for machines that will crawl and index everything. llms.txt aims to be selective. It works best when it is short, and its value lies in the notes and context a sitemap has no place for. If you generate llms.txt by dumping your sitemap into Markdown, you lose the part that makes it useful.
It also doesn't replace robots.txt. The two answer different questions. robots.txt says where a crawler may go. llms.txt says what is worth reading once a model is looking. A site can have a strict robots.txt that blocks training crawlers and still publish an llms.txt that helps a user's assistant read the public docs. The two are compatible as long as you know which one does what.
How to write an llms.txt file
The format takes minutes to learn. Most of the work is editorial: deciding what belongs in the file and writing notes that help.
1. Decide what the file is for
Start with the questions you would like a model to answer correctly about your site. For a software product, these are usually setup, the API, limits and pricing. For a publication, it is the topics you cover and your most authoritative guides. For a local business, it is services, locations, hours policy and contact routes. The file should point to the pages that answer those questions. It does not need to cover everything you have published.
2. Write the H1 and blockquote first
Use the site or product name in the H1. Write the blockquote as if it were the only thing a model will read: what the site is, who it serves, and what makes it distinct, in one or two plain sentences. Leave out slogans. A sentence such as "the leading platform for innovative solutions" tells a model nothing.
3. Use the detail section for the things models get wrong
The unheaded paragraphs after the blockquote are the best place to correct predictable errors:
- which page is authoritative when two pages disagree;
- facts that change often and should always be checked on the live page, such as prices, availability or schedules;
- naming confusion, such as old product names, regional variants or similarly named competitors;
- how your content is organized, such as versioned docs, archived material or region-specific pages.
Keep these short and factual. This is not the place for marketing copy or for long lists of rules.
4. Group links into a few clear H2 sections
Pick section names that describe purpose: "Documentation," "API," "Guides," "Policies," "Reference." A handful of sections with a few links each usually beats a long flat list. Link to evergreen, canonical URLs, not campaign pages or URLs that redirect.
5. Write a useful note for every link
The note after the colon should say what a reader will find, in a few words: "Endpoints, authentication, rate limits" is better than "Our API docs." If a page has an important limitation, such as being historical, region-specific or superseded, say so in the note.
6. Put secondary material under "Optional"
Changelogs, blog archives, case studies and background reading belong in the "Optional" section, so tools that shorten context drop them first. Spell the heading exactly as ## Optional so tools that follow the spec recognize it.
7. Consider Markdown versions of key pages
If your platform can serve clean Markdown copies of important pages at .md URLs, link to those. They are easier for models to use than HTML full of interface markup. If your platform can't do this, link to the normal pages. The file is still valid and still useful.
8. Publish at the root and check it
Upload the file so it is available at https://yourdomain/llms.txt. Check these things:
- it returns a successful response, not a redirect chain or an error page;
- it is served as plain text or Markdown, not wrapped in an HTML template;
- every link resolves to a live, canonical page;
- your robots.txt does not block it if you want it fetched.
A quick test is to open the file in a browser and read it as a newcomer. If it gives you a clear picture of the site in under a minute, it is doing its job.
9. Keep it current
A stale llms.txt can do more harm than none. If it points to a retired pricing page or a deprecated API version, a model that trusts it will repeat old information. Add the file to whatever process you use when pages are retired, renamed or restructured. Review it whenever you review navigation or documentation structure.
Common mistakes
Treating it as a keyword or ranking file. Stuffing the blockquote with search terms does nothing documented for search visibility and makes the file worse for the readers it is meant for.
Listing every URL. A long, unannotated list is a sitemap in the wrong format. Pick the pages that matter.
Adding access rules in prose. Lines such as "AI crawlers may not use this content" belong in robots.txt (as user-agent rules) and in your terms. In llms.txt they have no documented effect.
Linking to pages that are blocked or gated. If robots.txt disallows a path, or the page sits behind a login, listing it in llms.txt creates a contradiction and leaves a tool unable to fetch the resource.
Copying a template without editing it. Generated files that repeat page titles as notes add little. The notes and the context section are where you add value.
Expecting measurable traffic changes. No major provider documents using llms.txt as a ranking or citation signal, so there is nothing to attribute changes to. If traffic from AI assistants moves, the likely causes are the usual ones: content, crawlability, and how each engine selects sources. Why that measurement is getting harder is covered in Personalized AI Mode: What It Changes for SEO and Measurement.
Should you publish one?
The honest answer depends on what kind of site you run.
Documentation sites, developer tools, APIs and open-source projects have the clearest reason to publish. Their audience already points coding assistants and agents at documentation, and those tools benefit from a clean index and Markdown copies of pages. This is the use the proposal was written for.
Publishers, ecommerce sites and service businesses gain less that can be shown, but the cost is low. A short, accurate file takes little effort and does no harm. It can help when a user asks an assistant to read the site directly. If you publish one, keep it modest and maintain it. Don't expect any change in how Google, search or Perplexity treat your pages. For how those systems choose what to show, see Search vs Google in 2026: An Honest Comparison.
Sites whose main concern is controlling AI use should put their effort into robots.txt rules, server-level controls and clear terms. llms.txt does nothing for that goal.
In each case, check the official crawler and AI-feature pages for the providers you care about, and recheck them from time to time. If a major provider starts documenting llms.txt support, that page will be the first reliable place to see it, before any commentary.
Frequently asked questions
Is llms.txt an official web standard?
No. It is a public proposal with a specification at llmstxt.org. It has not been adopted by a standards body, unlike robots.txt, which is published as an IETF RFC.
Does Google use llms.txt for AI Overviews or AI Mode?
Google's documentation on AI features says no special files are needed to appear in them, and Google representatives have said publicly that Search does not use llms.txt. Check Google Search Central's current page on AI features for its present position.
Can llms.txt stop AI companies from training on my content?
No. The file has no directives and no provider has documented honoring it for that purpose. Use the robots.txt tokens each provider documents, and use server-level controls or authentication for content that must not be reached.
What is the difference between llms.txt and llms-full.txt?
llms.txt is a short, curated index with links, as defined in the proposal. llms-full.txt is a separate, widely used convention that holds the full text of documentation in one file. It is not part of the core spec.
Where should the file be placed?
At the root of the site, available at /llms.txt. The spec also allows placing it in a subpath, which some documentation sites do for a docs section.
Do I need Markdown versions of my pages?
No. The proposal recommends them as a companion, served at the page URL with .md appended, because they are easier for models to read. A valid llms.txt can link to ordinary HTML pages.
How long should the file be?
Short enough to read in a minute or two. The spec gives no length limit, but the format is meant to be a concise guide. Move secondary links into the "Optional" section, not into the main lists.
How do I know if AI systems are reading my file?
Server logs will show which user agents request /llms.txt. A request shows the file was fetched, not that it influenced any answer. Only a provider's own documentation can confirm how it is used.