Skip to content
AI Dev Toolkit.
Esc
  • Loading…

AI glossary · Web and SEO

What is llms.txt?

Also called: llms txt, LLMs.txt file

Definition

llms.txt is a proposed convention for a Markdown file at a website’s /llms.txt path that gives language models a short summary of the site and curated links to its most useful pages.

Explained

What goes in an llms.txt file?

Unlike robots.txt it grants or blocks nothing, and it is not a standard: it is an optional map that AI tools may or may not read. To control which AI crawlers may fetch your pages, see our guide to blocking AI crawlers with robots.txt.

The proposal, published on llmstxt.org in September 2024, targets a practical problem: whole websites don’t fit in a context window, and HTML pages are full of navigation and scripts. A small Markdown index lets an assistant or coding agent find the right pages when it needs them. The proposal says its authors expected the file to be mainly useful at inference time, when a model answers, rather than for training, and that this is how it has been used.

The format is plain Markdown in a fixed order. An H1 with the site or project name is the only required part. Then come an optional blockquote summary, optional notes, and any number of H2 sections, each a list of [name](url): notes links. A section titled “Optional” marks links an agent can skip when it needs a shorter context. The proposal also suggests serving Markdown copies of pages at the same URL with .md appended, or with the extension replaced by .md.

Example

This site’s own llms.txt

This site publishes one at /llms.txt, generated when the site is built, from the same page registry as the sitemap, so it can’t list a page that doesn’t exist. It opens with the H1 and the summary, lists every live tool under its category with a one-line description, then every guide, error page, glossary term and directory, and ends with the about and policy pages. The top of the file looks like this, with ... marking lines left out here:

/llms.txt (excerpt)
# AI Dev Toolkit

> Free AI developer tools: count tokens, estimate LLM API costs, compare models, and generate Claude Code and MCP configs. Private, with no sign-up.

...

## Tokens & Costs

- [AI Token Counter](https://tools.its-tahir.com/token-counter): Count tokens for GPT, Claude, Gemini, DeepSeek, Qwen and more.
...

## AI glossary

...

Cost and quality

Is llms.txt worth adding to your site?

Google’s guide to its generative AI features says you don’t need llms.txt or similar files to appear in Google Search, and that creating them “will neither harm nor help” your visibility or rankings in Google Search. So treat it as a convenience for the tools that do fetch it, not as SEO.

If you publish one, generate it from your page data rather than writing it by hand, keep descriptions specific, and link to pages that answer questions on their own. A stale llms.txt that points at moved pages is worse than none.

Don’t mix up

llms.txt vs robots.txt vs sitemap.xml: what’s the difference?

llms.txt vs robots.txt
robots.txt, standardised in RFC 9309, tells crawlers which URLs they may fetch. llms.txt has no rules at all. To keep AI crawlers out, use robots.txt and, for bots that ignore it, a firewall rule.
llms.txt vs sitemap.xml
A sitemap lists every indexable URL in XML for search engines. llms.txt is a short, curated Markdown summary written for language models to read.

FAQ

Questions people ask

Are llms.txt files worth it?

They are cheap to add and can help coding agents and AI assistants that fetch them on request, especially for documentation sites. They are not a ranking factor: Google says Search ignores them, so they neither help nor harm your rankings there. Generate the file from your page data so it never goes stale, and treat it as a convenience for AI readers, not as SEO.

What is llms-full.txt?

llms-full.txt is a companion file some documentation sites publish: one file holding the full text of the pages that llms.txt links to, so a tool can load everything in a single request instead of following links. It is not part of the llms.txt proposal itself, and on a large site it can be far bigger than a model’s context window, so many sites publish only llms.txt.

Where do you put an llms.txt file?

At the root of the site, so it is served at https://example.com/llms.txt as plain text. The proposal also allows one under a sub-path, such as /docs/llms.txt, covering the pages below it, and says agents should use the most specific file. It starts with an H1 naming the site, then an optional blockquote summary and H2 sections of Markdown links.

Go deeper

Try it and read more

Related

All 41 terms in the AI glossary

Written by Tahir Nazir. Checked .

How this was checked: Format rules (required H1, blockquote, H2 file lists, the Optional section, .md copies, inference-time aim) checked against llmstxt.org, and Google’s statement against its generative AI optimisation guide (last updated 2026-07-10), on 2026-10-11. On 2026-10-16 we re-checked Google’s statement, the sub-path rule, and that llms.txt’s proposal does not define llms-full.txt. The example is the top of this site’s own llms.txt, checked against the generator in a unit test.

Keep exploring