LLMs.txt Tools
All tools are free to use — no account and no sign-up required.
Back to the generator

LLMs.txt Best Practices

An llms.txt file is easy to write and easy to write badly. These nine practices cover the choices that make the difference between an index an AI tool can use and one it ignores — from structure and descriptions to token limits, validation and hosting.

Published: [FILL IN] · Last modified: [FILL IN]

Why these practices matter

llms.txt is a community proposal, not an enforced standard, so nothing forces a tool to read your file. That is exactly why quality matters: a clear, accurate, well-sized index gives a model a reason to use it, while a bloated or stale file gives it a reason to skip. The practices below are the ones that consistently make a file more useful.

The nine practices

  1. Structure. Open with the H1 so the file identifies itself, follow it with a blockquote summary, then group links under clear H2 headings such as Docs, Blog or Company. A predictable shape lets a reader understand the file in one pass.

  2. Write descriptions that describe. Each link's description should say what the page actually contains — not a marketing slogan. "Full endpoint list with parameters and responses" is useful; "the best API around" is not.

  3. Be selective. Choose your best 10 to 30 pages and leave the rest out. Exclude thin pages, near-duplicates, tag archives and pagination URLs, which add noise without adding value.

  4. Watch the token count. Aim for roughly 500 to 5,000 tokens and keep the file under about 8,000. If it creeps higher, cut lower-value links rather than trimming every description.

  5. Use, but do not rely on, the Optional section. The V2 revision removed the special meaning of ## Optional. It is now an ordinary heading, so do not assume tools treat anything under it differently.

  6. Keep it accurate over time. A stale file is worse than no file: dead links and renamed pages mislead a model. Revisit your llms.txt whenever you restructure your site or retire major pages.

  7. Validate before publishing. Run the file through a checker and aim for a score of 80 or higher before it goes live. The LLMs.txt Validator scores the common checks and flags broken links.

  8. Host it in the right place. Publish the file at your domain root so it resolves at /llms.txt, make sure it returns HTTP 200, and keep it publicly reachable with no login or redirect in front of it.

  9. Link to Markdown versions. Where you publish page.md or page.html.md copies, point at them so a model can read clean text instead of parsing rendered HTML.

Common mistakes

The same problems show up again and again: a file with no H1, links with no descriptions, or descriptions copied from marketing banners. Others describe a full site dump that pushes the token count past the useful range, or links to pages that have since moved. A missing or wrong content type, or a file hidden behind a redirect, means tools may never read it at all.

The fix is the same in every case: keep the file small, keep it accurate, and make each line earn its place. The fastest way to get a clean starting point is to generate an llms.txt file from your website or sitemap, then validate it before you publish.

Check your file

Validate your llms.txt before you go live — it scores nine checks and flags broken links. Open the LLMs.txt Validator.

Generate yours free

No account needed. Build an llms.txt from your website, sitemap or a pasted list in seconds. Open the LLMs.txt Generator.

Learn more