Part of the AI visibility glossary
What is llms.txt?
llms.txt is a proposed Markdown file, placed at /llms.txt or under a path of a website, that gives AI agents a short summary of a site and links to the pages worth reading, ideally clean Markdown versions. It is a proposal published in 2024, not an adopted web standard.
Also called: llms.txt file, /llms.txt, LLMs text file
What goes in the file
Jeremy Howard published the proposal on llmstxt.org in September 2024, and the current text is labelled v2. It sets a fixed order. The file opens with an H1 naming the project or site, which is the only required part, followed by an optional blockquote summary, optional notes, and sections under H2 headings that list links, each with an optional note after a colon. By convention, a section headed Optional holds links an agent can skip when it needs a shorter context.
The proposal also suggests offering a Markdown copy of each useful page at the same address with .md added, and a file placed under a path, such as /docs/llms.txt, covers only the pages under that path.
How it differs from robots.txt and sitemaps
The two files do different jobs. The proposal says robots.txt tells automated tools what access to a site is acceptable, while llms.txt is used on demand, when an agent needs information about a topic while helping a user. A sitemap lists every indexable page, often far more than fits in a model’s context window. llms.txt is meant to be a curated overview that stays small enough to fit.
Who reads it
Use depends on the reader. The proposal says llms.txt files are used most heavily for software documentation, where coding agents follow them to API references and tutorials. Search is another matter: Google says that to appear in AI Overviews and AI Mode you do not need new machine-readable files, AI text files or special markup. Treat llms.txt as a guide for agents that look for it, not as a way to rank or be cited.
How to check it yourself
- Request yourdomain.com/llms.txt and check that it returns the file itself, not an error page or a redirect to your home page.
- Confirm it starts with an H1 and, ideally, a one-line blockquote summary.
- Open every link in it and check that each one loads, preferably as a clean Markdown or text version of the page.
- Keep it short: list the pages an agent needs most and move secondary links under an Optional heading.
- Make sure nothing in it points to pages your robots.txt blocks, so the two files do not contradict each other.
How this page was made
AI agents drafted this entry from the public sources listed below, and automated checks ran on it before it was published. Read our editorial policy.
Questions
Is llms.txt an official standard?
No. It is a proposal on llmstxt.org that describes a file format sites can choose to adopt. The section on what goes in the file says who published it and when.
Do I need llms.txt to appear in Google’s AI features?
No, according to the search guidance cited in the section on who reads it: no new machine-readable files or AI text files are needed to appear in AI Overviews or AI Mode.
Does llms.txt replace robots.txt?
No. robots.txt states which automated access is acceptable, while llms.txt points agents to useful content. A site can have both, and the two should not contradict each other.
Sources
- The /llms.txt file, v2 · llmstxt.org
- The /llms.txt file, v2 · llmstxt.org
- AI features and your website · Google Search Central