llms.txt: what it is, whether it matters, and how to check yours
llms.txt is a proposed Markdown file that lists a site's key pages for language models. No AI engine has confirmed reading it, so it won't get you cited, but it is cheap to publish. If you have one, scan any page of your site to check that the file is served as text and follows the format.
What is llms.txt?
llms.txt is a proposed standard: a Markdown file at the root of a site, at /llms.txt, that tells language models what the site is and links to its most useful pages. It was proposed in September 2024 at llmstxt.org. It is not a crawler rule: it grants no permissions and blocks nothing.
The format is defined at llmstxt.org (opens in a new tab).
Does llms.txt help you get cited by ChatGPT or Google AI?
No AI engine has confirmed that it does. Google says its AI search features don't need llms.txt or any other special file, and no major AI company has said its crawlers read it. Publishing one is cheap and harmless, so it is fine to have, but don't expect it to change whether you are cited.
There is little sign that AI crawlers even ask for the file. An analysis reported by PPC Land (opens in a new tab) found that while the number of sites publishing llms.txt grew quickly, most of the files got no requests from AI crawlers at all. That is why our report marks llms.txt as an Unconfirmed benefit: we show the result, and it never counts in the score.
According to Google's guide to optimizing for generative AI search (opens in a new tab).
What does a valid llms.txt look like?
It starts with an H1 line (# Name) with the site or project name, which is the only required part. A blockquote summary (> ...) follows, then optional paragraphs, then ## Section headings, each with a list of links in the form - [Page name](URL): what the page covers. A section named Optional marks links that can be skipped when space is short.
Here is the llms.txt for a small documentation site:
# Example Docs
> Example is an open-source library for parsing dates. These docs cover
> installation, the API and migration from version 1.
## Docs
- [Quick start](https://example.com/docs/start): Install and parse a first date
- [API reference](https://example.com/docs/api): Every function and option
## Optional
- [Changelog](https://example.com/changelog): Changes in each releaseServe it at /llms.txt as text/plain or text/markdown, with absolute URLs in the links. Ours is at /llms.txt.
What are the most common llms.txt mistakes?
The most common one is a /llms.txt URL that returns the HTML of the site instead of a text file, because a single-page app or a catch-all route answers every URL with the same page. The others are a file that does not start with the # Name line, links that are not in the - [name](url) list form, and relative or broken link URLs.
To see the first mistake yourself, open https://your-site/llms.txt and view the source: if it starts with <!doctype html>, crawlers get your app shell, not the file. Fix it by serving a static file at that path before the catch-all route.
What is llms-full.txt?
llms-full.txt is a companion file some sites publish next to llms.txt, with the full text of their documentation in one Markdown file instead of links. It has the same status as llms.txt: no AI engine has confirmed using it. It is most useful for developer documentation that people paste into AI coding tools.
Does llms.txt replace robots.txt?
No. robots.txt is the file crawlers read to decide what they may fetch, and it is the one that decides whether AI search crawlers can reach your pages. llms.txt only describes the site. If robots.txt blocks a crawler, an llms.txt does not let it in.
Our guide to robots.txt for AI crawlers explains which crawlers to allow if you want to be cited.
How do I check my llms.txt?
Scan any page of your site; the report opens at the llms.txt result. We fetch /llms.txt from the site's root and run two checks. The first checks that the file exists and is text, not an HTML page. The second checks the format: the # Name line, the > summary, at least one section of links, and that every link has a valid URL. If there is no file, the report gives you a starter llms.txt built from your page's title, description and links.
The same scan runs all our other checks, including the ones that matter more for AI search: whether AI crawlers may fetch the page, and whether its content is in the HTML without JavaScript.