What Is llms.txt and Should Your Site Have One?
What is llms.txt? Learn what the proposed AI file does, how it differs from robots.txt, who actually benefits, and how to create one in under an hour.
llms.txt is a proposed standard: a Markdown file at yoursite.com/llms.txt that gives large language models a short summary of your site and a curated list of links to your most useful pages. It doesn't control crawling or training. Most sites can add one cheaply, but don't expect it to boost AI visibility on its own.
That's the honest short version. The rest of this guide covers where the file came from, what goes in it, how it differs from robots.txt, who reads it today, and a decision framework for whether it's worth your time.
The short definition
An llms.txt file is a plain-text Markdown document that acts like a curated table of contents for AI systems. Instead of making a model crawl hundreds of HTML pages full of navigation, scripts, cookie banners and ads, you hand it a clean list: who you are, what you do, and which pages explain it best.
Think of it as the page you'd give a smart new hire on day one: "Here's what we do, and here are the ten documents worth reading first."
Three things define it:
- Location: usually the site root (
/llms.txt), though the proposal also allows it at other paths, such as a docs subfolder. - Format: Markdown, not XML or a directive syntax like robots.txt.
- Purpose: helping models understand and use content at inference time, when a user or agent asks a question, rather than governing access.
Where llms.txt came from
The proposal was published at llmstxt.org in September 2024 by Jeremy Howard of Answer.AI. The reasoning is practical: context windows are limited, and converting complex HTML into clean text is lossy and expensive. A small, human-written Markdown file sidesteps both problems.
It is a community proposal, not a standard from the W3C, IETF or any AI company. Adoption grew fastest among developer documentation platforms, because coding assistants and AI agents regularly need to pull in API docs quickly. Google's Chrome for Developers documentation now includes an llms.txt entry in its Lighthouse docs, which shows the convention has moved past niche experimentation, even though it remains a proposal.
What an llms.txt file looks like
The spec defines a simple structure, in this order:
- An H1 with the site or project name (the only required element).
- A blockquote with a short summary containing the key information needed to understand the rest of the file.
- Optional free-text paragraphs or lists with extra context (no headings here).
- H2 sections containing link lists, each item formatted as
[Page name](URL): optional note. - An optional section literally titled "Optional", for secondary links a model can skip if it's short on context.
Here's a hypothetical example for a fictional project-management SaaS:
# TaskFlow
> TaskFlow is project management software for small agencies. It covers task boards, time tracking, client portals and invoicing.
TaskFlow offers a free plan for up to 3 users. Paid plans are billed per seat.
## Product
- [Features overview](https://taskflow.example/features): What each module does
- [Pricing](https://taskflow.example/pricing): Plans, limits and billing rules
## Docs
- [Getting started](https://taskflow.example/docs/start.md): Setup in 10 minutes
- [API reference](https://taskflow.example/docs/api.md): REST endpoints and auth
## Optional
- [Changelog](https://taskflow.example/changelog): Release history
llms-full.txt and .md page versions
Two related ideas often get bundled in:
- Markdown page versions. The proposal suggests offering a clean
.mdversion of important pages at the same URL with.mdappended, so models can fetch text without HTML clutter. - llms-full.txt. Popularized by documentation platforms rather than the core spec, this is a single file containing the full text of your docs, not just links. It's handy for developer tools, but it can get very large and quickly goes stale if not generated automatically.
llms.txt vs robots.txt vs sitemap.xml
This is where most confusion starts. Some articles describe llms.txt as a way to tell AI crawlers how they can train on your content. It isn't. It contains no allow or disallow rules.
| File | Audience | What it does | Format |
|---|---|---|---|
| robots.txt | All crawlers | Allows or blocks crawling by path and user agent | Directive syntax |
| sitemap.xml | Search engines | Lists every indexable URL for discovery | XML |
| llms.txt | LLMs and AI agents | Summarizes the site and points to the best pages | Markdown |
If you want to control whether GPTBot, ClaudeBot or PerplexityBot can access your content, that job belongs to robots.txt. Use the Robots.txt Generator to write AI bot rules, and the AI Crawler Checker to confirm which bots can actually reach your pages.
What llms.txt does not do
Set expectations before you build one:
- It doesn't block or permit training. A model provider that ignores the file isn't breaking any rule.
- It isn't a ranking factor. No major search engine has said it uses llms.txt to rank pages or choose AI Overview citations.
- It doesn't guarantee citations. ChatGPT, Perplexity, Gemini and Claude choose sources through their own retrieval systems.
- It doesn't replace good pages. If your linked pages are thin, a tidy index won't fix them.
Does anyone actually read llms.txt?
This is the real question behind "should I bother?" The honest answer is that usage is uneven:
- Major AI search products have not publicly committed to reading llms.txt as an input for answers or citations.
- AI coding assistants and agents are the clearest use case. Developers often point tools at a library's llms.txt or llms-full.txt to load documentation into context.
- Some crawlers may request it without saying how they use it.
You don't have to guess about your own site. Run your server logs through the AI Bot Log Analyzer and filter for requests to /llms.txt. If no AI bots hit the file after a few months, that tells you more than any blog post can.
Should your site have one?
Use this framework:
Strong yes
- Developer documentation, APIs, SDKs and open-source projects
- SaaS products with help centers that users query through AI assistants
- Knowledge bases where accuracy (pricing, limits, specs) matters
Reasonable yes (low cost, low expected return)
- B2B service sites with a clear set of cornerstone pages
- Publishers with evergreen guides worth surfacing
Low priority
- Small local business sites with a handful of pages
- Sites with technical SEO problems that are still unresolved, such as pages that aren't indexed, broken links or blocked crawlers
The cost is small: a few hours to draft and a process to keep it current. The downside is mostly maintenance. A stale llms.txt that lists old prices or deleted pages is worse than none.
How to create an llms.txt file
- Pick your cornerstone pages. Start with your homepage, product or service pages, pricing, core docs and your best guides. Aim for quality over volume. A few dozen strong links usually beats hundreds.
- Write the summary. One or two factual sentences in the blockquote: what you are, who it's for, what makes you different. Skip the marketing fluff.
- Group links under H2 sections that match how people ask questions (Product, Pricing, Docs, Guides, Policies).
- Add a short note to each link saying what the page answers.
- Move secondary content to "Optional."
- Draft and validate. The llms.txt Generator & Validator builds a draft from your sitemap and checks it against the spec.
- Upload to the root so it resolves at
https://yourdomain.com/llms.txt, served as plain text with a 200 status. - Set a review cadence. Update it whenever pricing, products or key URLs change.
Make sure every page you list is live and indexable. If you're unsure, see how to check if a page is indexed by Google.
Common mistakes to avoid
- Dumping your whole sitemap. That defeats the point of curation.
- Claims that don't match your pages. Keep the summary consistent with on-page content so it can't read as manipulation.
- Linking to redirects, 404s or noindexed URLs.
- Blocking AI bots in robots.txt while publishing llms.txt. Bots that can't fetch your pages can't use your links.
- Treating it as a one-time task. Outdated facts spread errors into AI answers.
Where llms.txt fits in a GEO strategy
Treat llms.txt as a tidy-up task, not a growth lever. The work that actually moves AI visibility is the same as before: crawlable pages, answer-first content, clear entities, structured data and a brand that other sites mention.
A sensible order of operations:
- Confirm AI crawlers can access your site.
- Fix the pages you'd want cited so they're clear, factual and well structured.
- Add llms.txt as a clean index to those pages.
- Measure whether AI assistants mention you with the AI Visibility Checker, and track changes over time.
If llms.txt becomes a widely adopted input, you'll already have it in place. If it doesn't, you'll have spent a few hours and gained a useful internal map of your most important content.
Frequently asked questions
What is an llms.txt generator?
Does llms.txt help my Google rankings?
What does LLM mean in slang or tech conversations?
What is the .txt file extension?
Is ChatGPT an LLM or NLP?
How do LLMs process and generate text?
Free tools for this
llms.txt Generator & Validator
Draft an llms.txt from your sitemap, then validate it against the spec.
AI Search
AI Crawler Checker
See which AI bots — GPTBot, ClaudeBot, PerplexityBot and 19 more — can crawl your site.
AI Search
Robots.txt Generator
Build a valid robots.txt visually — presets, AI bot rules and a built-in path tester.
SEO · In-browser
AI Bot Log Analyzer
Upload your access logs and see which AI crawlers visit, how often, which pages — and which are fake.
AI Search · In-browser