llms.txt is a Markdown file at /llms.txt that gives language models and AI agents a short overview of your website and its key links. Jeremy Howard proposed it in September 2024, and version 2 followed in August 2026. It is not an official standard: Google Search explicitly does not use it, and the crawler documentation of OpenAI, Anthropic and Perplexity does not name it as a signal (as of November 2026).
What is llms.txt?
An llms.txt file is a curated signpost for AI agents: in a few lines it explains what a website is about and links to the pages an agent needs to answer a question. Because it is written in Markdown, both people and machines can read it.
The specification at llmstxt.org gives the reasoning: web pages are built for people, wrapped in navigation, ads and JavaScript, and converting them back into clean text is difficult and imprecise. At the same time, language model context windows are still too small for most websites. A concise overview in a fixed location is meant to solve that.
The file is intended for the moment an agent needs information while answering a question – that is, for using a model rather than mainly for training it. According to the spec, it is used most heavily for software documentation, where coding agents follow it to API references and tutorials.
How is an llms.txt file structured?
The spec defines a fixed order. Only the H1 is required:
- an optional byte-order mark (BOM),
- an H1 with the name of the project or site – the only required part,
- a blockquote with a short summary containing what you need to understand the rest of the file,
- any number of Markdown sections without headings, such as paragraphs or lists with details,
- any number of sections under H2 headings containing “file lists”: each entry is a Markdown link
[name](url), optionally followed by a colon and a note.
By convention, a section headed “Optional” marks links an agent can skip when it needs a shorter context. The file sits at the root as /llms.txt or in a subpath such as /docs/llms.txt. It then covers all pages under that path; where several files apply, agents should use the most specific one.
Here is what the llms.txt of a fictitious maintenance company could look like:
# Example Ltd
> Example Ltd maintains solar installations for commercial customers. This file links to services, prices and contact details as Markdown versions.
We only work for business customers, not for private households.
## Services
- [Maintenance and inspection](https://www.example.com/services/maintenance/index.md): process, intervals, inspection report
- [Fault service](https://www.example.com/services/faults/index.md): response times and service area
## Company
- [Prices](https://www.example.com/prices/index.md): flat rates and hourly rates
- [Contact](https://www.example.com/contact/index.md): contacts and how to send a request
## Optional
- [References](https://www.example.com/references/index.md)
The links point to Markdown versions of the pages, as the spec recommends; for URLs without a file name you append index.md or index.html.md. If you don't offer Markdown versions, your regular page URLs are the obvious choice.
What changed in version 2 of the spec?
Jeremy Howard revised the proposal on August 10, 2026, citing two years of practice: by his account, thousands of sites publish an llms.txt file and documentation platforms generate one automatically. The main changes, according to the changes page:
- Markdown versions: pages with useful information should offer a clean Markdown version at the same URL – either with
.mdappended (page.html.md) or with the extension replaced (page.md). Version 1 only allowed the first form. - Discovery: link relations are new.
rel="alternate" type="text/markdown"points to a page's Markdown version andrel="describedby"to the llms.txt file that covers it – as an HTML<link>element or an HTTPLink:header. - Subpaths: a file covers the pages under its path, and the most specific file wins. That lets projects that control only a path on someone else's host take part.
- Usage: agents are expected to read or search the llms.txt file and then follow the relevant links. The
llms_txt2ctxtool that version 1 described for expanding the file into model context is no longer part of the proposal, so the “Optional” section has lost its special technical meaning.
An llms-full.txt – a single file containing the full text of all content – does not appear in the spec. Some documentation sites offer one anyway, including those of Anthropic, Perplexity and Cloudflare (checked on November 4, 2026). If you offer one, you have to update it with every content change.
Who reads llms.txt – and who doesn't?
Google Search does not read it, Chrome's Lighthouse checks it, and neither Bing's Webmaster Guidelines nor the crawler documentation of OpenAI, Anthropic and Perplexity says that they process other websites' llms.txt files. The table shows what the operators document themselves (checked on November 4, 2026):
| Operator | What is officially documented |
|---|---|
| Google Search incl. AI Overviews and AI Mode | Does not use llms.txt. According to Google, the file neither harms nor helps visibility or rankings (clarified on June 15, 2026). |
| Chrome Lighthouse (Google) | An audit under “Agentic browsing” flags server errors when fetching the file. If the file is missing (404), the audit is “Not Applicable” because providing it is optional at the moment. |
| Microsoft Bing and Copilot | The Bing Webmaster Guidelines don't mention llms.txt; to signal important URLs they point to XML sitemaps and IndexNow. |
| OpenAI | The crawler documentation mentions llms.txt only as the index of its own docs. |
| Anthropic | The help article on its crawlers does not mention llms.txt. |
| Perplexity | The crawler documentation refers to llms.txt only as the index of its own docs. |
At the same time, OpenAI, Anthropic, Google (for the Gemini API) and Perplexity publish their own llms.txt files for their developer documentation, as do Stripe, Vercel and Cloudflare. That shows these companies use the format for their docs – not that their search systems read your file.
The clearest use case is agents deliberately fetching documentation. In version 2, Jeremy Howard writes that coding agents use the files reliably. That is the author's assessment, not a measurement published by an operator.
Is llms.txt a ranking factor?
Not for Google, and there is no evidence for other services. In its guide to generative AI features, Google says you don't need new machine-readable files, AI text files, markup or Markdown to appear in Google Search – including its generative AI features – because Google Search itself doesn't use them. Creating and maintaining an llms.txt file for other services is completely fine, Google adds, and will neither harm nor help your visibility or rankings in Google Search.
Google is just as clear about what counts instead: SEO fundamentals, crawlable content, and unique content that goes beyond common knowledge. For ChatGPT and Perplexity, their search crawlers also need to be allowed to fetch your pages – more on that in ChatGPT SEO: How to Get Cited in ChatGPT and Perplexity.
How is llms.txt different from robots.txt and sitemap.xml?
The three files sit in similar places but do different jobs: robots.txt governs what crawlers may fetch, sitemap.xml lists pages for search engines, and llms.txt curates and explains content for AI agents.
| robots.txt | sitemap.xml | llms.txt | |
|---|---|---|---|
| Purpose | Tells crawlers which URLs they may access | Tells search engines about pages, files and how they relate | Curated overview with context and links for language models |
| Format | Text file with rules per user agent | XML | Markdown |
| Scope | Rules for the whole site | All indexable pages | A deliberate selection |
| Who reads it? | Crawlers such as Googlebot, OAI-SearchBot or PerplexityBot | Search engines such as Google and Bing | AI agents on demand; not Google Search |
| Controls access? | Yes, for crawlers that respect it | No | No |
In practice: llms.txt blocks nothing. To admit or exclude AI crawlers, use robots.txt; our AI search readiness checklist lists the crawlers. And to keep a page out of Google, Google says you need noindex or password protection – robots.txt is not the tool for that. The spec sees llms.txt as a complement that can add context to the content robots.txt allows.
Does your website need an llms.txt file?
It isn't required. It makes sense when AI agents are meant to work with your content and you can keep the file up to date.
| Situation | Assessment |
|---|---|
| Software, API or product documentation | Worth it: the most common use according to the spec, ideally with Markdown versions of the pages. |
| Knowledge base, help center, services that need explaining with processes, conditions or prices | Can be worth it: the spec explicitly mentions businesses outlining their structure and policies. |
| Small website with a few readable pages | Optional: little effort, but no proven effect. |
| Nobody will maintain the file | Better skip it: outdated links and descriptions send agents the wrong way. |
| Goal: better Google rankings or guaranteed AI citations | No reason: Google doesn't use the file, and there is no evidence for other services. |
Many systems now generate the file automatically; the spec lists Mintlify, GitBook, Yoast SEO, AIOSEO and Wix, among others. Review an auto-generated file anyway: a complete list of every page is not yet a curated overview.
How to create an llms.txt file, step by step
- Choose the pages. Which pages does an agent need to answer questions about your offering correctly? Typically services, prices or terms, processes, contact and key articles – not every URL; that's what the sitemap is for.
- Write the file. H1 with the name, a blockquote summary, then H2 sections with links and a short note for each. The spec recommends concise, clear language, informative link descriptions and no unexplained jargon. Only include what the target pages actually say.
- Put it in place. The file belongs in the website's root directory. In Next.js, files in the
public/folder are served from the base URL, sopublic/llms.txtbecomes/llms.txt. That is how rocket-monkeys.com, built with Next.js, does it. - Check delivery. Open the URL in a browser and make sure the server returns the file without errors. Lighthouse's llms.txt audit flags exactly those server errors.
- Optional: add Markdown versions. For documentation or pages that need explaining, offer a
.mdversion at the same URL and link it withrel="alternate" type="text/markdown". - Test it. The spec suggests giving an agent only your llms.txt as a starting point and asking it questions about your content. If the answers are right, the overview works.
- Maintain it. Whenever you add, rename or delete an important page, check the llms.txt in the same step. Your server logs show requests for
/llms.txtif you want to know whether it gets fetched.
An llms.txt file is a small addition, not a strategy. Pages that search engines and AI crawlers can fetch and understand matter more. If you're building or relaunching a website anyway, llms.txt and Markdown versions can be planned in from the start – Rocket-Monkeys builds websites and relaunches as part of its software development service.
Sources
- The /llms.txt file, v2 – Jeremy Howard, llmstxt.org, published September 3, 2024, modified August 10, 2026
- Changes (v2, August 2026) – Jeremy Howard, llmstxt.org, accessed November 4, 2026
- Optimizing your website for generative AI features on Google Search – Google Search Central, last updated July 10, 2026
- Latest Google Search documentation updates – Google Search Central, entry of June 15, 2026
- llms.txt (Lighthouse audit) – Chrome for Developers, last updated May 5, 2026
- Bing Webmaster Guidelines – Microsoft Bing, accessed November 4, 2026
- Introduction to robots.txt – Google Search Central, last updated December 10, 2025
- Learn about sitemaps – Google Search Central, last updated December 10, 2025
Responsible
Mehdi Bornak, AI Manager (IHK)
Mehdi Bornak is the owner of Rocket-Monkeys and an IHK-certified AI manager. Rocket-Monkeys was founded in 2022 and builds custom software and AI solutions for companies.
More about us