llms.txt — title, summary, sections, links
llms.txt is a proposed format that lets an AI tool understand a site quickly. The aim is to show the important documents and what each is for without reading every HTML page. It is written in Markdown, and the structure is only four parts: title, summary, sections and link lists.
The four parts
# Site name— one H1 title, and the first content in the file.> A one or two sentence summary— a blockquote directly below the title, saying what the site offers.- Optional detail paragraphs may follow. The structure check ignores them.
## Sectionwith- [label](URL): descriptionitems below — the actual document links. A final## Optionalsection can hold links that may be skipped in a short context.
# Example Docs > Example Docs is a synthetic documentation site used to demonstrate the llms.txt format. ## Docs - [Getting started](https://example.com/docs/start/): install and first run - [API reference](https://example.com/docs/api/): endpoints and errors ## Optional - [Archive](https://example.com/archive/): older material
Title and summary
The title is the site or product name. The checker reports an error when a second title appears, when something precedes the title, or when the title is empty. One or two sentences are enough for the summary, and a missing summary is a warning. A summary placed after a section is also a warning.
Sections and links
Sections group documents by kind. Each item has a label, a URL and a description after the colon. The description is optional, but without it an AI tool has to guess what the link is for, so write one.
| Element | Rule | Check result |
|---|---|---|
| H1 | Exactly one, first content | Error when missing or repeated |
| Summary | A > block below the title | Warning when missing |
| H2 section | Holds a link list | Warning when empty |
| Link item | [label](URL): description | Warning without a link, error without a label |
| URL | Absolute preferred | Warning for a relative URL, error for a malformed one |
| Duplicates | No repeated URL or label | Warning |
Rules for the links themselves
- Use an absolute URL beginning with
https://. A relative path is interpreted differently by each tool. - Use the document title as the label and keep the description to one line. A second colon or a line break upsets parsing.
- Do not list the same document twice. If language editions are included, mark the language in the label.
- When a Markdown version exists, prefer its URL over the HTML page.
The Optional section
## Optional holds links that can be dropped when context is short: an archive, a changelog, or a very long reference. The checker reports this section as information, never as an error.
llms.txt is a proposal, not a standard. Search engines do not use it as a collection policy, so blocking collection still requires robots.txt. It does not replace an index either.
Questions
How does llms.txt differ from llms-full.txt?
llms-full.txt optionally holds the whole documentation in one file. llms.txt summarises with a link list.
Does it replace robots.txt?
No. robots.txt decides whether collection is allowed; llms.txt helps understanding. The roles differ.
Are section names fixed?
No. Use names that describe the content, such as Docs, Guides or Optional.
Paste the llms.txt you wrote and check its structure and links in one pass.
Open the toolThis article follows RFC 9309 (Robots Exclusion Protocol, September 2022), the robots.txt internet draft (September 2022) and the llmstxt.org proposal (September 2024). Every domain and rule shown is synthetic.