Technical

llms.txt: What It Is, Why It Matters, and How to Implement It

llms.txt is an emerging standard that tells AI crawlers what your site is and what to index. Here is a complete implementation guide with examples.

Neil Walsh·June 2026·5 min read

llms.txt is a plain text file served at the root of your domain (/llms.txt) that provides AI language models with a structured summary of what your site is, what it contains, and what is most important to index. Think of it as robots.txt for AI systems, except instead of blocking or allowing crawlers, it actively guides them.

The standard was proposed in 2024 and has been rapidly adopted. While not yet required by any AI system, sites with a well-structured llms.txt are showing higher citation rates across ChatGPT, Perplexity, and Claude, likely because the file makes it significantly easier for AI systems to understand and categorise site content.

Publishing llms.txt tells crawlers what to look for. It does not confirm they showed up. Checking your server logs is the only way to verify that GPTBot, ClaudeBot, and PerplexityBot actually fetched the pages you pointed them to.

What to include in llms.txt

  • Site name and one-sentence description
  • What the site does (product/service summary)
  • Key pages with their URLs and brief descriptions
  • What topics the site covers (helps AI match it to relevant queries)
  • Contact information
  • Optional: what the site does NOT cover (reduces incorrect citations)

llms.txt format and example

llms.txt
# YourBrand
> One-sentence description of what your product or site does.

Expanded description: 2-3 sentences covering the core value proposition and who it is for.

## Key pages

- /: Homepage with [main action]
- /about: Company background and team
- /blog: [Topic] guides and resources
- /[product]: [Product description]

## What we cover

- [Topic 1]
- [Topic 2]
- [Topic 3]

## Contact

hello@yourdomain.com

Where to serve it

Serve llms.txt at yourdomain.com/llms.txt with a Content-Type of text/plain. In Next.js, the cleanest approach is a Route Handler at app/llms.txt/route.ts that returns the content as a NextResponse with the correct headers. This also allows the content to be dynamically generated if needed.

Common mistakes to avoid

  • Do not include sensitive information: llms.txt is publicly accessible
  • Keep it focused: a 200-line llms.txt is harder for AI to parse than a 30-line one
  • Update it when your site structure changes significantly
  • Do not use it to stuff keywords: AI systems are good at detecting artificial content
  • Do not list pages you have blocked in robots.txt: doing so creates contradictory signals

Some AI companies have announced they will formally support llms.txt in their crawlers. Implementing it now means your site is ready when adoption becomes widespread.

Frequently asked questions

Is llms.txt an official standard?

Not yet. llms.txt was proposed by Jeremy Howard in 2024 and has gained significant adoption, but it has not been formally adopted by any major AI company as a required standard. That said, multiple AI systems are known to read and use it, and the format is simple enough that implementing it carries no downside.

Does llms.txt replace robots.txt?

No. They serve different purposes. robots.txt controls crawler access: which bots can crawl which paths. llms.txt provides context: what the site is about and what is most important. Both should be present. robots.txt should allow AI crawlers; llms.txt should guide them.

How does llms.txt relate to an MCP server?

llms.txt is a static, read-only summary an AI reads. A Model Context Protocol (MCP) server is a live interface an agent can call to query your data directly. llms.txt is a reasonable starting point for every site; an MCP server is worth building once agents need real-time or structured data your static content cannot capture.

Free tool

See your AEO score in seconds

Paste your URL and get a full audit across all 9 AEO signals - schema, crawlers, E-E-A-T, and more.

Audit my site - it's free

Related reading

Technical

Why Schema.org markup is the single biggest lever for AI citation

May 2026
Technical

Is your robots.txt accidentally blocking ChatGPT and Claude?

May 2026