A llms.txt your AI crawlers can actually read
Write a spec-compliant /llms.txt in a minute, audit the one you already published, and check in one second whether GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended is blocked in your robots.txt. Three tools, one page, no upload: the file never leaves your browser.
llms.txt preview
—
—
Spec check
Every rule this generator enforces, applied to the file above.
Paste your llms.txt
The whole file, exactly as served. Nothing is uploaded.
Checked against the llmstxt.org v2.1 format: one H1, a blockquote summary, optional Base URL:, H2 sections with markdown link lists, no invented syntax.
Audit result
Paste a file and press Audit.
Parsed structure
What an agent would actually see.
Paste your robots.txt
Text only — the parser applies the RFC 9309 matching rules, not a grep for the word “Disallow”.
Try /blog/post-1 or /pricing to see a per-path verdict.
AI crawler verdict
Paste a file and press Check.
“Allowed” means the rule set that applies to that crawler does not block the test path. A crawler with no group of its own inherits User-agent: *. Only the most specific matching group is used, exactly as Google documents it.
Paste-ready robots.txt
Pick the outcome you want. The snippet is complete on its own.
Every crawler allowed. Keeps your existing private paths — add them under the * group.
Your result, in four numbers
Updates with whichever tool is open. Use “Copy report” to keep it or send it to whoever owns the site.
Why AI search needs its own file
An answer engine does not read your site the way a person does. It fetches a handful of pages, converts them to text, and decides what to quote. The file you publish decides how expensive that is.
Context is the budget
A page of HTML with navigation, cookie banners and inline scripts spends most of its tokens on furniture. A curated link list of a few kilobytes tells the agent which five pages matter, so it reads those instead of guessing.
Robots decides whether you exist
OpenAI states plainly that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers. A plugin that blocks “all AI bots” to protect content usually blocks the citation crawlers too — and the training crawlers already have the pages.
Lighthouse now looks for it
Chrome’s Lighthouse audits for the file as part of its agentic browsing checks. A 404 is marked “not applicable”, so you are not penalised for having none — but a 500 or a broken file is flagged, and a good one is the difference between an agent reading your docs and giving up.
Three kinds of crawler, three opposite consequences
This is the mistake that costs the most: “AI crawler” is not one decision. The tokens serve different jobs, and a rule aimed at one never covers another.
| Kind | What it does | Tokens | If you block it |
|---|---|---|---|
| Training | Collects pages for a vendor’s future models. | GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, meta-externalagent, Amazonbot, CCBot |
You opt out of training data. Google says Google-Extended does not affect Search inclusion or ranking. |
| AI search index | Builds the index an answer engine cites from. | OAI-SearchBot, Claude-SearchBot, PerplexityBot, meta-webindexer |
You disappear from that engine’s answers. At OpenAI this is explicit: opted-out sites are not shown in ChatGPT search. |
| User-triggered fetch | Fetches one page because a person asked right now. | ChatGPT-User, Claude-User, Perplexity-User, MistralAI-User |
Mixed. Anthropic honours robots.txt here; Perplexity documents that Perplexity-User generally ignores it because a human initiated the fetch. |
The useful default: allow search, decide separately on training
If you publish content and want to be quoted, keep the search tokens open and block only the training ones that you object to. If you sell a product, allow all of them — a support question answered by an assistant is a support ticket you did not pay for.
Anatomy of a compliant llms.txt
Version 2.1 keeps the format small on purpose. The whole grammar is: an H1, a blockquote, an optional base URL, free text, then H2 sections of link lists.
# Acme Analytics > Self-hosted web analytics that stores no cookies. Base URL: https://acme.example.com/docs/ Acme Analytics runs on your own server. Canonical documentation is under /docs. ### Contact Sales: sales@acme.example.com ## Documentation Every guide has a markdown version at the same path with .md. - [Getting started](getting-started.md): Install in five minutes on any VPS. - [API reference](api.md): REST endpoints, authentication and rate limits. ## Policies - [Privacy](privacy.md): What the server stores, and what it never stores.
- H1 — the only required element. One per file.
- Blockquote — one or two sentences an agent can quote as the site summary.
Base URL:— optional since v2.1. Parsers append the trailing slash; relative links resolve against it.- Details — plain paragraphs, lists or
###subheadings. H1 and H2 are reserved, so never use them here. - H2 sections — a short summary paragraph, then a markdown list of
[name](url)with optional notes after a colon.
Seven mistakes that make an llms.txt useless
Each one is checked by the auditor above, so you can see whether your file has it.
01 Treating it as a sitemap
A 4,000-URL dump is not a map, it is a second sitemap. The spec exists because agents cannot read everything. Keep it to the pages that answer the questions people actually ask, and let the links carry the detail.
02 Relative links with no base URL
Before v2.1, relative links broke the moment the file was pasted into a prompt or read from a mirror. Either write absolute URLs, or add the Base URL: line — that is exactly the problem version 2.1 solves.
03 Using ## Optional as a magic section
The old convention told context-expansion tools what they could drop. v2.1 removed it; the section has no mechanical meaning now. Use an ordinary descriptive heading, such as ## Contact or ## Policies.
04 A second H1, or an H2 in the details
Parsers split the file on H2. A stray ## inside your introduction silently turns half the preamble into a link section with no links in it. Use ### for subheadings in the details.
05 Linking the HTML page instead of the markdown
It works, but it wastes the tokens the file exists to save. Publish page.md next to page.html and advertise it with rel="alternate" type="text/markdown", then link the .md from llms.txt.
06 Blocking the crawler that would read it
A perfect llms.txt behind User-agent: * Disallow: / is unreadable. Check robots.txt after you publish, not before you forget.
07 Publishing it once and never again
Prices, plan names and page paths change. A file that links a 404 is worse than no file: the agent spends its fetch budget on a dead end. Regenerate it when the site map changes, and treat the audit as a release step.
Questions people ask first
What is an llms.txt file?
A markdown file at a site root, or any subpath, that gives AI agents a short curated map of the site: a title, a one-line summary and sections of links. It was proposed by Jeremy Howard in September 2024 and reached version 2.1 in November 2026. It is not a ranking factor and it does not replace robots.txt or sitemap.xml.
Does it make ChatGPT or Perplexity cite my site?
Not by itself. No vendor lists llms.txt as a ranking or citation signal. What it does is make your content cheaper and safer to read, which matters when an agent has a fetch budget. What actually removes you from answers is a robots.txt rule blocking the search crawler — that is the check in tab 3.
Should I block GPTBot but allow OAI-SearchBot?
Yes, if you want citations but not training. OpenAI documents the two settings as independent and says opted-out sites will not appear in ChatGPT search answers. Anthropic and Meta have the same split: ClaudeBot vs Claude-SearchBot, meta-externalagent vs meta-webindexer.
Where does the file go?
At /llms.txt for the whole site, or at any path such as /docs/llms.txt to cover only that subtree. When several apply, agents should use the most specific one — which is how a GitHub Pages project site can participate at all.
Can the links be relative?
Since v2.1, yes — with a standalone Base URL: https://example.com/docs/ line in the top section. Without that line they resolve against wherever the file was fetched from, which breaks for a file read from disk.
llms.txt or robots.txt — which one wins?
Neither overrides the other. robots.txt is access control: what a crawler may fetch. llms.txt is a content map: what is worth reading. A crawler blocked in robots.txt never gets to the map.
Is this page’s own file an example?
Yes. This site publishes /llms.txt for the whole tool network — the live file is here — and it is written with the generator on this page.
Keep the file current without remembering
llms.txt rots the moment you add a page. Point a Make scenario at your page list — a Google Sheet, a CMS export or a GitHub file — and have it rebuild the markdown and commit it on a schedule, so the file your agents read matches the site you actually have.
Affiliate link: if you subscribe to Make through this link, AI Calc Lab may earn a commission at no extra cost to you. The tool above is free and works without it.
Sources, checked December 3, 2026
- llmstxt.org — the /llms.txt proposal, v2.1 and the v2.1 change log (November 2026)
- OpenAI — overview of OpenAI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User)
- Anthropic — crawler documentation (ClaudeBot, Claude-SearchBot, Claude-User)
- Cloudflare — AI crawler reference (operators and user agents)
- Google — robots.txt specification (group selection and longest-match rules applied by the checker)
- Chrome — Lighthouse agentic browsing: llms.txt audit
- Perplexity — Perplexity bots (PerplexityBot, Perplexity-User)