As developers and search marketers adapt websites for large language models
(LLMs), a new root-level file has appeared across documentation sites and
content platforms: /llms.txt (often paired with /llms-full.txt). Proposed in
September 2024 by Jeremy Howard at Answer.AI and documented at
llmstxt.org, llms.txt is a lightweight Markdown index
designed to give AI inference engines and coding assistants a clean, concise map
of a site's canonical resources.
Before adding llms.txt to your site, it is essential to separate what the file
actually does from common SEO myths: llms.txt is not a crawler access
control file like robots.txt, it is not a replacement for sitemap.xml,
and Google Search does not use it to rank pages or generate AI Overviews.
Why llms.txt was proposed: context windows vs HTML boilerplate#
Traditional search engine crawlers like Googlebot index millions of pages ahead of time into an inverted index and knowledge graph. Large language models used at inference time—such as IDE coding assistants (Cursor, Windsurf, Claude Code), RAG agents, or user-prompted web readers—face a different constraint: finite context windows and token noise.
When an inference agent fetches a raw HTML page, 60% to 85% of the bytes often consist of navigation menus, inline scripts, CSS class names, SVG icons, cookie banners, and footer links. Parsing that markup wastes context tokens and can obscure API signatures or factual definitions.
The llms.txt proposal solves two problems for inference-time tools:
- Curated prioritization (
/llms.txt): Unlikesitemap.xml, which is a machine-readable URL inventory for search crawlers (often spanning thousands of canonical URLs or segmented sitemaps with zero prose context),/llms.txtis a concise index of only the essential pages, grouped by topic, with a one-sentence description of what each link contains. - Clean Markdown delivery (per-page
.mdalternates and optional/llms-full.txt): Thellmstxt.orgspecification recommends serving a clean Markdown version of individual pages when.mdis appended to the URL (orindex.html.mdfor directory URLs) so agents can fetch details selectively. As an unofficial ecosystem convention outside the corellmstxt.orgspecification, some documentation portals also publish/llms-full.txtto concatenate core documentation into a single file.
Official llms.txt file structure and syntax#
According to the llmstxt.org specification, an llms.txt
file sits at the root path /llms.txt (or optionally a subpath for a specific
subproject) and uses strict, deterministic Markdown formatting so both humans
and simple parsers can read it:
Try These Related SEO Tools
- An H1 heading (
# Name) — The only mandatory element, stating the name of the project, brand, or site. - A blockquote (
> Summary) — A concise summary of the site or project and what it provides. - Zero or more descriptive body paragraphs or lists — Important operational notes, conventions, or how to interpret the site's content (no headings allowed in this block).
- Zero or more H2 sections (
## Section Name) — Each optional H2 section contains a Markdown bulleted list of links in the format- [Link Title](https://example.com/url/): Optional concise description. - An optional
## Optionalsection — A specially named H2 section whose links may be skipped by an LLM loader when assembling a smaller, token-constrained context window.
Production /llms.txt example#
# Perfect SEO Tools
> Free browser-based technical SEO utilities, schema generators, and primary-sourced guides on crawling, indexing, Core Web Vitals, and structured data.
All tools run client-side in the browser without storing private site data. Guides cite official Google Search Central, W3C, and IETF RFC specifications.
## Core Technical SEO Guides
- [Technical SEO Audit Guide](https://www.perfectseotools.com/blog/technical-seo-audit-guide/): 10-step workflow for auditing HTTP responses, robots.txt, sitemaps, canonicals, and Core Web Vitals.
- [Robots.txt Guide](https://www.perfectseotools.com/blog/robots-txt/): RFC 9309 rule precedence, wildcards, HTTP status codes, and AI crawler user-agent tokens.
- [Canonical Tag Guide](https://www.perfectseotools.com/blog/canonical-tag/): How Google selects canonical URLs and common mistakes that split indexing signals.
- [XML Sitemap Best Practices](https://www.perfectseotools.com/blog/xml-sitemap-best-practices/): Sitemaps.org 0.9 limits, lastmod accuracy, and sitemap index architecture.
## Interactive SEO Tools
- [Robots.txt Generator](https://www.perfectseotools.com/tools/robots-manager/): Build user-agent groups for search engines and AI crawlers.
- [JSON-LD Schema Generator](https://www.perfectseotools.com/tools/jsonld-generator/): Generate Article, FAQPage, LocalBusiness, and Product JSON-LD markup.
- [Canonical Tag Manager](https://www.perfectseotools.com/tools/canonical-manager/): Draft and validate self-referencing and cross-domain canonical link tags.
## Optional
- [AI Crawler Policy](https://www.perfectseotools.com/ai-crawler-policy/): Details on our crawler access rules and attribution standards.
- [About Perfect SEO Tools](https://www.perfectseotools.com/about/): Source verification, fact-checking, and correction standards.
How llms.txt compares with robots.txt and sitemap.xml#
Site owners frequently confuse the roles of these three root files. They serve completely separate functions:
| Dimension | /robots.txt | /sitemap.xml | /llms.txt |
|---|---|---|---|
| Standard / Spec | IETF RFC 9309 | Sitemaps.org 0.9 | Proposed llmstxt.org convention |
| Primary Purpose | Crawl access control (Allow / Disallow paths per User-agent). | Machine discovery inventory (complete or segmented) of canonical URLs you want surfaced and <lastmod> dates. | Curated Markdown table of contents with summaries for AI context windows. |
| Format | Plain text (text/plain) | XML (application/xml) | Markdown (text/plain or text/markdown) |
| Used by Google Search? | Yes (optional file; honored for crawl control when present, while 404/410 permits unrestricted crawling). | Yes (primary URL discovery and recrawl signal). | No (not used by Google Search or AI Overviews). |
| Controls AI training? | Voluntary opt-out only (communicates crawl-exclusion requests under RFC 9309 to compliant user-agents like GPTBot, ClaudeBot, and Google-Extended; does not enforce technical access control or govern already-fetched content). | No. | No (contains no disallow directives). |
If your goal is to communicate crawl or training opt-out requests to compliant AI
model crawlers (GPTBot, ClaudeBot, Google-Extended) or AI search crawlers
(OAI-SearchBot, Claude-SearchBot), you must configure /robots.txt (paired
with server/WAF rules if you require hard technical blocking)—never /llms.txt.
Use our
robots.txt generator and read our
robots.txt guide to configure AI crawler tokens properly.
Does llms.txt help you rank in Google AI Overviews or ChatGPT Search?#
In Google Search Central's documentation on AI features and your website,
Google states that no special files, custom text formats, or non-standard
schemas are required to appear in Google AI Overviews or AI Mode; standard
Google Search crawling, indexing, and helpful content fundamentals apply.
Similarly, ChatGPT Search (OAI-SearchBot) and Perplexity retrieve live web
pages through standard search indices and HTML crawls governed by robots.txt.
Where /llms.txt and /llms-full.txt provide genuine, immediate utility today
is for:
- Developer documentation, SDKs, and APIs (adopted by platforms such as
Cloudflare, Stripe, Vercel, and Anthropic) where users paste
/llms-full.txtinto coding assistants or RAG pipelines. - Structured editorial and research sites that want an automatically generated, zero-fluff Markdown catalog of their published guides and tools.
If you want to improve your visibility in Google AI Overviews and citation-based
answer engines, focus first on crawlable HTML, clear direct answers backed by
primary sources, accurate <lastmod> dates in your
XML sitemaps, and our
AI Overviews citation strategy guide.
Best practices if you publish /llms.txt#
- Generate
/llms.txtautomatically at build time: Never maintain/llms.txtby hand, or it will quickly accumulate broken404links and outdated descriptions. Wire it to the same content index that builds your sitemap so draft or excluded articles never leak into/llms.txt. - Enforce strict canonical URL parity: Every URL listed in
/llms.txtmust match the exact protocol, host, and trailing-slash format of yourrel="canonical"tags andsitemap.xmlentries. Test your canonicals with our canonical tag manager and organize your sitemaps with our sitemap index generator. - Keep descriptions factual and concise: Write one clear sentence per link stating the scope and facts covered on that page rather than promotional slogans.
Frequently asked questions#
Can I put Disallow or Allow rules inside /llms.txt?#
No. The llms.txt format has no directive syntax for blocking or allowing
crawlers, and automated bots do not check /llms.txt for permission before
crawling your site. Always place crawler access directives in /robots.txt per
RFC 9309.
What is the difference between /llms.txt and /llms-full.txt?#
/llms.txt is the only file formally defined by the llmstxt.org specification:
a compact index containing your site title, summary, and annotated Markdown
links (which the spec recommends pairing with per-page .md alternates so AI
clients can fetch individual pages selectively). /llms-full.txt is an
unofficial community convention—not part of the llmstxt.org standard—used by
some developer documentation sites to concatenate their pages into one large
Markdown file for manual copy-pasting or bulk RAG ingestion.
Will missing an llms.txt file hurt my SEO?#
No. Missing /llms.txt has zero negative impact on Google Search rankings,
Google AI Overviews, Bing, or standard web indexing. Treat it as a helpful
progressive enhancement for documentation and AI-assisted research rather than a
mandatory SEO requirement.
Sources#
Don't Miss Our SEO Updates
Get the latest SEO tools and strategies delivered to your inbox.
No spam, unsubscribe anytime. We respect your privacy.
Related SEO Paths
About the Author
The Perfect SEO Tools team consists of experienced SEO professionals, digital marketers, and technical experts dedicated to helping businesses improve their search engine visibility and organic traffic.