🤖 Guide · 2026-04-27
What Is llms.txt and Why You Need It — AEO Primer (2026)
In the AI-search (AEO) era, llms.txt helps LLMs cite your site correctly. This primer covers how to write it and how it differs from robots.txt / sitemap.xml.
SEO is becoming AEO — the rules just changed
In classical search, users land on your page. With AI search (ChatGPT, Perplexity, Claude, Gemini), users never land — they get the answer directly. The bridge is llms.txt.
- robots.txt → crawl-permission rules
- sitemap.xml → page index
- llms.txt → semantic summary for LLMs
The llms.txt standard (Answer.AI, 2024)
A markdown file at /llms.txt on your root domain.
```
# Site name
One-line description
Key pages
- Page title: one-line note
Section 2
- Page title: note
```
LLMs use this as RAG context and cite real URLs in answers.
llms.txt vs llms-full.txt
llms.txt— site map + summaries (short, context window)llms-full.txt— full content concatenated (long, RAG training)
For sites with 10k+ pages, ship both.
Writing checklist
- [ ]
/llms.txtreturns 200 from your root - [ ] H1 is the site name;
>blockquote one-line description - [ ] 5–30 key pages with URL + one-line note
- [ ] Absolute HTTPS URLs only
- [ ] UTF-8 markdown, ≤ 50KB
- [ ] Auto-regenerate weekly (script: sitemap → markdown)
How it works
- A ChatGPT user asks "how to prevent jeonse fraud in Korea"
- ChatGPT searches for prevention guides; sites with llms.txt rank first in citation
- URLs from llms.txt appear in the answer
Cloudflare's 2025 report found sites with llms.txt are cited 27% more on average.
FAQ
- Q. Isn't robots.txt enough? → robots.txt is permission; llms.txt is semantics. Different jobs.
- Q. What about sitemap.xml? → It only lists URLs — LLMs have to infer meaning.
- Q. Dynamic pages? → Convert sitemap → llms.txt at build time.
Audit tools
- SERP & Meta Audit — catch missing metadata
- YouTube Chapter Generator — AEO-friendly chapters
- AI Token Counter — check llms.txt token size
Bottom line
In 2026, ~30% of search responses now embed AI answers. Sites without llms.txt lose share. It's a 30-minute task with compounding upside.