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

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.