llms.txt: Does It Help, and How to Write One (2026)
llms.txt is a Markdown file that gives AI agents a curated map of your site. Here is what it does, what it does not do, and how to write one in under an hour.
Searvia · 9 Nov 2026 · 5 min read

llms.txt is a plain Markdown file at the root of your site (for example https://example.com/llms.txt) that lists your most useful pages with short descriptions, so AI agents and assistants can find clean, relevant content fast. It is a proposed convention, not a ranking factor: publishing one is cheap and useful for documentation and agent use, but it will not by itself make ChatGPT or Google recommend you.
What llms.txt is (and is not)
The proposal, published at llmstxt.org, asks sites to provide a Markdown file that summarises the site and links to the best pages. The reasoning: web pages are built for people, with navigation, scripts and layout, and context windows are still too small to swallow a whole website. A short curated index saves an agent time and tokens.
What it is:
- A curated, human-readable table of contents written in Markdown.
- A hint for agents, such as coding assistants fetching documentation or chat tools reading a product site.
- Optional. Chrome's Lighthouse has an llms.txt audit, but a missing file (a 404) is marked Not Applicable; only a server error when fetching it is flagged.
What it is not:
- Not access control. It does not block or allow anything. For that you need robots.txt; see Robots.txt: How It Works, Examples and How to Test It and AI Crawlers: How to Control GPTBot, ClaudeBot, OAI-SearchBot and the Rest.
- Not a sitemap replacement. A sitemap lists everything for search engines; llms.txt lists the few pages you would hand to a smart newcomer.
- Not a confirmed ranking or citation signal. Treat any claim that it boosts AI visibility as unproven unless an AI provider documents it.
Does llms.txt actually help?
Honest answer: it depends on who is reading it.
| Situation | Likely benefit |
|---|---|
| Developer documentation, APIs, SDKs | Real. Coding agents and doc tools fetch these files, and many docs platforms generate them automatically. |
| Product sites with a clear set of key pages | Modest. Useful for agents that browse on demand; no guaranteed effect on AI answers. |
| Local business or small brochure site | Minimal. Your time is better spent on clear pages, schema and reviews. |
| Sites hoping to "rank in ChatGPT" with one file | Unlikely to move the needle on its own. |
The reasons to publish anyway: it takes under an hour, it forces you to decide which pages matter, and it costs nothing if ignored. The reasons to keep expectations low: major search engines have not said they use it as a ranking input, and AI answers depend far more on whether your content is crawlable, clear and mentioned across the web. For the bigger picture, read Generative Engine Optimization: A Practical GEO Plan and GEO vs SEO.
The llms.txt format
The file is Markdown with a defined order:
- An H1 with the site or project name. This is the only required element.
- A blockquote with a one- or two-sentence summary.
- Optional paragraphs or lists with extra context (no headings).
- H2 sections containing lists of links in the form
- [Title](url): short description. - An "Optional" H2 section for secondary links an agent can skip when context is tight.
The proposal also describes an llms-full.txt convention: a single file with the full text of your key content, which documentation platforms often generate. It is useful for docs; it is rarely needed for a marketing site.
Example llms.txt
# Acme Invoicing
> Acme Invoicing is invoicing software for freelancers. It handles quotes, invoices, recurring billing and VAT in the EU and UK.
Pricing is per user per month. The API is REST with JSON responses.
## Product
- [Features](https://acme.example/features): What the product does, by workflow
- [Pricing](https://acme.example/pricing): Plans, limits and what is included
- [Integrations](https://acme.example/integrations): Accounting and payment connections
## Docs
- [Quickstart](https://acme.example/docs/quickstart.md): Create and send a first invoice via API
- [API reference](https://acme.example/docs/api.md): Endpoints, auth and error codes
## Optional
- [Changelog](https://acme.example/changelog): Release history
- [Blog](https://acme.example/blog): Guides and product news
How to write one, step by step
1. Pick 10 to 30 pages
Choose pages that answer the questions people (and agents) ask about you: what you do, who it is for, pricing, how it works, key docs, support policies. Skip thin, duplicate and outdated pages.
2. Write descriptions that carry facts
"Pricing: plans, limits, what is included" beats "Our pricing page". Describe what the agent will find, not marketing copy.
3. Link to clean content
Where you can, link to pages that render without heavy JavaScript. Some sites also serve a .md version of key pages. If your content only appears after client-side rendering, fix that first; an index cannot rescue unreadable pages.
4. Publish at the root
Serve it at /llms.txt with a 200 status and a plain text or Markdown content type. The proposal allows it at other paths to cover sub-sections, which suits large docs sites. If your CMS cannot upload a root file, add a rewrite rule or a static route.
5. Validate it
Check it loads, follows the order above, and that every link returns 200 without redirect chains. You can run the free llms.txt checker on your domain, and the AI crawler checker confirms the bots you care about are not blocked in robots.txt. For deeper detail, see llms.txt: What It Is, How to Write One and How to Validate It.
6. Keep it fresh
An out-of-date index is worse than none. Add it to your release or content checklist, and re-check after migrations. Broken links are easy to catch with the redirect checker.
Common mistakes
- Dumping the whole sitemap. The value is curation.
- Blocking AI crawlers, then publishing llms.txt. If robots.txt or your firewall denies the bots, they never read it.
- Marketing fluff. Vague superlatives give an agent nothing to use.
- Treating it as access control. Sensitive pages need authentication or robots rules, not omission from a list.
- Expecting overnight citations. Measure outcomes instead of assuming.
How to tell if it made any difference
Do not rely on the file's existence; track results:
- Check your server or CDN logs for requests to
/llms.txtand which user agents make them. - Track AI referral traffic; see How to Track ChatGPT and AI Assistant Traffic in Google Analytics 4.
- Monitor whether assistants mention and cite your brand over time. Searvia's AI visibility checker is a free way to see whether ChatGPT or Perplexity recommends your brand, and What Does ChatGPT Say About Your Brand? explains how to read and fix the answers.
Should you bother?
Publish one if you run documentation, an API, a developer tool, or a product site with a clear set of key pages. Skip the agonising if you run a small local site; start with crawlable, well-structured pages, schema markup and accurate profiles. In both cases, think of llms.txt as a cheap, low-risk tidy-up, not a growth lever.
Frequently asked questions
- What is an llms.txt file for?
- It gives AI agents and assistants a short, curated Markdown index of your most useful pages, with brief descriptions, so they can find clean content without crawling your whole site. It is a convention, not an enforced standard.
- Does llms.txt really work?
- It works as a convenience for tools that choose to read it, especially for documentation and coding agents. There is no confirmed evidence that major AI or search providers use it as a ranking or citation signal, so do not expect it alone to change your visibility.
- Is llms.txt mandatory?
- No. It is optional. Chrome's Lighthouse audit treats a missing file as Not Applicable and only flags server errors when retrieving it.
- How do I write an llms.txt?
- Start with an H1 site name, add a blockquote summary, then group 10 to 30 key links under H2 headings in the format - [Title](url): description. Put secondary links under an Optional section, publish at /llms.txt, and check that every link returns 200.
- Does llms.txt replace robots.txt?
- No. robots.txt controls which crawlers may fetch which paths. llms.txt only suggests what to read and does not allow or block anything.