Agent view · Guides · 2026-08-28
How to write an llms.txt and check it is actually served
This is the response this server returns to a client that asks for Accept: text/markdown at https://crawlcheck.io/guides/how-to-write-an-llms-txt-and-verify-it: fetched when you opened this page, shown byte for byte. An assistant, a crawler that negotiates markdown, or anything reading our feed gets exactly this. The markdown leaves signed (RFC 9421, key in our key directory), so a crawler can prove the page it read is the page this server sent; the check is shown below.
| status | 200 |
|---|---|
| content-type | text/markdown; charset=utf-8 |
| vary | Accept |
| link | <https://crawlcheck.io/llms.txt>; rel="describedby"; type="text/plain", <https://crawlcheck.io/.well-known/api-catalog>; rel="service-desc"; type="application/linkset+json", <https://crawlcheck.io/guides/how-to-write-an-llms-txt-and-verify-it>; rel="cite-as", <https://crawlcheck.io/.well-known/http-message-signatures-directory>; rel="http-message-signatures-directory" |
| cache-control | public, max-age=900, stale-while-revalidate=2400 |
| bytes | 18,761 |
| words | 2,843 |
| sha-256 | 9f24473d665216d84a1497cf96b4b3cece08e34f44e51b13e9a447aa77ffd3e4 |
| repr-digest | sha-256=:nyRHPWZSFthKFJfPlrSzzs4I409E5RsT6aRHqnf/0+Q=: ← matches the body shown |
| signature-input | sig1=("@authority";req "@path";req "repr-digest" "content-type");created=1795774749;expires=1795778349;keyid="1hHmE3fo1rg5Ig70wuFtJ5wBc7G-sUTgUJkxyPWFRps";alg="ed25519";nonce="bsXGv_wUi-4t1oe54cLf6w";tag="crawlcheck-page" |
| signature | sig1=:5/TK31sZIlULrofJlpEvbl6nHTtxnvVohlfiwj9ExZBDJL8dCTaxX9CqPRKp3PuOgjXC9/rJ7FbIuJiATNkqDA==: |
| verified | yes — signature by key 1hHmE3fo1rg5Ig70… from https://crawlcheck.io/.well-known/http-message-signatures-directory (directory valid), valid for 3600 more s. Checked here exactly as a crawler would; redo it yourself: https://crawlcheck.io/api/tool/wba |
Guides · 2026-08-28 · By [VSNARY | Emmanuel Orta](/author) · 1 view
# How to write an llms.txt and check it is actually served
The file is quick to write. Confirming that the version a crawler receives is the version you wrote is the step almost everyone skips.
An llms.txt is a plain-Markdown index at your domain root: a site name, a one-line summary, then links to the pages you most want read, each with a short description. Writing it is quick. The step people skip is checking it is served: a 200 rather than an HTML page, a text or Markdown content type, the same fresh copy on the apex and www hosts, and every URL inside it returning 200 without a redirect. A file that exists but is served badly is worth nothing to a client.
Check your own site free
Check my site
About a minute. Free, no sign-up, nothing installed.
On this page
- What goes in an llms.txt?
- Which pages should it list first?
- Are llms.txt generators worth using?
- How is it different from robots.txt and agents.md?
- How do you check the file is actually served?
- Does every URL in it resolve?
- Should robots.txt mention it?
- Will it change how AI assistants cite you?
- What is the order if you have one sitting?
An [llms.txt](/glossary/llms-txt) is a Markdown file at the root of your domain that says what the site contains and where the important pages are, with one line describing each. It is a content map. It grants no permissions and blocks nothing — that is `robots.txt`’s job — and no model provider publicly documents it as a required input.
Writing one is quick. The part that gets skipped, and the part this guide spends most of its time on, is confirming that the file a crawler receives is the file you wrote.
## What goes in an llms.txt? #
Plain Markdown with a fixed shape:
| Element | Purpose |
| --- | --- |
| `#` Site name | One H1, the name of the business or project |
| `>` blockquote | One or two sentences on what the site is |
| Free prose | Optional context: what you do, where, for whom |
| `##` Section headings | Groupings such as Services, About, Pricing, Docs |
| Link lines | `- [Title](url): description` |
| `## Optional` | Pages a reader may skip when it is short on budget |
**The descriptions carry the value, and they are what most files leave out.** A list of bare URLs is a sitemap in worse clothing. The point of the format is that a reader can decide what to fetch without fetching it, which only works if you said what each page is.
## Which pages should it list first? #
Start from the questions customers ask before they buy and work backwards: the pages that state what you sell and what it costs, where you are and when you are open, and the answers to your most common questions. Documentation entry points if you have docs. **Then stop.** A short file that is accurate beats a long one that drifts.
Hours and prices deserve a special mention because [almost no website publishes them in a form a machine can read](/blog/the-two-facts-almost-nobody-publishes). If your llms.txt points at the page that states them, it is pointing at something rare.
## Are llms.txt generators worth using? #
For a first draft, yes. Two cautions. Most generators produce a link dump from your sitemap with page titles as descriptions, which reproduces the bare-URL failure above: the choosing is the value of the file, and a tool has no judgement about what matters to your customers. And a generated file is a snapshot. Nothing regenerates it when you add a service or retire a page, so unless it is wired into your build it decays from the day it ships.
The pattern that works: generate, delete two-thirds of it, then write the descriptions yourself. [The generator and validator comparison](/guides/best-llms-txt-generators-and-validators-compared) covers which tools do what.
## How is it different from robots.txt and agents.md? #
Most confusion comes from treating llms.txt as a permission file. Three files sit at the root of a domain and each answers a different question:
| File | Question it answers | Who enforces it | What a mistake costs |
| --- | --- | --- | --- |
| `robots.txt` | May you fetch this path? | The crawler, by convention | A rule in the wrong [user-agent group](/glossary/user-agent-group) silently stops applying |
| `llms.txt` | Which pages would you like read first? | Nobody. It is a suggestion | A dead link wastes the fetch you were given |
| `agents.md` | What should an agent do on this site? | Nobody, and anyone can read it | Instructions you did not write, or that contradict [robots.txt](/glossary/robots-txt) |
The order matters. A path disallowed in `robots.txt` is not rescued by listing it in llms.txt: a crawler that honours the first never reaches the second. The share of scans where a robots.txt rule is cancelled by the way its groups are written: **16%**.
If that is new to you, read [why naming a crawler can drop your Disallow rules](/guides/robots-txt-user-agent-groups-why-naming-a-crawler-drops-your-disallow-rules) before you write anything else. And while you are at the root, open `/agents.md`: on some platforms it ships from a shared template, and [the instructions in it may not be yours](/blog/the-instructions-on-your-domain-you-did-not-write).
## How do you check the file is actually served? #
Publishing is not serving. Every failure below produces a file that looks right in your editor and is useless on the wire, and each one is settled by a fetch. Fetch the bare [URL](/glossary/url) with no [cache-buster](/glossary/cache-buster), because a crawler never adds one, and do it from outside your own network: your browser has its own cache, sends your session and renders an HTML error page convincingly.
```
curl -sI https://example.com/llms.txt
curl -sI https://www.example.com/llms.txt
curl -s https://example.com/llms.txt | head -20
```
| Failure | What you see | Usual cause and fix |
| --- | --- | --- |
| Served as HTML | 200 with `text/html`, body starts `<!DOCTYPE html>` | A catch-all route answers unknown paths with a page, or a bot challenge sits in front. Serve the file as a static file and exempt it from the challenge |
| Wrong content type | `text/html` on a `.txt` path | The application is handling the route. Expect `text/plain` or `text/markdown` |
| Only on one host | Apex returns the file, `www` does not (or the reverse) | Deploy to both, or redirect one host to the other |
| Stale at the edge | The old body, or a cached 404 from before the file existed | Purge, then read the age header, not your browser |
| Split between hosts | One host fresh, one host stale | Purge both hosts; this is why you fetch both even when sure |
Machine files go stale in transit more often than people expect. The live share of scans where a crawler receives a machine file that no longer matches the origin, and the share where any stale cached object is served: **0.4%** (live share of scanned sites: **13.4%**).
**A file is not published until the bare URL returns it.** The full method for reading cache headers is in [the machine-file caching guide](/guides/machine-file-caching-stale-split-and-blocked-behind-the-edge).
## Does every URL in it resolve? #
A pointer file is a list of promises. A cited URL that 404s, or redirects somewhere else, spends the reader’s attention on a detour. Redirects are the case that survives review, because they still “work” in a browser. Fetch every URL without following redirects and require a 200:
```
grep -oE 'https?://[^) ]+' llms.txt | while read -r u; do
printf '%s %s\n' "$(curl -s -o /dev/null -w '%{http_code}' "$u")" "$u"
done | grep -v '^200 '
```
Anything that prints gets fixed or removed. Build the file from your sitemap rather than your navigation: the sitemap holds each page’s [canonical](/glossary/canonical) address, the navigation holds whatever humans click.
## Should robots.txt mention it? #
Name it in `robots.txt` next to your sitemap so anything starting where crawlers start can find it, and check the sitemap declaration while you are there. Three live rates: a sitemap that robots.txt never names, a declared sitemap URL that does not resolve, and a sitemap that is declared and then disallowed by the same file (live share of scanned sites: **10%**) (live share of scanned sites: **0.8%**) (live share of scanned sites: **2%**).
## Will it change how AI assistants cite you? #
There is no public evidence that it does, and no model provider documents it as an input. Most sites measured here have none: **36.4%**.
That is a fact about adoption, not value. On our own domain the file is linked from every page, and [crawlers fetch it about as often as a blog post](/blog/our-llms-txt-is-linked-from-every-page-crawlers-fetch-it-like-a-blog-post): read, but not treated as special. CrawlCheck reports whether your llms.txt is served correctly and does not treat it as a visibility lever. If someone sells you one as a growth strategy, ask for the measurement. [Does llms.txt work?](/guides/does-llms-txt-actually-work) sets out what is known.
Write it because it is cheap and forces a useful decision about which pages matter. Do not write it before the site underneath can be fetched, parsed and quoted.
## What is the order if you have one sitting? #
The order to do it in. Writing the file is the second step, not the first.
- **Confirm crawlers can reach the pages.** Read your `robots.txt` and check the rules you think apply to named AI crawlers actually apply to them.
- **Write the file from your sitemap**, with a description on every line.
- **Publish and purge.** A file at the origin behind a stale 404 at the edge is, to every client, a file that was never written.
- **Fetch it from outside** on both the apex and `www`, and read the status, content type and first line.
- **Re-check in a week.** A routing change, a new cache rule or a framework upgrade can take a working file offline without announcing it.
Read live from the same counters the dataset page uses, at the moment this page was served. Bars are scaled to the largest value shown, not to 100%.
Written by
[Emmanuel Orta](/author) · VSNARY
I build CrawlCheck and write everything published here, from measurements the verification layer took. Where a post got something wrong, the correction stays in the post.
[Every post, and where I got it wrong →](/author) · [Follow on LinkedIn →](https://www.linkedin.com/in/emmanuelorta)
Share this finding: [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-write-an-llms-txt-and-verify-it%3Futm_source%3Dlinkedin%26utm_medium%3Dsocial%26utm_campaign%3Dshare)[X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-write-an-llms-txt-and-verify-it%3Futm_source%3Dx%26utm_medium%3Dsocial%26utm_campaign%3Dshare&text=How%20to%20write%20an%20llms.txt%20and%20check%20it%20is%20actually%20served)[Email](mailto:?subject=How%20to%20write%20an%20llms.txt%20and%20check%20it%20is%20actually%20served&body=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-write-an-llms-txt-and-verify-it)[Follow Emmanuel on LinkedIn](https://www.linkedin.com/in/emmanuelorta)
## Questions this post answers
### What should go in an llms.txt file?
One H1 with the site name, a short blockquote saying what the site is, then sections of link lines, each giving a page title, its URL and a one-line description. List the pages that say what you sell, what it costs, where you are and when you are open. Keep it short enough to stay accurate.
### Should I use an llms.txt generator?
For a first draft, yes. Then cut most of it and write the descriptions yourself. Generators usually turn your sitemap into a link dump with titles as descriptions, and choosing what matters is the part that carries the value.
### How do I check my llms.txt is being served correctly?
Fetch the bare URL with curl from outside your network, on both the apex and www hosts. The status should be 200, the content type text/plain or text/markdown, and the first lines of the body should be your file rather than an HTML page or an old cached copy.
### Where does llms.txt go?
At the root of the domain, next to robots.txt, at /llms.txt. Name it in robots.txt alongside your sitemap so clients that start where crawlers start can find it.
### Is llms.txt the same as robots.txt?
No. robots.txt says which paths a crawler may fetch. llms.txt only suggests which pages to read first and cannot allow or block anything. A page disallowed in robots.txt is not made reachable by listing it in llms.txt.
### Does llms.txt improve AI visibility?
There is no public evidence that it does, and no model provider documents it as an input. Treat it as a cheap, accurate declaration of which pages matter, and spend most of your effort on making the pages themselves reachable and readable.
## Related findings
[2026-10-03 Best llms.txt generators and validators compared llms.txt generators and validators compared: Yoast, Mintlify, Firecrawl and CrawlCheck, and the four failures no generator checks](/guides/best-llms-txt-generators-and-validators-compared)[2026-09-30 AI crawlers refused, redirected or served less: how to check Fetch your page as GPTBot, ClaudeBot and Googlebot and as a browser, then compare. Four outcomes: refused, redirected, served less](/guides/crawler-delivery-comparison-refused-redirected-or-served-less)[2026-10-03 Cloudflare AI Crawl Control vs CrawlCheck: block vs measure Cloudflare AI Crawl Control blocks or allows AI crawlers; CrawlCheck measures what each one is actually served. Features, limits,](/guides/cloudflare-ai-crawl-control-vs-crawlcheck)
The main product
Found this on your own site? **We fix it for $100.**
Scan free to see where you stand. The fix is one site, every finding implemented and re-measured, with a sealed before and after.
[Fix it all — $100](https://buy.stripe.com/4gM00j7OjawhdLEdyR2VG0v)
[What it covers](/pricing#fix) · [scan first, it is free](/)
Free browser extension
Check this on any site you open, **without leaving the page.**
CrawlCheck for Chrome grades every site you visit A–F and shows, from your own browser, what search engines and AI assistants are actually served. Free, no account.
[Add to Chrome — free](https://chromewebstore.google.com/detail/plgjengobhbdmbgckiiaaflgiepdbcpi?utm_source=crawlcheck.io&utm_medium=post)
[What it does](/extension)
Write for the library
Measured something yourself? **Submit an article.**
Send your finding, the data and the method. A person reads every submission and replies by email; accepted articles are published under your name with a link to your study. Free to submit. Articles are accepted on merit; no one can pay to have one published.
[Submit an article](/submit-finding#send)
[How it works](/submit-finding) · a reply within about a week
Spotted a mistake or a bug on this page? [Report an error](/report-error?k=article). Confirmed errors are fixed and logged on the [corrections page](/corrections).
## Comments
Comments are read before they appear. Nothing is published automatically, and no account is needed. An AI agent with a published signing key can post without the queue: it signs the request and the signature is checked against its own domain ([how](/api/comment/signed)). Those appear at once, marked *verified*.
Send for review
Writing about this? [Facts, live figures and marks](/press) — every number on that page is dated and traceable to a scan.
[All guides](/guides) · [The dataset](/data) · [How the dataset works](/policy)
We read your site the way crawlers do, from our own network, and every report says exactly what was asked for and what came back. [Who runs this](/author) · [Press kit](/press) · [Videos](/videos) · [Evidence for disputes](/evidence) · [YouTube](https://www.youtube.com/@crawlcheck) · [hello@crawlcheck.io](mailto:hello@crawlcheck.io)
#### How we measure, and our own machine files
CrawlCheck reads every site as itself. Its crawler-identity tests send named user-agent strings from its own network, never from an operator’s published range, so a site that verifies crawlers can tell them apart; every report says so. Results reflect what an anonymous non-browser client receives. [What we collect and how to opt out](/policy) · [how every report is timestamped](/proof) · [who runs this](/author) · [press kit](/press) · [hello@crawlcheck.io](mailto:hello@crawlcheck.io).
**Second vantage:** the [browser extension](/extension) measures what crawlers are served from your own address and after your JavaScript runs — the half this server cannot see. From 1.0.0 it sends the domain you ask about, on one button, and anonymous usage counts you can switch off; from 1.0.3 a footer switch turns off the hostname lookup for the grade on the icon; from 1.0.4 a share switch, on by default, sends a signed Two-vantages reading (status, size, words and a hash per identity; never page text); from 1.0.16 chips send the hostnames of search results and AI citations while the chips and grade switches are on; from 1.0.17 a readings switch, on by default, sends one signed page reading a day (numbers, the hostname and the page address with the query removed; never in incognito; at most 40 a day) and only while the share and grade switches are also on. Earlier versions send nothing.
**Our own machine layer for the agentic web:** [llms.txt](/llms.txt) · [llms-full.txt](/llms-full.txt) · [agents.md](/agents.md) · [SKILL.md](/SKILL.md) · [entitymap.json](/entitymap.json) · [media kit](/.well-known/media-kit.json) · [MCP server card](/.well-known/mcp/server-card.json) · [API catalog](/.well-known/api-catalog) · [OpenAPI](/openapi.json) · [robots.txt](/robots.txt) · [sitemap.xml](/sitemap.xml) · [security.txt](/.well-known/security.txt) — every one named in robots.txt, which is exactly what we check for on yours.
**Registry:** [AI policy](/registry/aipolicy) | **Pages:** [IP ranges](/data/ip-ranges) · [Keys](/keys) · [/](/) · [Research](/research) · [Conduct: Bingbot](/agents/conduct/bingbot) | **Guides:** [Robots txt allow list cancels your disallow rules](/guides/robots-txt-allow-list-cancels-your-disallow-rules) | **Glossary:** [edge cache pinning](/glossary/edge-cache-pinning) · [Retrieval recall](/glossary/retrieval-recall) · [domainIncludes](/glossary/domainincludes) · [Data exfiltration](/glossary/data-exfiltration) · [signed absence](/glossary/signed-absence)
[Contact](/contact) · [Partnerships](/partnerships) · [Terms of service](/terms) · [Refund policy](/refunds) · [Trust center](/trust) · [Subprocessors](/subprocessors) · [Changelog](/changelog) · [Report an error](/report-error)
Same body as a file: /guides/how-to-write-an-llms-txt-and-verify-it.md · as data: /feed.json · what we tell agents site-wide: /llms.txt, /agents.md. To see any other site this way, from your own browser, after its JavaScript runs: the browser extension.