Traditional web pages ship navigation menus, scripts, and CSS wrappers that clutter AI context windows when coding assistants or answer engines read your docs. The /llms.txt convention solves this with a single concise Markdown index hosted at the root of your site.
Generate Your /llms.txt File Free
Build spec-compliant Markdown with live token counts and bulk URL import
Exact Structure of /llms.txt
Following the llmstxt.org specification, keep sections strictly predictable:
# Your Brand
> One-sentence summary of what your product or library does.
Optional guidance notes for AI tools (version, authentication, rate limits).
## Docs
- [Quickstart](https://example.com/docs/quickstart): 5-minute installation and setup guide
- [API Reference](https://example.com/api): Endpoints, schemas, and webhook verification
## Optional
- [Changelog](https://example.com/changelog): Older release notes
Best Practices for High AI Retrieval Accuracy
- Keep total size compact: Aim under ~2,000 tokens using our LLM Token Counter so models read the whole index cleanly.
- Pair with robots.txt: Control crawler access via Robots.txt Generator while serving curated entry points in
/llms.txt. - Mark secondary pages as Optional: Placing changelogs and press pages under
## Optionallets context-limited tools skip them safely.
Frequently Asked Questions
Where should llms.txt be hosted?
Place it directly at your domain root (https://yourdomain.com/llms.txt) with Content-Type: text/plain; charset=utf-8.
Does llms.txt replace sitemap.xml?
No. Search engines rely on sitemap.xml; AI coding agents and documentation assistants look for curated Markdown inside /llms.txt.