AI Search & GEOAI Search

What Is llms.txt? Example, Format and robots.txt vs llms.txt

llms.txt gives AI tools a clean map of your most important pages. Here’s what it is, a copyable example, how it differs from robots.txt, which AI crawlers to allow and how much it really helps.

A developer configuring robots.txt and llms.txt to guide AI crawlers
On this page

Two small text files can sit at the root of your website and pull in opposite directions. robots.txt mostly says "don't go here". llms.txt says "start here". If you've never thought about either, there's a fair chance one of them is quietly working against you in AI search.

This guide explains what llms.txt is, what goes in it (with a copyable example), how it differs from robots.txt, which AI crawlers to allow, and how much difference it really makes.

At a glance

  • What llms.txt is, and what it isn’t
  • A complete llms.txt example you can copy
  • robots.txt vs llms.txt, side by side
  • Which AI crawlers to allow, with a sample robots.txt
  • Updated November 2026
Start here

What is llms.txt?

llms.txt is a plain text file, written in Markdown, that sits at the root of your site (yoursite.com/llms.txt) and gives AI tools a short, clean map of your most important pages. It was proposed in September 2024 by Jeremy Howard of Answer.AI.

The idea is simple. Language models work with limited context and struggle with cluttered HTML full of menus, scripts and ads. llms.txt hands them a tidy summary instead: who you are, and the handful of pages that explain your business best.

Be realistic about it

llms.txt is a proposed convention, not an official standard, and AI companies support it unevenly. Google hasn’t said it uses llms.txt in Search. It’s cheap to publish and can help tools that do read it, but it won’t fix weak content or a blocked crawler.

Example

An llms.txt example

The format has a few simple parts: a title, a one-paragraph summary in a quote block, then sections of links, each with a short description. A section called "Optional" marks pages a tool can skip if it's short on space.

# Stride Running

> Stride makes trail running shoes for beginners and sells them online
> across the US. This file lists the pages that best explain our products,
> sizing and policies.

## Products
- [Trail shoes](https://stride.example/trail-shoes/): All models, with grip and cushioning compared
- [Size guide](https://stride.example/size-guide/): How to measure your foot and choose a size

## Help
- [Returns](https://stride.example/returns/): 60-day returns, including worn shoes
- [Shipping](https://stride.example/shipping/): Delivery times and costs by region

## Optional
- [Blog](https://stride.example/blog/): Training tips and trail guides

Keep it short: your most useful 10 to 30 pages, not your whole sitemap. Describe each link in plain words, and update the file when key pages change.

Compared

robots.txt vs llms.txt

robots.txtllms.txt
The question it answersWhere may bots go?What should AI read first?
ApproachPermission: allow or block pathsCuration: highlight key pages
FormatDirectives (User-agent, Allow, Disallow)Markdown, readable by people
StatusLong-established, widely honoredProposed convention, uneven support
Location/robots.txt/llms.txt
Goes wrong whenA stale rule blocks a bot you wantedIt’s missing or out of date

They work together. robots.txt decides whether an AI crawler may read your pages at all; llms.txt suggests which pages matter most. If robots.txt blocks a crawler, llms.txt can't help it.

AI crawlers

Which AI crawlers to allow in robots.txt

Each AI company uses its own user agents, and each is controlled by its own line in robots.txt. These are the ones most sites care about:

User agentCompanyWhat it does
GPTBotOpenAICollects content that may be used to train OpenAI’s models
OAI-SearchBotOpenAIFinds pages to show and link in ChatGPT search
ClaudeBotAnthropicCrawls content for Anthropic’s Claude models
PerplexityBotPerplexityIndexes pages to cite in Perplexity answers
Google-ExtendedGoogleA control token, not a crawler: decides whether Google may use your content for Gemini models
Applebot-ExtendedAppleA control token for whether Apple may use your content to train its AI models

Blocking Google-Extended doesn't remove you from Google Search, and it doesn't control Google's AI Overviews, which draw on the normal search index. Blocking Googlebot would remove you from Search entirely.

Here's a robots.txt that welcomes the main AI crawlers and keeps private areas closed:

# Search engines
User-agent: Googlebot
Allow: /

# AI crawlers you want to read your site
User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: PerplexityBot
Allow: /

# Keep private areas out for everyone
User-agent: *
Disallow: /account/
Disallow: /cart/

Sitemap: https://stride.example/sitemap.xml
Check for accidental blocks

Security plugins, CDN bot settings and old “block AI” rules often shut AI crawlers out without anyone noticing. Read your live robots.txt at yoursite.com/robots.txt, and check your CDN’s bot settings too.

Set it up

How to create and publish llms.txt

  1. 1
    Pick your key pagesChoose the 10 to 30 pages that best explain what you do: products or services, pricing, policies and your best guides.
  2. 2
    Write the fileUse the format above: a title, a short summary and grouped links, each with a one-line description.
  3. 3
    Publish it at the rootUpload it so it loads at yoursite.com/llms.txt. Many SEO plugins can generate one for you.
  4. 4
    Check robots.txt tooMake sure the AI crawlers you want aren’t blocked, or llms.txt won’t matter.
  5. 5
    Keep it currentReview it when you launch or retire important pages.
Check it

How to check what AI crawlers can see

On one site, you can read both files by hand. Across many sites, it's easy to miss something. LinkRocket's Site Audit includes an LLM Visibility card that shows whether AI bots such as GPTBot and ClaudeBot can crawl your site, and whether your llms.txt file is present and correctly formatted. You can also run the crawl as GPTBot or ClaudeBot to see your site the way they do.

Being crawlable is step one. Whether AI engines actually cite you is a separate question, which AI Visibility tracking answers. Our GEO guide covers the rest.

Wrapping up

The short version

robots.txt controls whether AI crawlers may read your site; llms.txt suggests what they should read first. Allow the AI crawlers you want, check nothing is blocking them by accident, and publish a short llms.txt listing your best pages. It takes an hour, costs nothing, and removes one reason AI tools might overlook you. Then spend the real effort on content worth citing.

Frequently asked questions

What is llms.txt?

llms.txt is a Markdown file at the root of a website that gives AI tools a short summary of the site and links to its most important pages. It was proposed in 2024 as a way to help language models understand websites.

Is llms.txt an official standard?

No. It’s a proposed convention, and AI companies support it unevenly. It’s cheap to add, but don’t expect it to change results on its own.

What’s the difference between llms.txt and robots.txt?

robots.txt tells crawlers which parts of your site they may access. llms.txt suggests which pages AI tools should read first. robots.txt controls access; llms.txt curates.

Should I block GPTBot?

Only if you don’t want OpenAI to use your content for training. If you want to appear in ChatGPT search results, make sure OAI-SearchBot is allowed. Many sites allow both.

Does blocking Google-Extended remove me from AI Overviews?

No. Google-Extended controls whether Google may use your content for Gemini models. AI Overviews draw on the normal Search index, which Googlebot controls.

Where do I put llms.txt?

At the root of your domain, so it loads at yoursite.com/llms.txt, the same place as robots.txt.

See what AI crawlers see

Check whether GPTBot and ClaudeBot can reach your site and whether your llms.txt is valid. The Free plan includes 1 site audit a month.

Run a free site audit

Similar Posts