Snoika
Glossary·Generative engine optimization

What is llms.txt

Definition

llms.txt is a Markdown text file at the root of a website (yoursite.com/llms.txt) that gives large language models (LLMs) a short, curated map of the site's most useful pages.

TermLlms.txt3 min read · reviewed by the Snoika team

Jeremy Howard of Answer.AI proposed it in a post dated September 3, 2024. llms.txt is a reading guide for AI with no ranking power of its own.

A plain definition for marketers

For marketers, llms.txt is a table of contents written for AI assistants. It names your brand and sums up what you do in a sentence or two. Below that it links the pages you'd want a model to read first, each with a one-line note. A sitemap lists every URL you have, while llms.txt lists only the pages that explain you best.

Why it matters for AI

The file matters because a model reads the web through a limited context window, and HyperText Markup Language (HTML) fills that window with menus and scripts. Howard's proposal suggests adding the file "to websites that are designed for reading by language models, not just humans." A clean Markdown summary lets a retrieval tool reach the right page in one fetch. For a brand, that can raise the chance that an assistant reads your product documentation before an old press release.

How LLMs read the file

An LLM reads llms.txt only when a tool fetches it on purpose. The proposal describes this happening while the model answers a question. After an assistant or coding agent requests /llms.txt, it reads the summary and follows the links that match the question. Markdown helps here because headings and lists parse cleanly. A companion file, llms-full.txt, puts the full text of the linked pages into one document, so an agent can take in everything with a single request.

Is llms.txt mandatory

No. llms.txt isn't required for search engine optimization (SEO), and Google doesn't use it to rank pages. John Mueller, Search Advocate at Google, put it bluntly on Reddit: "AFAIK none of the AI services have said they're using LLMs.TXT (and you can tell when you look at your server logs that they don't even check for it)." He compared it to the old keywords meta tag. Your site works normally without the file.

Is llms.txt worth it

It is worth an hour of work, not more. Writing the file costs little and carries no risk, but the file won't change your rankings or your AI citations by itself.

When the file helps

Sites with deep documentation get the most from it. These include developer tools and API references, because coding assistants and agents fetch documentation on demand. Help centers benefit for the same reason. Writing the file also makes your team decide which 15 or 20 pages define the brand, and we've found that exercise useful in its own right.

When it adds little

A small brochure site with clean HTML gains almost nothing, because a model can already read those pages directly. The file can't rescue weak content either, which is the part generative engine optimization services exist to fix. If the linked pages don't answer what buyers ask, the assistant won't quote them, however neatly you list them.

A short file example

An llms.txt file has an H1 with the site name and a blockquote summary. Its annotated links appear in H2 sections.

# Example Co
> Example Co makes invoicing software for freelancers in the EU.

## Product
- [Features](https://example.com/features.md): what the app does
- [Pricing](https://example.com/pricing.md): plans and limits

## Optional
- [Blog](https://example.com/blog.md): guides and updates

The spec allows a model short on context to skip links in the "Optional" section.

How to generate llms.txt

We recommend writing the file by hand. A raw crawl export lists everything, which defeats the purpose.

  1. 011Choose the pagesPick the pages that answer the questions buyers ask most often.
  2. 022Write the summaryDescribe in one or two plain sentences what you sell and who it's for.
  3. 033Group the linksSort them under H2 headings and give each one a one-line description.
  4. 044Publish at the rootSave the file as UTF-8 text at /llms.txt.
  5. 055Update it with the siteRevise the file whenever a key page moves or retires.

How to check your file

A working file loads with functional links and tells a model who you are.

  1. 011Open the URLConfirm /llms.txt returns a 200 status as plain text.
  2. 022Test every linkFix any link that returns a 404 or redirects.
  3. 033Read it as a model wouldPaste the file into an assistant and ask what your company does.
  4. 044Measure the outcomeWe track mentions and citations in ChatGPT and Google AI Overviews with weekly prompt sets. That shows whether the assistants' answers change after the file goes live.

Related terms to know

These terms often come up alongside llms.txt:

robots.txtcontrols where crawlers may go.
sitemap.xmllists every URL for search engines.
llms-full.txtholds the full text of the linked pages in one file.
Generative engine optimization (GEO)work that earns citations in AI answers, also called LLM optimization.
Answer engine optimization (AEO)work that makes pages quotable as direct answers.

Look up more AI search and SEO terms in our glossary.

Related terms

All terms
AEOAnswer engine optimization (AEO) is the practice of shaping content so AI assistants and search features quote it as the direct answer to a question. For a brand, AEO is the work that gets your page cited by ChatGPT or Google AI Overviews when a buyer asks about your category.GEOGenerative engine optimization (GEO) is the practice of shaping a brand's content so AI assistants such as ChatGPT and Google AI Overviews mention and cite the brand when they answer a buyer's question. In marketing, GEO is how a brand gets into those written answers.GroundingGrounding in AI means tying a model's answer to a source it can check, such as a company document or a live web search, so it doesn't answer from memory alone. Grounding AI output this way makes answers more accurate and lets you trace each claim to where it came from. When a chatbot cites a link, yLLM optimizationLLM optimization is the practice of making your brand and content easy for large language models, such as ChatGPT and Gemini, to trust and cite when they answer a question. It's also called LLMO or large language model optimization. Most people who ask what is LLM optimization want to be named insidAnswer engineAn answer engine is a search tool that replies to a question with one written answer instead of a list of links. It reads web sources and turns the relevant facts into a plain reply with citations. ChatGPT and Perplexity are the best-known examples. Ask what are answer engines, and the short reply iKnowledge graphA knowledge graph is a database that stores facts as entities, such as people or companies, and records how they relate to each other. Each fact is a short statement such as "Paris is the capital of France." Knowledge graphs matter in SEO because search engines and AI assistants use these stored facts to understand things in the world beyond the words on a page.

See how AI talks about your brand

Get free audit