llms.txt Syntax and Format Rules
llms.txt is deliberately simple: GitHub-flavored markdown with a fixed shape. The constraint is the point, machines parse it without ambiguity. Here is the whole grammar.
llms.txt structure
| Section | Purpose |
|---|---|
| H1 title | The one required header |
| Blockquote | Site summary first |
| H2 sections | Link grouping |
| Markdown links | The curated list |
The required shape
# Site Name (required H1, first line) > One-sentence summary of the site. (required blockquote, immediately after) ## Optional section - [Link title](https://absolute-url): description after the colon - [Another](https://example.com/page): another description ## Another optional section - [More](https://example.com/more): grouped links by topic
Rules that matter
- Exactly one H1, first line: the site name.
- One blockquote line directly beneath: the thesis of the site.
- H2 sections group related links; keep them thematic (Docs, Tools, Pricing).
- Links are markdown with absolute URLs; the text after the colon is the one-line description.
- Plain UTF-8 text at
/llms.txt; no auth, no redirects, no HTML wrapper. - Optional: a link to
llms-full.txtfor the complete flattened content.
Common mistakes
- Relative URLs; consumers may not have a base context.
- Marketing fluff in the blockquote; it should state what the site is.
- Linking everything instead of the important pages; curation is the value.
- Forgetting the file is publicly cached: update it with releases, not per-deploy.
Validate and generate
Build a spec-correct file with the llms.txt generator, test per-bot robots.txt and edge access with the AI crawler checker, and confirm its presence alongside DNS and schema signals in the AI readiness audit.
Related
Frequently asked questions
Is llms.txt a standard?+
It is an emerging convention from llmstxt.org, widely adopted by AI-facing sites but not an IETF RFC. Treat it as a strong recommendation rather than a protocol.
Where does llms.txt go?+
At the root of your domain: https://yoursite.com/llms.txt, served like robots.txt, in Markdown format.
Does llms.txt replace robots.txt?+
No. robots.txt controls crawling; llms.txt curates content for the models that already read your site. They answer different questions.
Last verified: 2026-11-28