On this page
- What is llms.txt in plain terms?
- What does an llms.txt file look like?
- How is llms.txt different from robots.txt and sitemap.xml?
- What changed in llms.txt v2 and v2.1?
- Who reads llms.txt files today?
- Does Google use llms.txt?
- Should you create an llms.txt file?
- How do you create and publish llms.txt?
- Mistakes and risks with llms.txt
- FAQ
llms.txt is a Markdown file placed at /llms.txt on a website that gives AI agents a short summary of the site and a curated list of links to its most useful pages. Jeremy Howard proposed it on September 3, 2024, and the current version of the proposal is v2.1 from November 2026. Google says the file neither helps nor harms rankings in Google Search. An SEO + AEO audit checks the file together with the signals that do affect AI visibility.
SEO + AEO audit · 30+ page PDF in 24 hours · $499 · Order the audit
What is llms.txt in plain terms?
llms.txt is a reading guide for AI agents. It tells a language model what your site is about and which pages to open first.
The proposal on llmstxt.org starts from two problems. Context windows are still too small to hold most websites in full. Converting HTML pages back into clean text is "difficult and imprecise," in the words of the proposal. A short Markdown file solves both. The agent reads one compact page, then follows only the links it needs.
The author expected the file to be used mainly at inference time, when an assistant answers a question or a coding tool reads documentation. Training crawlers could use it too, but that was never the main goal.
llms.txt is a community proposal. No standards body has adopted it, and no AI company has promised to read it.
What does an llms.txt file look like?
An llms.txt file is plain Markdown with a fixed order of blocks. Only the H1 is required. The v2.1 specification defines this order:
- An H1 with the name of the project or site.
- A blockquote with a short summary.
- An optional
Base URL:line, used to resolve relative links. - Optional details in paragraphs, lists or H3 subheadings.
- H2 sections, each with a list of links in the form
[name](url): notes.
Here is a minimal example for a small service business:
# Northside Dental Clinic
> Family dental clinic in Austin, Texas. Two locations, open six days a week, accepts most PPO insurance plans.
Base URL: https://example.com/
## Services
- [Dental implants](services/implants.md): treatment steps, prices, recovery
- [Teeth whitening](services/whitening.md): in-office and take-home options
## Clinic
- [Locations and hours](contacts.md): addresses, parking, opening hours
- [Insurance](insurance.md): accepted plans and payment options
The example on llmstxt.org uses the same pattern for the FastHTML project. It has a title, a one-line summary, a short list of "important notes" and H2 sections for docs, examples and reference pages.
The proposal also suggests a clean Markdown copy of each page at the same URL with .md added. A page at /services/implants would have a twin at /services/implants.md. This step is optional. Many sites link to normal HTML pages instead.
How is llms.txt different from robots.txt and sitemap.xml?
The three files do three different jobs. The llms.txt proposal itself says it "can complement robots.txt" and that the two files "have different purposes."
| llms.txt | robots.txt | sitemap.xml | |
|---|---|---|---|
| Job | Points agents to the best pages | Opens or blocks crawling | Lists all indexable pages |
| Format | Markdown | Plain-text rules | XML |
| Audience | AI agents and LLM tools | All crawlers | Search engines |
| Size | A curated short list | A few rules | Every page you want indexed |
| Controls access | No | Yes | No |
| Used by Google Search | No | Yes | Yes |
The access row matters most. If you want to keep your content out of ChatGPT search or out of AI training, robots.txt is the place. OpenAI's crawler documentation says sites that opt out of OAI-SearchBot "will not be shown in ChatGPT search answers," and blocking GPTBot signals that content should not be used for training. Google uses the Google-Extended token in robots.txt for similar control. llms.txt has no allow or block rules at all.
What changed in llms.txt v2 and v2.1?
Version 2 arrived in August 2026 and v2.1 in November 2026, after two years of real use. Most articles about llms.txt still describe v1.
| Change | Version | What it means for you |
|---|---|---|
Subpath files such as /docs/llms.txt |
v2 | A file covers the pages under its folder; the most specific file wins |
| Discovery through link tags | v2 | Pages can point to their Markdown copy with rel="alternate" type="text/markdown" and to their llms.txt with rel="describedby" |
| Two Markdown URL forms | v2 | Both page.html.md and page.md are accepted |
| How agents use the file | v2 | Agents read or search the file and follow links; the old context-expansion tool is no longer part of the proposal |
Relative links and Base URL: |
v2.1 | Shorter files for large sites |
| H3 subheadings in the details block | v2.1 | Longer notes can be grouped |
| Short summary under each H2 | v2.1 | Agents can decide which section to open |
| "Optional" section dropped | v2.1 | Use ordinary descriptive H2 headings instead |
If you copied an older template with an ## Optional section, the file still parses. The current specification simply no longer gives that heading a special meaning.
The proposal does not define llms-full.txt. Some documentation sites publish one anyway as a single-file export of all pages. OpenAI's API docs llms.txt, for example, links to a combined llms-full.txt.
Who reads llms.txt files today?
Mostly SEO tools and other bots. AI assistants rarely request the file.
Ahrefs checked 137,210 domains that had traffic in May 2026 and published the results on June 15, 2026. The main numbers:
- 28% of the domains had an llms.txt file. Ahrefs calls this an upper bound, because its users are more technical than the average site owner.
- 97% of the roughly 38,000 valid files received zero requests in May 2026.
- About 22,000 requests went to the remaining 3% of files; 96% of them came from bots.
- SEO audit tools sent 21.7% of requests, the largest group.
- Named AI bots sent 19.5%. GPTBot was the top AI fetcher with 4.51% of all requests.
- Googlebot fetched the files about 900 times, which the authors attribute to routine crawling.
The study did not check whether the files followed the specification, and it covers one month.
The other group that reads llms.txt is developer tools. The proposal lists support in Mintlify, GitBook, VitePress, Docusaurus and Drupal plugins. Anthropic, OpenAI and Perplexity publish llms.txt files for their own developer documentation; we opened all three in December 2026. Anthropic's file alone is about 113 KB.
Does Google use llms.txt?
No. Google's guide to generative AI features, updated December 2, 2026, says creating machine-readable files or AI text files "will neither harm nor help your site's visibility or rankings in Google Search, as Google Search ignores them."
The same guide lists what a page needs to appear as a link in AI Overviews and AI Mode. The page must be indexed and eligible to show in Google Search with a snippet. No special schema, no special formatting and no content split into small chunks are required.
Chrome Lighthouse is a separate case. Its llms.txt audit, documented on May 5, 2026, flags a page when the server returns an error for /llms.txt. A missing file (404) is marked "Not Applicable." The audit does not affect rankings. It only tells you that a broken file exists.
Should you create an llms.txt file?
Create one if AI agents and developer tools already read your content. Skip it, or keep it to five minutes of work, if they do not.
| Site type | Priority | Why |
|---|---|---|
| API, SDK or product documentation | High | Coding assistants and agents fetch docs, and tools like Mintlify or GitBook generate the file |
| SaaS with a help center | Medium | Agents answering support questions can find the right article faster |
| Large content site or e-commerce | Low | Costs little, but robots.txt, indexing and content quality matter more |
| Local business or small brochure site | Low | No measurable effect expected; fix your Google Business Profile and service pages first |
The cost is low for any site. A short file takes little time to write and cannot hurt your Google rankings. The risk is spending effort here while the pages that AI systems actually cite stay weak. Our guide on how to optimize for answer engines covers those signals, and what AEO is explains the wider field.
How do you create and publish llms.txt?
Step 1. Pick 5–20 pages
Choose pages that answer real questions, such as services, pricing, contacts, core guides and documentation. Leave out tag pages, login pages and thin archives.
Step 2. Write the file
Start with the H1 and a one-sentence summary in a blockquote. Group links under H2 headings. Add a short note after each link so an agent knows what it will find there.
Step 3. Generate it if your platform supports it
The proposal lists built-in or plugin support in Yoast SEO, AIOSEO, Wix, Mintlify and GitBook, plus plugins for VitePress, Docusaurus and Drupal. A generator saves time but often lists too many pages. Review the output and trim it.
Step 4. Upload to the root
Place the file at https://yourdomain.com/llms.txt. Serve it as plain text or Markdown with HTTP status 200. A subfolder file such as /docs/llms.txt is allowed under v2 if you only control part of a site.
Step 5. Test and watch your logs
Open the URL in a browser. Check that it does not redirect to the homepage or return an HTML error page. Then filter your server logs for /llms.txt requests and note which user agents fetch it. This tells you more about value for your site than any industry study. Our technical SEO audit guide covers log checks in more detail.
Mistakes and risks with llms.txt
- Treating it as access control. llms.txt cannot block anyone. Use robots.txt rules for OAI-SearchBot, GPTBot or Google-Extended.
- Expecting ranking gains. Google states the file is ignored by Google Search. Selling llms.txt setup as a ranking service is misleading.
- Dumping the sitemap into it. A file with thousands of URLs defeats the purpose. The proposal asks for concise, expert-level information.
- Soft 404s. Some servers return the homepage with status 200 for
/llms.txt. Ahrefs screened such files out of its study, and agents will read junk. - Server errors. A 5xx on
/llms.txttriggers the Lighthouse audit flag. - Stale links. Moved pages and old prices in the file mislead agents. Update it when you change site structure.
- Hidden claims. Text written only for AI, such as claims that do not appear on your pages, misleads users of AI tools. Keep the file consistent with the visible site.
SEO + AEO audit · 30+ page PDF in 24 hours · $499 · Order the audit
FAQ
Is llms.txt an official standard? No. It is a community proposal published on llmstxt.org in September 2024 and updated to v2.1 in November 2026. No standards body has adopted it.
Does ChatGPT read llms.txt? OpenAI does not state that its crawlers use it. In the Ahrefs study GPTBot was the most active AI fetcher, with 4.51% of requests to llms.txt files in May 2026. OpenAI's own docs publish an llms.txt as a documentation index.
Will llms.txt improve my rankings? No. Google says it neither helps nor harms visibility or rankings in Google Search. For how ChatGPT picks sources, see our guide to ChatGPT SEO.
What is the difference between llms.txt and llms-full.txt? llms.txt is a short index of links. llms-full.txt is an unofficial single file with the full text of many pages, used mainly by documentation sites. The proposal does not define llms-full.txt.
Can llms.txt hurt my site? Not in Google Search. It can mislead AI agents if it lists broken pages or outdated facts, and a server error on the file is flagged by Lighthouse.
Where do I put the llms.txt file?
At the root, for example https://example.com/llms.txt. Under v2 you can also place one in a subfolder such as /docs/llms.txt; it then covers only the pages in that folder.
How is llms.txt related to AEO? It is one small item in answer engine optimization. Indexing, clear answers and mentions on trusted sites carry more weight. Our comparison of AEO vs GEO vs SEO explains the terms.
Sources
- llmstxt.org: The /llms.txt file (proposal v2.1)
- llmstxt.org: Changes since v1
- Google Search Central: Optimizing for generative AI features
- Google Search Central: AI features and your website
- Chrome for Developers: Lighthouse llms.txt audit
- OpenAI: Overview of OpenAI crawlers
- Ahrefs: We analyzed 137K sites, 97% of llms.txt files never get read (June 2026)