Skip to content
toolsbox

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.

By Umer Anees6 min read

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:

  1. An H1 with the site or project name (the only required element).
  2. A blockquote with a short summary containing the key information needed to understand the rest of the file.
  3. Optional free-text paragraphs or lists with extra context (no headings here).
  4. H2 sections containing link lists, each item formatted as [Page name](URL): optional note.
  5. 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 .md version of important pages at the same URL with .md appended, 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.

FileAudienceWhat it doesFormat
robots.txtAll crawlersAllows or blocks crawling by path and user agentDirective syntax
sitemap.xmlSearch enginesLists every indexable URL for discoveryXML
llms.txtLLMs and AI agentsSummarizes the site and points to the best pagesMarkdown

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

  1. 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.
  2. 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.
  3. Group links under H2 sections that match how people ask questions (Product, Pricing, Docs, Guides, Policies).
  4. Add a short note to each link saying what the page answers.
  5. Move secondary content to "Optional."
  6. Draft and validate. The llms.txt Generator & Validator builds a draft from your sitemap and checks it against the spec.
  7. Upload to the root so it resolves at https://yourdomain.com/llms.txt, served as plain text with a 200 status.
  8. 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:

  1. Confirm AI crawlers can access your site.
  2. Fix the pages you'd want cited so they're clear, factual and well structured.
  3. Add llms.txt as a clean index to those pages.
  4. 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?
An llms.txt generator is a tool that drafts the file for you, usually by reading your sitemap or crawling your site and turning key URLs into the Markdown structure the spec expects. Good generators also validate the output, checking for a required H1, a summary blockquote, correctly formatted links and broken URLs. You should still edit the draft by hand to pick the right pages and write accurate notes.
Does llms.txt help my Google rankings?
No. Google has not said it uses llms.txt for ranking or for choosing AI Overview sources. Google Search relies on crawling, indexing, and its own ranking systems, and you control access with robots.txt and meta robots tags. Rankings and AI Overview citations still depend on crawlable, useful, well-structured pages. Treat llms.txt as an optional extra for LLM tools and agents, not as an SEO tactic.
What does LLM mean in slang or tech conversations?
In tech and marketing, LLM stands for large language model: an AI system trained on large amounts of text to understand and generate language. Examples include the models behind ChatGPT, Claude and Gemini. Outside tech, LLM also refers to a Master of Laws degree, so context matters. In an llms.txt discussion, it always means large language models.
What is the .txt file extension?
.txt marks a plain-text file: unformatted characters with no fonts, layout or embedded code. Any text editor can open it, and web servers usually deliver it as text/plain. llms.txt uses the .txt extension even though its contents follow Markdown syntax, because Markdown is just plain text with lightweight conventions, such as # for headings and [text](url) for links.
Is ChatGPT an LLM or NLP?
Both, in a sense. NLP (natural language processing) is the broad field of getting computers to work with human language. LLMs are one approach within that field. ChatGPT is a chat product built on top of large language models from OpenAI. So ChatGPT runs on an LLM, and LLMs are a type of NLP technology.
How do LLMs process and generate text?
LLMs split text into tokens, small chunks of words or characters, and turn them into numerical representations. During training, they learn patterns by predicting the next token across huge amounts of text. When you ask a question, the model generates an answer one token at a time. AI search tools add a retrieval step that fetches web pages first, which is where clean files like llms.txt could help.

Free tools for this