llms.txt & AI Search Optimization (GEO) Guide
The llms.txt specification (proposed by Answer.AI) provides a clean, Markdown-formatted index at /llms.txt so AI systems such as ChatGPT, Claude, and Perplexity can discover your most authoritative documentation without parsing noisy HTML navigation or scripts. Pairing /llms.txt with /llms-full.txt gives LLMs both a compact map and deep context.
How to create and validate llms.txt
- Enter your site or project name (rendered as a single H1) and a concise blockquote summary.
- Organize key documentation, guides, and pricing pages under H2 sections using the Title | URL | description format.
- Switch to the Validator tab to verify heading hierarchy and URL syntax, then upload llms.txt to your domain root.
Practical GEO tips
- Place secondary resources like changelogs or legal pages in an ## Optional section so context-limited models can skip them.
- Link to clean Markdown or well-structured canonical HTML pages with factual, up-to-date information.
- Keep descriptions concise and factual—avoid marketing hype so AI assistants cite your pages accurately.
llms.txt Questions
What is the difference between llms.txt and robots.txt?
robots.txt controls crawler permissions (allow/disallow), whereas llms.txt is a curated Markdown guide that helps AI models understand your best content.
When should I also publish llms-full.txt?
Publish llms-full.txt if you want AI tools to ingest comprehensive documentation or API specs in a single request.
Where do I host the generated file?
Place it at the root of your domain (https://yourdomain.com/llms.txt) served as UTF-8 text/plain or text/markdown.