guide · updated 2026-11-22
What is llms.txt, and do I need one?
llms.txt is an optional Markdown file at the root of a site that lists its most useful pages for AI tools. Google says Google Search ignores it, and as of 22 November 2026, none of the OpenAI, Anthropic, Perplexity or Google crawler pages says its crawler reads it. Add one if your site has docs, an API or prices that AI agents need to read correctly, but do not expect a ranking effect.
01 · key takeaways
Key takeaways
- llms.txt is a proposed Markdown file at /llms.txt that gives AI tools a short map of a site.
- It is optional: Google says Google Search ignores llms.txt, and it neither helps nor harms rankings there.
- OpenAI, Anthropic and Perplexity document robots.txt rules for their crawlers; none of their crawler pages says their crawlers read llms.txt.
- It is most useful for docs, APIs and prices that coding agents and AI assistants fetch on purpose.
- Your server logs tell you whether anything actually reads your file.
What is llms.txt?
llms.txt is a Markdown file at the root of a website that summarises the site and links to its most useful pages for large language models. It was proposed by Jeremy Howard and published on llmstxt.org on 3 September 2024. As of 22 November 2026, the site calls itself v2 of the proposal and says the specification is open for community input.
The idea is simple. A web page carries menus, scripts and ads that waste an AI tool's limited context. A short, clean list of the key pages, with a note on what each one holds, lets the tool find the right page fast.
What goes in an llms.txt file?
An llms.txt file needs one thing: an H1 line with the name of the site or project. The proposal treats everything else as optional, in this order.
| Part | Required? | What it holds |
|---|---|---|
| H1 heading | Yes | The site or project name |
| Blockquote | No | A one or two sentence summary |
| Detail text | No | Paragraphs or lists with key facts, no headings |
| H2 link sections | No | Lists of links, each with a short note on what the page holds |
| An H2 named "Optional" | No | Links an AI tool can skip when it needs a shorter context |
# Example Bakery
> Family bakery in York. Custom cakes, same-day bread, delivery within 10 km.
## Key pages
- [Prices](https://example.com/prices.md): cake and bread prices, delivery fees
- [Delivery](https://example.com/delivery.md): delivery areas, days and cut-off times
- [Allergens](https://example.com/allergens.md): allergen list per product
## Optional
- [Our story](https://example.com/about.md): history of the bakeryThe note after each link does the work. Write it as the facts the page holds, not as praise. The proposal also suggests offering a Markdown copy of each page at the same address with .md added, found through a rel="alternate" link or an HTTP Link header.
Does Google use llms.txt for rankings or AI Overviews?
No. Google's guide to its generative AI features says you do not need new machine-readable files, AI text files, markup or Markdown to appear in Google Search. It says creating llms.txt files will neither harm nor help your visibility or rankings in Google Search, because Google Search ignores them.
Google adds that it is fine to keep such files for other services. So for Google, llms.txt is neutral: no reward, no penalty.
Do ChatGPT, Claude and Perplexity read llms.txt?
None of them says so on its crawler documentation, as of 22 November 2026. The pages from OpenAI, Anthropic and Perplexity describe their crawlers and the robots.txt rules that control them. None says its crawlers read llms.txt, and Google's common crawlers page does not mention it. OpenAI and Perplexity link to an llms.txt file only as an index of their own documentation.
That does not mean no AI tool reads it. Coding agents and assistants fetch files on purpose when a user points them at a site, and some documentation sites publish one for that reason. OpenAI and Perplexity do, as noted above. The Model Context Protocol documentation, for example, points readers to its own llms.txt index at the top of its specification page.
What is the difference between llms.txt and robots.txt?
robots.txt tells crawlers what they may read; llms.txt suggests what is worth reading. robots.txt is a published standard, RFC 9309, and the AI crawlers above document their robots.txt rules. llms.txt is a proposal that grants or blocks nothing.
| Question | robots.txt | llms.txt |
|---|---|---|
| Purpose | Allow or refuse crawling | Point AI tools to key pages |
| Status | RFC 9309 standard | Community proposal |
| Format | User-agent and Allow/Disallow lines | Markdown |
| Read by | Search and AI crawlers | Tools that choose to fetch it |
| Can block a bot | Yes, for bots that follow it | No |
| Google Search | Googlebot follows it | Google Search ignores it |
Use both if you like, but never use llms.txt to hide or protect anything. If a page must not be read, block it in robots.txt and, for private content, put it behind a login.
When is llms.txt worth adding?
It is worth adding when AI tools need exact facts from your site: documentation, API references, prices, opening hours, delivery areas or policies. A coding agent reading your API docs, or an assistant comparing prices, benefits from a short list of the right pages.
It is not worth much for a small brochure site with five pages that already have clear titles. There, a clean sitemap, crawlable HTML and a robots.txt that allows AI search crawlers matter far more.
| Your site | Add llms.txt? |
|---|---|
| Developer docs or an API | Yes, with Markdown copies of pages |
| Prices, plans or menus agents may quote | Yes |
| Online store with many products | Maybe: list category and policy pages |
| Five-page brochure site | Optional; low value |
| Pages blocked from AI crawlers on purpose | No |
Can a bad llms.txt file do harm?
Yes, a stale file can mislead. If llms.txt points to an old price page or a removed product, an AI tool that trusts it may repeat the old fact. Treat llms.txt like any page with facts on it: update it when the linked pages change, or do not publish one.
Keep it short. A file with hundreds of links defeats the purpose, which is to save the reader context.
How do I create an llms.txt file?
Write it by hand or with a generator, check it, and upload it to the root of your domain. It takes about 15 minutes for a small site.
- Pick the 5 to 20 pages an AI tool most needs to answer questions about you.
- Write the H1 name and a one-sentence summary in a blockquote.
- Group the links under H2 headings and add a factual note after each link.
- Put secondary pages under an H2 named "Optional".
- Save the file as llms.txt at the root, so it loads at yourdomain.com/llms.txt.
- Open the address in a browser to confirm it loads as plain text.
How do I know if anything reads my llms.txt?
Look in your server or CDN logs for requests to /llms.txt. Each request line shows the user agent, so you can see which tools fetch the file and how often.
- Export a month of access logs from your host or CDN.
- Filter for the path /llms.txt.
- Group the requests by user agent and count them.
- Compare the count with requests for robots.txt and sitemap.xml over the same days.
If nothing requests the file, it costs you little but does little. If coding agents or assistant fetchers request it, keep it accurate, because they are reading it.
Can my AI assistant check llms.txt for me?
Yes. With SerpRank AI connected, a quick check on your home page reports whether llms.txt exists, alongside AI-bot robots rules, JavaScript-only pages and schema. A missing llms.txt shows as a note, not a failure, because the file is optional.
Run a quick check on https://example.com. Does it have an llms.txt file, and do its robots.txt rules allow the AI search crawlers?What else do people ask?
Short answers to the questions people ask next.
Is llms.txt a ranking factor?
Not in Google Search: Google says it ignores llms.txt (Google Search Central). Do not add one expecting a ranking effect anywhere else either.
Does llms.txt stop AI models training on my content?
No. llms.txt grants and blocks nothing. Use robots.txt rules for training crawlers such as GPTBot, ClaudeBot and Google-Extended.
What is llms-full.txt?
Some sites publish a second file with the full text of their docs in one Markdown file. The llmstxt.org proposal does not define it, so treat it as a separate convention.
Where does the file go?
At the root of the domain, so it loads at yourdomain.com/llms.txt, the same place as robots.txt.
13 · sources
Sources
As of 22 November 2026, the facts on this page were checked against these official pages.
- llmstxt.org: the /llms.txt proposal
- Google Search Central: Optimizing your website for generative AI features on Google Search
- OpenAI: Overview of OpenAI crawlers
- Anthropic: Does Anthropic crawl data from the web?
- Perplexity: Perplexity crawlers
- Google: Google's common crawlers
- RFC 9309: Robots Exclusion Protocol
- Model Context Protocol specification