◎AEOTools

llms.txt File: Format, Example, and How to Check It Works

An llms.txt file tells AI tools what your site is and which pages matter. See the full format, a complete example file, and how to check yours actually works.

GEO · 8 min read · Step-by-step

An llms.txt file is a small Markdown document at the root of your website that tells AI tools what your site is, which pages matter most, and which ones they can skip. It was proposed by Jeremy Howard of Answer.AI in September 2024 and is documented at llmstxt.org. This guide covers the full anatomy of the file, a complete realistic example you can adapt, and how to verify that yours actually works once published.

One honest caveat first: llms.txt is a proposed convention, not a standard, and none of the major AI vendors' crawler documentation currently says their crawlers read it. Treat it as low-cost documentation that helps the tools that do use it — and as a genuinely useful map of your own site — not as a guaranteed way to get cited.

What an llms.txt file is for

Think of the file as the briefing you would give a smart new colleague who has ten minutes before answering questions about your site. Your sitemap already lists every URL; llms.txt answers a different question: which pages matter, what each one covers, and what the product actually is.

That distinction is why the file is short and selective. A good one points at 10 to 30 pages — what the product does, what it costs, how it works, and the two or three guides that answer the most common questions. A file that lists everything is a sitemap in Markdown clothing, and nobody, human or model, will read it as a guide. Writing the summary also forces a useful discipline: stating what the product costs and who it is for in two sentences is the same work that makes your homepage clearer.

llms.txt file format

The format follows the order the spec defines it. There are only a few required pieces, and everything else is a convention for keeping the file scannable.

An H1 with the name of the site or project. This is the only required element. It is the first line of the file and it is just the name — no tagline, no keyword stuffing.

A blockquote summary. One or two sentences with the key facts someone needs to understand everything below it: what the product is, who it is for, and one or two hard facts such as price, a free plan, or a defining limit. Write it like an encyclopedia entry, not a tagline. A model cannot answer "what does this cost?" from "the future of work, reimagined."

Optional plain paragraphs or bullet lists. Extra context — founding date, location, support hours, what the product is not a fit for — can follow the summary, but no headings in this part. Keep it factual and short.

H2 sections of Markdown links. Each section groups links by what the reader is trying to do, and each link carries a short factual note after a colon. The note is where the value lives: a bare URL tells a reader where a page is, a note tells them whether it answers their question. Use absolute URLs, point them at clean public pages that load directly, and never link to a page that requires a login.

An optional ## Optional section. By convention, links here are secondary — changelog, careers, press, older posts. A reader short on context can skip this section. If your site has no secondary pages, leave the section out entirely; an empty Optional section is worse than none.

The spec also defines a companion file, llms-full.txt: a single file containing the full text of the pages listed in llms.txt, for readers who want the complete content in one fetch. It is optional, and it is a separate file. Do not paste full page text into llms.txt itself — that defeats the point of a short, scannable map.

llms.txt file example

Below is a complete, realistic example for a fictional small SaaS company, Taskline, which makes project tracking software for small teams. It is 25 lines, and every link is a public page with a factual note. Adapt the structure, not the details.

# Taskline
> Taskline makes project tracking software for small teams of 2 to 20 people. It covers task boards, time tracking, and client reporting. Plans start at $9 per user per month; there is a free plan for up to 3 users.

- Founded in 2021, based in Austin, Texas. Support by email, replies within one business day.
- The product runs in the browser; no install is needed. Mobile apps for iOS and Android.
- Not a fit for enterprises that need on-premise hosting or SOC 2 reporting.

