Skip to content
T
Tools.Town
Free Online Tools for Everyone
Seo Tools

llms.txt Best Practices: Sections, Links, Size, and Common Mistakes

Practical llms.txt quality checklist — section naming, absolute URLs, notes, Optional usage, size budgets, anti-patterns, and how to keep the file accurate after launches.

5 August 2026 8 min read By Tools.Town Team Fact Checked

Key Takeaways

  • Start with 5–20 priority pages
  • Technically often yes, but validators warn against them

Quality beats length

A good llms.txt feels like a product manager wrote a one-page reading list for a new engineer — not like a crawler dump. These practices keep the file useful for agents and maintainable for humans. After edits, re-check with the llms.txt Validator.

H1 and summary

  • H1 is the product or site name, not a SEO keyword paragraph.
  • Blockquote summary should pass the “stranger skim” test in under ten seconds.
  • Mention the problem category, not only brand adjectives.
  • Prefer factual tone over campaign slogans.

Section architecture

Suggested default stack for SaaS / docs sites:

  1. Docs — start here, concepts, tutorials
  2. API or Reference — machines-oriented specs
  3. Examples — sample apps, recipes
  4. Policies — privacy, terms, AI use (when relevant)
  5. Optional — blog, changelog, community, status

Guidelines:

  • Reuse plain English names agents already know.
  • Avoid duplicate sections that cross-link the same ten URLs.
  • Put primary paths above Optional so partial-context agents see them first.
  • Leave empty sections out entirely — an H2 with zero links is noise (and a validator warning).

Every file-list line should look like:

- [Human title](https://absolute.example/path): one-line purpose
PracticeWhy
Absolute HTTPSNo ambiguous base URL
Descriptive titleNot “link 1” or “click here”
Colon notesHelps ranking which page to open for a task
Living URLs404s destroy trust
Public pagesAuth walls confuse unauthenticated agents

Avoid nested bullets, HTML <a> tags, or mixing tables into list sections.

Size budget

SizeGuidance
< 10 KBComfortable for most indexes
10–20 KBFine if notes are worth it
20–50 KBTrim or move prose to llms-full
> 50 KBVery likely the wrong abstraction

Long canonical prose belongs in pages linked from the index or in a llms-full.txt pack.

Optional section etiquette

Use ## Optional only when you understand the semantic: “safe to skip under tight context.” Do not hide your pricing or authentication docs there. Do put:

  • Historical changelogs
  • Marketing blog hubs
  • Community forums
  • Conference talk dumps

Spelling matters: title the heading Optional, not “Optional resources” if you want tools and agents that special-case the exact name.

Anti-patterns

  1. Sitemap dump — every product URL with no narrative.
  2. H1 missing / buried — YAML frontmatter or paragraphs before # Title.
  3. robots directives in MarkdownDisallow: belongs in robots.txt; generate rules with the robots.txt Generator.
  4. Relative-only site(/docs) looks fine on origin, fails for many consumers.
  5. Stale launch copy — still links to /docs/v1 when you live on /docs/v3.
  6. Internal-only URLs — staging hosts, localhost, VPN paths.
  7. HTML blobs — scraped chrome, cookie banners, nav scripts as text.
  8. Claiming legal force — llms.txt is not a contract against scrapers.

Process recommendations

  • Treat the file as docs, store it in the docs repo, review it in PRs.
  • Add a monthly or release-checklist item: “llms.txt links still 200?”
  • After major IA changes, update the index before marketing announces.
  • Keep crawl controls separate (robots) and search inventory separate (sitemap).
  • For on-page SEO of human pages, still use meta tags and schema — llms.txt does not replace them.

Minimal quality scorecard

Before you merge:

  • H1 first, meaningful product name
  • Non-empty > summary
  • Absolute links only (or intentional, documented relatives)
  • Every H2 has ≥1 valid list link
  • Optional used only for skippable content
  • Size under ~20 KB
  • Validator shows zero errors
  • Live /llms.txt returns 200 and is not Disallowed

Run the llms.txt Validator until the scorecard is green, then deploy with confidence. Deeper overview: llms.txt complete guide.

Advertisement

Try llms.txt Validator — Free

Apply what you just learned with our free tool. No sign-up required.

Try llms.txt Validator

Frequently Asked Questions

How many links should I include?
Start with 5–20 priority pages. More than ~40 is usually a smell that you are reinventing a sitemap. Prefer quality over coverage.
Can I use relative links?
Technically often yes, but validators warn against them. Absolute https:// URLs survive copy-paste, mirrors, and offline review.

Was this guide helpful?

Your feedback helps us improve our content.

Continue Reading

All Seo Tools Guides

Get the best Seo Tools tips & guides in your inbox

Join 25,000+ users who get our weekly seo tools insights.