What Is llms.txt? A Plain-Language Guide for Site Owners
What is llms.txt, what belongs in it, which AI tools actually read it, and how to publish one? A plain-language guide with a working example.
GEO · 8 min read · Step-by-step
What is llms.txt? It is a small Markdown file you put at the root of your website — yoursite.com/llms.txt — that gives large language models a clean, structured summary of what your site contains and where the important pages are. Think of it as a table of contents written for machines that read text, not for browsers that render pages.
The file was proposed in September 2024 by Jeremy Howard of Answer.AI as a convention, not an official web standard. Nothing in the HTTP specification or in robots.txt requires it. Its pitch is simple: websites already have robots.txt for crawlers and sitemaps for search engines, but neither tells a language model what the site is about in a form the model can use directly. llms.txt fills that gap with plain Markdown — the format models are best at reading.
What goes in an llms.txt file
A well-formed llms.txt has a fixed shape. It starts with an H1 title, then a short blockquote that summarises the site in one or two sentences, then H2 sections that group links by topic. Each link is a Markdown link with a short description of what the page covers. A minimal example:
# Acme Widgets
> Acme Widgets makes invoicing software for freelancers. This file lists
> the product documentation, pricing, and guides a language model needs
> to answer questions about Acme accurately.
## Documentation
- [Getting started](https://acme.example/docs/getting-started): install and first invoice in 10 minutes
- [Pricing](https://acme.example/pricing): Free, Pro $19/month, Team $49/month
## Guides
- [Late payment reminders](https://acme.example/guides/late-payments): templates and timing
Three rules keep the file useful. First, keep it short — the proposal suggests the summary and link list stay compact enough to fit comfortably in a model's context. Second, describe each link in plain words; a bare URL tells the model nothing. Third, link to pages that actually answer questions, not to your homepage five times. If you want the full content of every page in one file, that is what llms-full.txt is for — the two files are compared in llms.txt vs llms-full.txt.
Which AI tools actually read llms.txt?
This is the honest part: no major AI answer engine officially promises to fetch your llms.txt. ChatGPT, Perplexity, Gemini and Google AI Overviews answer from their own search indexes and retrieval systems, and none of them documents llms.txt as an input. Publishing the file is not a switch that makes ChatGPT cite you.
So why bother? Three reasons hold up in practice. First, the file is cheap — one static file, no code, no ongoing cost — and it is already read by a growing set of developer tools, documentation search products and AI coding assistants that do fetch it when it exists. Second, writing it forces you to do the real work: deciding which pages matter and describing them accurately, which is the same inventory a citation-worthy site needs anyway. Third, it is a forward bet: if answer engines adopt the convention, sites that already publish a good file are in place on day one, and if they never do, you have lost an afternoon, not a budget.
Treat llms.txt as infrastructure, not marketing. It belongs in the same category as a clean sitemap and a correct robots.txt: basic hygiene that makes your site legible to machines, with no guaranteed payoff in any specific answer.
llms.txt vs robots.txt vs sitemap.xml
Newcomers often confuse llms.txt with two older files that already live at the root of most sites. They do different jobs, and a site that takes AI visibility seriously needs all three:
- robots.txt is an access control file. It tells crawlers — including AI crawlers like GPTBot and PerplexityBot — which paths they may and may not fetch. It says nothing about what the content means. A crawler that is allowed in still has to figure out your site on its own.
- sitemap.xml is an inventory for search engines. It lists URLs, last-modified dates and change frequencies so Google and Bing know what exists and what changed. It is written for indexers, in XML, with no descriptions of what each page is for.
- llms.txt is a summary for language models. It says what the site is about and which pages answer which questions, in Markdown a model reads natively. It does not grant or deny access (that is robots.txt), and it does not replace the URL inventory (that is the sitemap).
The three files answer three different questions — may you come in?, what exists?, what is it about? — and the common failure is having one or two of them while assuming the third is covered. A site with a perfect sitemap and a blocked GPTBot is invisible to ChatGPT; a site with open access and no llms.txt is merely harder to summarise. Keep all three current, and keep them consistent: a URL in llms.txt that robots.txt blocks is a contradiction, and a page in the sitemap that llms.txt never mentions is a page you have not decided is important.
How to publish one
The mechanics take minutes. Write the file, save it as llms.txt in your site's public root so it serves at /llms.txt with a text/plain or text/markdown content type, and check that it returns HTTP 200 — a file that 404s or redirects is worse than no file, because a tool that looks for it and finds an error learns nothing. Keep it in version control and update it when you publish or retire major pages; a stale llms.txt that points at dead URLs is a small credibility leak.
For the full step-by-step — drafting the summary, choosing which pages to list, validating the result — see how to write an llms.txt file. If you want to know whether AI crawlers can even reach your site in the first place, run the check in how to check if ChatGPT can see my website first: a perfect llms.txt is useless behind a blocked crawler.
Common mistakes
- Copying your sitemap into it. A list of 500 bare URLs is not a summary. Pick the pages that answer real questions and describe each one.
- Writing marketing copy instead of facts. "The world's best invoicing platform" helps no model answer anything. Prices, limits, steps and requirements do.
- Letting it go stale. A link to a page you deleted in March is still there in November unless someone owns the file. Put it in the same review cycle as your sitemap.
- Expecting it to replace everything else. llms.txt does not fix a page that AI crawlers cannot fetch, a page with no evidence on it, or a site nobody links to. It is one layer; the AEO checking workflow shows the rest.
FAQ
Does llms.txt help SEO?
Not directly. Search engines do not rank pages for having an llms.txt file, and Google has not announced any use of it. Its value is for language-model tooling that reads Markdown directly, and as a forcing function for keeping a clean inventory of your important pages.
Do I need llms-full.txt too?
Only if you want the full text of your pages available in one file — typically for documentation sites. Most sites should start with llms.txt alone and add llms-full.txt when a specific tool or workflow needs it. The trade-offs are in llms.txt vs llms-full.txt.
Will ChatGPT read my llms.txt?
There is no public commitment from OpenAI that ChatGPT fetches llms.txt when answering. Do not publish the file expecting ChatGPT to cite you because of it. Publish it because it is cheap, standard-shaped, and already read by a growing set of AI developer tools.
Where does the llms.txt file live?
At the root of your domain: https://yoursite.com/llms.txt. It must return HTTP 200 as plain text or Markdown. If your site serves it from a sub-path or behind a redirect, tools that look for the standard location will miss it.