What llms.txt Is and How to Write One for Your Site
A plain guide to the llms.txt proposal: the format, what to list, how llms-full.txt differs, common mistakes, and what the file can and cannot do.

Language models are increasingly asked about websites, products and documentation, and they read those sites through tools that fetch pages on demand. A normal web page is full of navigation, scripts and layout that waste a model's limited context. The llms.txt proposal, published by Jeremy Howard of Answer.AI in 2024, suggests a simple fix: a short Markdown file at the root of a site that tells a model what the site is and where its most useful pages are.
The format
The file lives at /llms.txt. It starts with an H1 holding the site or project name, which is the only required part. Next comes an optional blockquote with a one-line summary, then optional notes in ordinary paragraphs or lists, then any number of H2 sections. Each section is a list of links, and each link can carry a short note after a colon describing what a model will find there. A section named Optional marks links that can be skipped when context is short.
That is all. No front matter, no deeper headings, no prose inside sections. The simplicity is the point: any tool can parse it, and a person can read it in a minute.
llms-full.txt
The companion file, llms-full.txt, contains the full text of the listed pages in one Markdown document. It suits documentation that a coding assistant may want to load at once, such as an API reference. It can be large, and that is fine, as long as llms.txt itself stays a short index.
What to list
Think about the questions people bring to an AI tool about your site. For a software product that means getting started, core concepts, API reference, limits, pricing and changelog. For a shop it may mean shipping, returns, sizing and contact. Leave out tag pages, archives, login pages and thin marketing pages. Write link notes that say what is on the page, not that it is great.
The proposal also suggests offering clean Markdown versions of pages at the same URL with .md added. Linking to those versions gives models text without page chrome.
Building the file
The llms.txt Builder gives you fields for the name, summary and notes, and an editor for sections and links. To save typing, paste or open your sitemap.xml: each URL becomes a link, grouped into sections by its first path segment and given a readable title. Trim the list, rename titles, add notes and move sections into order. A preview and a validation list update as you type.
For llms-full.txt, paste or open the Markdown of each listed page. Headings inside each page are lowered so the page titles stay at the top level, and each page gets a source line with its URL. An estimated token count tells you whether the file is getting too big.
Common mistakes
The validator catches the usual problems: text before the H1, more than one H1, H3 headings, list items that are plain text rather than links, prose inside sections, empty sections, relative or http URLs, duplicate links and an Optional section spelled differently. It also notes a missing summary and an index so long it defeats its purpose. You can paste any existing llms.txt, including a competitor's, to see how it is built, and load it into the builder to edit.
Keep expectations realistic
llms.txt is a community proposal, not a standard that search engines or AI companies must follow. Some developer tools and documentation platforms use it, while major crawlers have not committed to it. Publishing one is cheap and can help tools that do read it, but it will not by itself make AI systems cite your site. Clear pages, accurate facts and a site that crawlers may access still matter far more.



