Engineering · November 23, 2026 · 10 min read
What Is llms.txt? Format, Evidence and How We Generate Ours
llms.txt is a proposed Markdown index of a site for language models. The format, how it differs from robots.txt, what the evidence says, and how we build ours.
llms.txt is a plain Markdown file at the root of a website, at /llms.txt, that gives large language models a short, curated index of the site: what it is, and links to the pages that matter, each with a one-line note. It is a proposal, not a standard, and no major AI assistant has publicly committed to using it as a ranking or retrieval signal. Treat it as cheap hygiene, not as a lever.
The glossary has the one-paragraph definition of llms.txt. This post covers the format, how it compares to robots.txt and sitemap.xml, what the evidence does and does not support, and how we generate ours from site content at build time so it cannot go stale.
Where it came from
Jeremy Howard of Answer.AI proposed llms.txt in September 2024. The specification lives at llmstxt.org. The problem it targets is real. HTML pages carry navigation, scripts, cookie banners and layout. A model with a limited context window wastes much of it on that noise. A short Markdown file that lists the important pages, with a sentence on each, is easier for a model to read and cheaper to fit into context.
The proposal is aimed mostly at inference time: a tool or an agent that wants to understand a site, for example a coding assistant reading a library’s documentation. It is not a crawler directive and it is not a search ranking file.
The format
The proposal defines a small, fixed structure, in this order:
- An H1 with the name of the project or site. This is the only required part.
- A blockquote with a short summary: the key facts a reader needs to understand the rest of the file.
- Optional free text: paragraphs or lists with more detail, but no headings.
- H2 sections of links. Each section is a Markdown list. Each item is a link with an optional note after a colon:
- [Name](url): note. - An optional section titled “Optional”. Links under that H2 are secondary. A tool that needs a shorter context can skip them.
The proposal also suggests offering a clean Markdown version of each page at the same URL with .md added. A companion idea, llms-full.txt, puts the full text of the linked pages into one file, so a tool can load the whole site in one request instead of following each link.
Here is a short, illustrative example for a fictional invoicing product:
# Ledgerly
> Ledgerly is invoicing software for freelancers and small agencies.
> It creates invoices, sends payment reminders and tracks paid and
> unpaid work. Plans start free for up to 5 clients.
Ledgerly runs in the browser and on iOS and Android. It does not offer
payroll or full accounting.
## Product
- [Features](https://ledgerly.example/features): invoices, reminders, time tracking
- [Pricing](https://ledgerly.example/pricing): free, Solo and Team plans with limits
## Docs
- [Getting started](https://ledgerly.example/docs/start.md): first invoice in five minutes
- [API reference](https://ledgerly.example/docs/api.md): REST endpoints and webhooks
## Optional
- [Changelog](https://ledgerly.example/changelog): release notes by month
Notice what the example does. The blockquote states what the product is and what it is not. Every link has a note that says what the reader finds there. The changelog sits under “Optional” because a model rarely needs it.
llms.txt vs robots.txt vs sitemap.xml
The three files sit at the root of a site and are easy to confuse. They do different jobs.
| llms.txt | robots.txt | sitemap.xml | |
|---|---|---|---|
| Purpose | Summarize the site and point to the key pages | Tell crawlers which paths they may fetch | List every URL you want indexed |
| Main reader | Language models and AI tools at answer time | Search and AI crawlers | Search engine crawlers |
| Format | Markdown with a fixed structure | Plain text directives | XML |
| Scope | A curated subset, with notes | Rules, not content | Every indexable URL, with optional dates |
| Status | A proposal | A long-established convention, standardized by the IETF as RFC 9309 (2022) | Supported by the major search engines |
| Effect on ranking | None documented | Indirect: a blocked page cannot be indexed | Indirect: helps discovery |
The most important row is the last one. robots.txt decides whether a crawler, including an AI company’s crawler, may fetch your pages at all. That matters far more for AI visibility than llms.txt. If you block a search engine’s crawler, an assistant that searches through that engine’s index cannot cite you. Check robots.txt first.
What the evidence says
Be careful with claims about llms.txt in either direction.
- It is a proposal. No standards body has adopted it. Adoption is voluntary on both sides.
- No major assistant has publicly committed to it as a signal. At the time of writing, none of the large AI assistant providers has said that it reads llms.txt to decide which brands to name or which pages to cite.
- Some tools say they read it. The stated use is to load documentation into context, which is the use the proposal was written for.
- Server logs are not proof of influence. A request for /llms.txt in your logs shows that something fetched the file. It does not show that the file changed any answer.
We have not seen a controlled study that isolates llms.txt as a cause of better AI visibility. Until one exists, the honest position is this: an llms.txt file costs very little, it does no harm, and it may help tools that read it. It is not a lever you can pull to get named more often. The levers that move answers are covered in LLM SEO.
How CitePrism generates its llms.txt
We do not write our llms.txt by hand. Our marketing site builds it from the same content that builds the pages, every time the site builds.
The site is static. The llms.txt route is a small function that runs at build time and returns plain text. It imports the same data modules that render the site:
- the list of solution pages, with each page’s meta description,
- the list of comparison pages,
- the glossary, with each term’s one-paragraph definition,
- the published blog posts, with each post’s title and description,
- the list of engines we track, so the engine names in the summary match the pricing page.
For blog posts it calls the same filter that decides whether a post is live. A post with a future publish date stays out of the blog listing, the sitemap and llms.txt alike. It enters all of them in the same build that publishes its page.
A simplified sketch of the approach:
// Runs at build time. Every list comes from the same data the pages use.
export async function GET() {
const site = 'https://example.com'
const posts = await getPublishedPosts() // same "is it live?" filter as the blog
const lines = [
'# Example',
'',
'> One plain paragraph: what the product is and who it is for.',
'',
`Engines: ${engineNames()}.`,
'',
'## Solutions',
...solutions.map((s) => `- [${s.title}](${site}/solutions/${s.slug}): ${s.metaDescription}`),
'',
'## Glossary',
...glossary.map((t) => `- [${t.term}](${site}/glossary/${t.slug}): ${t.definition}`),
'',
'## Blog',
...posts.map((p) => `- [${p.title}](${site}/blog/${p.slug}): ${p.description}`),
]
return new Response(lines.join('\n'), {
headers: { 'Content-Type': 'text/plain; charset=utf-8' },
})
}
Two more details. Every page’s head carries a rel="alternate" link of type text/plain that points to /llms.txt, so a tool that reads one page can find the index. Our sitemap.xml is generated the same way, from the same data, so the sitemap and llms.txt always agree on which pages exist. robots.txt is generated at build time too, and points crawlers to the sitemap.
Why generated beats hand-written
A hand-written llms.txt is a second copy of your site’s structure. Second copies drift. Someone renames a page, adds a product, changes a price or retires a plan, and the file still says the old thing. A model that reads it gets a confident, wrong summary of your business. That is worse than no file.
A generated file cannot drift, because it has no separate content to go stale. When a glossary definition changes, the line in llms.txt changes in the same build. When a post publishes, it appears. When a page is removed from the data, it disappears. The only hand-written part is the short summary at the top, and that is a few lines to review when your positioning changes.
How to make one: a checklist
- Check robots.txt first. Make sure you do not block the crawlers of the search engines and assistants your buyers use.
- Write the H1 and the summary. Use the name people know you by. In the blockquote, say what you are, who you serve and one or two key facts in plain sentences. State what you do not do, if buyers often get it wrong.
- Pick the pages. Include the pages that answer buyer questions: product, pricing, comparisons, definitions, key docs. Leave out legal pages, tag archives and thin pages.
- Write a note for every link. One line on what the reader finds there. Reuse your meta descriptions if they are plain and accurate.
- Put secondary links under “Optional”. Changelogs, older posts and background reading go there.
- Generate it if you can. If your site builds from content files or a CMS, build llms.txt from the same source. If you cannot, put a review of the file on the checklist for every launch, pricing change and page removal.
- Serve it as plain text at /llms.txt. Add a
rel="alternate"link in your page head so tools can find it. - Do not expect a ranking change. Measure AI visibility with a GEO tool before and after if you want to check, and read the citations with AI citation tracking to see which pages the engines actually use.
FAQ
What is llms.txt used for?
It gives language models and AI tools a short, curated Markdown index of a website: a summary of what the site is, and links to the key pages with a note on each. Some tools say they read it to load documentation into context. It is not a crawler directive and not a documented ranking signal.
Does llms.txt improve AI visibility or rankings?
There is no public evidence that it does. It is a proposal, and no major AI assistant has publicly committed to using it as a ranking or retrieval signal. Publish one because it is cheap and harmless, and spend your real effort on indexable, citable pages and presence on the sources the assistants cite.
Is llms.txt the same as robots.txt?
No. robots.txt tells crawlers which paths they may fetch, and it can block AI crawlers. llms.txt does not grant or deny access to anything. It summarizes the site for a model that wants to understand it. Of the two, robots.txt has far more effect on whether assistants can cite you.
Should I use an llms.txt generator?
A generator is fine for a first draft, but a one-off generated file goes stale as soon as your site changes. The better approach is to build llms.txt from your site’s own content during each build, so it always matches the live pages. If you must write it by hand, review it whenever pages, products or prices change.
What is llms-full.txt?
llms-full.txt is a companion idea: one file that contains the full text of the pages listed in llms.txt, so a tool can load the whole site in one request. It suits documentation sites. For a marketing site it is usually unnecessary, because llms.txt plus clean pages already cover what a model needs.