Key takeaways
- llms.txt is a Markdown file at /llms.txt with a title, a summary and sections of links.
- It is curated. Link what a model needs to understand the site, not every page.
- Some AI tools and agent frameworks read it. The major assistants have not committed to it.
- Validate the format and the links after publishing.
The idea
HTML pages are written for browsers. A language model that reads one has to wade through navigation, scripts, cookie banners and footers to find the content. llms.txt offers a shortcut: a plain Markdown file that says what the site is and links the pages that matter, ideally to clean Markdown versions of them.
The format
The file lives at /llms.txt and follows a fixed order:
# Example
> Example is a hosted service that checks websites for SEO problems.
Example does not modify the sites it checks and never needs a login.
## Docs
- [Getting started](https://example.com/docs/start.md): install and run a first check
- [API reference](https://example.com/docs/api.md): every endpoint with examples
## Policies
- [Pricing](https://example.com/pricing.md)
- [Privacy](https://example.com/privacy.md)
## Optional
- [Changelog](https://example.com/changelog.md)
- An H1 with the name of the site or project. The only required part.
- A blockquote with a short summary.
- Optional paragraphs with anything a model should know.
- H2 sections of Markdown links, each optionally followed by a colon and a note.
- A section named Optional for links a tool can skip when it is short on room.
llms-full.txt
llms-full.txt is the same idea with the content inlined: every linked page’s text in one file, so a tool can read the whole site in one request. It suits documentation sites. Keep it to a size a model can use; a file of many megabytes defeats the purpose.
Who reads it
Honestly: some developer tools, IDE assistants and agent frameworks read llms.txt when you point them at a site, and documentation platforms generate it. The major consumer assistants have not publicly committed to reading it, and search engines do not use it for ranking.
That makes it a small, cheap improvement with a real audience among developers and agents, not a lever for AI visibility. If your site has documentation or an API, publish one. If it is a local business site, your effort is better spent on the basics of AI search readiness.
Write one
- Use the llms.txt generator to write the file from a few fields.
- Link the pages that answer the questions people ask about you: what it is, how it works, how much it costs, the policies.
- Where you can, link Markdown versions of the pages.
- Publish at
/llms.txt, served as text.
Validate it
The llms.txt validator checks that the file exists, is served as text or Markdown, starts with a title and a summary, and that a sample of its links answer. Run it after every docs release, because urls that move break the file quietly.
Check your own site
The llms.txt Generator runs the checks from this guide on any public page, free and without an account.
Open the llms.txt GeneratorFrequently asked questions
Is llms.txt an official standard?
No. It is a community proposal published in 2024. It is widely discussed and adopted by many documentation sites, but no standards body governs it.
Does llms.txt replace robots.txt?
No. robots.txt controls what crawlers may fetch. llms.txt describes what is worth reading. They do different jobs.
Should llms.txt list every page?
No. It is a curated index for a model with a limited context. The sitemap is the complete list.
What content type should it be served with?
text/plain or text/markdown, with UTF-8 encoding.