Blog · AI search

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

Illustration of an llms.txt Markdown file with a heading, summary quote and bulleted link list shown at a website root path

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:

What it is not:

Does llms.txt actually help?

Honest answer: it depends on who is reading it.

SituationLikely benefit
Developer documentation, APIs, SDKsReal. Coding agents and doc tools fetch these files, and many docs platforms generate them automatically.
Product sites with a clear set of key pagesModest. Useful for agents that browse on demand; no guaranteed effect on AI answers.
Local business or small brochure siteMinimal. Your time is better spent on clear pages, schema and reviews.
Sites hoping to "rank in ChatGPT" with one fileUnlikely 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:

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

How to tell if it made any difference

Do not rely on the file's existence; track results:

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.

Keep reading