## Product
- [Features](https://taskline.example.com/features): Task boards, time tracking, and client reporting, grouped by use case.
- [Pricing](https://taskline.example.com/pricing): Plans, per-user limits, and what each plan includes.
- [Integrations](https://taskline.example.com/integrations): Slack, Google Calendar, and Zapier connections.

## Docs
- [Getting started](https://taskline.example.com/docs/getting-started): Create a workspace and invite your team in under ten minutes.
- [Time tracking](https://taskline.example.com/docs/time-tracking): How timers, manual entries, and weekly reports work.
- [API reference](https://taskline.example.com/docs/api): Endpoints, authentication, and rate limits.

## Guides
- [How to run a weekly team review](https://taskline.example.com/guides/weekly-review): A 30-minute meeting format with a sample agenda.
- [Time tracking for client billing](https://taskline.example.com/guides/client-billing): Turning tracked hours into invoices without double entry.

## Optional
- [Changelog](https://taskline.example.com/changelog): Release notes, newest first.
- [Careers](https://taskline.example.com/careers): Open roles and how hiring works.

Notice what the example does not do: it does not list every page on the site, repeat the homepage under different section names, or put marketing claims in the notes. Each note states a fact a reader can use to decide whether to open the link. If you cannot write a factual note for a page, the page probably should not be in the file.

For a step-by-step walkthrough with a copy-paste template and page-selection rules, see How to Write an llms.txt File. To generate the file from your live pages instead, see How to Generate an llms.txt File. For background on the convention itself, see What Is llms.txt?.

Where to put your llms.txt file

Save the file as llms.txt — not llms.md, not llms.txt.md — and publish it at the root of your site so it resolves at https://yourdomain.com/llms.txt. Crawlers look for /llms.txt at the root; /docs/llms.txt is not the root.

Serve it as plain text or Markdown — either text/plain or text/markdown is fine. What matters is that the file is served as-is, with no JavaScript required to render it and no redirect to a login page. A file behind a login wall is invisible to the tools it is meant for.

The file should also be reachable by the crawlers your site allows: if robots.txt blocks GPTBot or PerplexityBot, they will not fetch your llms.txt either, no matter how well written it is.

How to check your llms.txt file

Publishing the file is half the job. Checking it takes about two minutes, and it catches the mistakes that make most files useless.

Fetch it with curl and check the status:

curl -I https://yourdomain.com/llms.txt

You want a 200 status, a Content-Type of text/plain or text/markdown, and no redirect to a login page. Then fetch the body and read it:

curl https://yourdomain.com/llms.txt

Read it as a stranger would. Does the summary state what the site is? Do the sections answer the obvious questions? Does every link resolve to a public page? Click three or four links by hand — a link that 404s or redirects to a login page actively misinforms the reader.

Check robots.txt for the AI crawlers. Open https://yourdomain.com/robots.txt and look for rules naming GPTBot, PerplexityBot, ClaudeBot, or other AI crawlers. If a crawler is disallowed site-wide, it will not fetch your llms.txt either. Decide deliberately which crawlers you want to allow; a file that is technically published but blocked for the crawlers it is meant for is the same as no file at all. AEOTools' fix module can audit crawler access and generate the file from your live pages in the same pass, so the file and the permissions stay in sync.

Fetch it the way a crawler would see it. A plain curl shows you the file as your server serves it to a generic client. A fetch simulation goes further: it checks what an AI crawler actually receives — whether the content is blocked, whether a redirect chain intervenes, and whether the page renders as plain text rather than JavaScript. AEOTools' /simulate module runs that check, and the best AEO tools comparison lists tools that audit the same access questions. If the simulation shows the file is unreachable or gated, fix the serving or the robots rules before worrying about the wording.

Re-check whenever the facts change. Prices change, pages move, guides get retired. A stale llms.txt misleads more than no llms.txt at all, because a reader trusts a file that looks authoritative. Re-check the file whenever pricing, positioning, or your core pages change — and re-run the curl check after every deploy that touches the site root or robots.txt.

Common mistakes

Mistake Why it hurts
File in the wrong place (/docs/llms.txt) Crawlers look for /llms.txt at the root and will not find it
Linking to login-gated pages The reader cannot open the page; the link is dead weight
Stale links and outdated prices A file that looks authoritative actively misinforms
Stuffing keywords into the summary or notes The file is a map, not a ranking lever; stuffed text reads as spam to humans and models alike
Pasting llms-full.txt content into llms.txt The short file becomes a wall of text nobody will read
Bare links with no notes The reader cannot tell which page answers their question
Listing every URL Selection is the file's job; a full list is a sitemap
Never updating it Drift accumulates silently until the file is wrong

The pattern behind most of these is the same: treating the file as an SEO trick instead of documentation. Write it as if a real person will read it to answer real questions about your product, because that is exactly what it is for.

FAQ

What is an llms.txt file?

An llms.txt file is a small Markdown document at the root of your website that tells AI tools what your site is and which pages matter most. It was proposed by Jeremy Howard of Answer.AI in September 2024 and is documented at llmstxt.org. It is a proposed convention, not a standard, and no major AI vendor's crawler documentation currently confirms that its crawlers read it.

What should an llms.txt file contain?

An H1 with the site name, a one-to-two-sentence blockquote summary stating what the product is, who it is for, and a hard fact such as price, then H2 sections of Markdown links with a short factual note after each one. Keep it to the 10 to 30 pages that matter most. An optional ## Optional section holds secondary links such as the changelog and careers page.

Where do I put my llms.txt file?

At the root of your site, so it resolves at https://yourdomain.com/llms.txt. Save it as llms.txt, serve it as text/plain or text/markdown with no JavaScript required and no login wall, and make sure your robots.txt does not block the AI crawlers you want to reach it.

How do I check if my llms.txt file works?

Fetch it with curl -I https://yourdomain.com/llms.txt and confirm a 200 status and a plain-text or Markdown content type, with no redirect to a login page. Then read the body, click several links to confirm they resolve to public pages, check that robots.txt allows the AI crawlers you care about, and run a fetch simulation such as AEOTools' /simulate. Re-check after any change to pricing, core pages, or robots.txt.

Related tutorials

Browse all tutorials →