llms.txt is a plain Markdown file served at yourdomain.com/llms.txt. It lists a site's most useful pages, with a one-line description of each, for AI tools to read.
To create one, write an H1 with your site name, a one-line > summary, then ## sections of [title](url): description links. Be clear about what it is. It's a proposal from 2024, and Stripe, Cloudflare, Anthropic and Vercel publish one. But no major AI search engine has confirmed it reads the file when choosing what to cite. It's cheap groundwork, not a ranking lever.
Or generate it from your routes npm create llms-txt writes the file for you by reading the site's own routes and titles, then leaves TODOs where it couldn't work something out. Worth running first even if you plan to write the whole thing by hand, because it gives you the Pages section for free.
What is llms.txt?
llms.txt is a proposed standard (published at llmstxt.org) for a single Markdown file at your domain root. It gives AI tools a clean, curated index of your site: who you are in one line, then the pages that matter, each with a short description. A model doesn't have to dig through navigation, scripts and ad markup. You point it at the pages you'd want it to read.
People also search for it as "llms txt" or "llms.txt file". It's the same thing: a text file, not a plugin, not a header, not a schema. If you can publish a file at /llms.txt, you can publish this.
llms.txt is not robots.txt
robots.txt tells crawlers what they may NOT access. llms.txt tells AI models what your site IS. One restricts. The other describes. Publishing llms.txt doesn't block anything, and it doesn't replace your sitemap. It sits alongside both.
Who actually reads llms.txt?
Publishing the file and reading the file are different things, and most of the noise about llms.txt mixes them up. Publishing is easy to check. We fetched the files below on 2026-11-17, and each one returned a real llms.txt:
| Site | File | What the file is |
|---|---|---|
| Stripe | stripe.com/llms.txt | H1, one-line summary, then product sections with a linked page and a sentence each |
| Cloudflare | developers.cloudflare.com/llms.txt | An index that points at a separate llms.txt for each product |
| Anthropic | docs.anthropic.com/llms.txt | A documentation overview with the page content included below it |
| Vercel | vercel.com/llms.txt | A summary, when to use the product, and a note that pages are available as Markdown |
Reading is the open question. No major answer engine (ChatGPT, Perplexity, Gemini, Google AI Overviews) has confirmed that it fetches llms.txt to decide what to cite. Google's own documentation says there are no additional requirements to appear in AI Overviews or AI Mode and no other special optimizations necessary. Where the file does get used is in developer tooling. Documentation sites publish it so coding agents and MCP clients can find the right page quickly, and some agent tools look for the nearest llms.txt on purpose.
My honest take
If you run a documentation or developer site, llms.txt is a reasonable convenience for the agents that use it. If you run a local service business and hope it will make ChatGPT name you, it won't do that on its own. Proof of who you are, HTML that can be crawled and answers that can be quoted matter far more. The file is a small addition on top.
Where the file goes
The file lives at the root of your domain, served as plain text: https://yourdomain.com/llms.txt. That fixed, predictable location is the whole point. Any tool that wants the file knows where to ask, the same way it knows where robots.txt lives. Serve it with a text/plain content type. Keep it on your primary domain (not a subdomain unless that's your canonical home). And make sure it returns a 200, not a redirect chain.
Example: this site has one
Advance Labs publishes its own llms.txt at https://advancelabs.dev/llms.txt. It's generated from the same facts that feed our structured data, so the two never drift apart. Open it in a browser to see a real one.
The Markdown structure
The format is deliberately minimal Markdown. Only a few pieces are required. Everything else is optional sections you add as needed. This is the shape, annotated:
- H1: your name: A single # line with the name of the site or organization. This is the only required heading. Example: # Advance Labs Inc.
- > Blockquote summary: A one-sentence blockquote right under the H1 that says what the site is, in plain language. This is the line most likely to get quoted, so make it stand on its own.
- ## Sections: Each ## heading is a section: About, Key Facts, Products, Services, Links, and so on. Keep each section short. Use bullet lists or single statements, not paragraphs.
- Links as Markdown links: Where a section points at a page, use a real [label](url) Markdown link so the model can follow it to the full source.
What a real llms.txt looks like
This is the opening of Stripe's file, fetched on 2026-11-17 from stripe.com/llms.txt, trimmed to the first section. The same pattern holds: name, one-line summary, a section, then links with a sentence each.
Excerpt: stripe.com/llms.txt (Stripe, fetched 2026-11-17)
# Stripe > Stripe is a technology company that provides financial infrastructure for businesses. Businesses of every size, from new startups to established public companies, use Stripe to accept payments online and in person, embed financial services, and create custom revenue models. ## Payments - [Stripe Payments](https://stripe.com/payments): Capture more revenue with a unified payments solution that eliminates the need for one-off merchant account, payment gateway, and processor integrations. - [Payment methods](https://stripe.com/payments/payment-methods): Convert more customers, and use AI to surface the most popular payment methods.
Two things to notice. The summary is a plain statement of what the company is, with no slogan. And every link has a description that makes sense on its own, so a tool that reads only this file still learns what each page is for. (Lightly trimmed: one dash in the summary became commas, and the second link's description is cut short.)
How to write one, step by step
Start with your name and a one-line summary
Write a # H1 with your exact business name, then a > blockquote that says what you are in one sentence that stands on its own. If a model only read these two lines, it should still be able to describe you correctly.
Add an About section
Under ## About, write two or three plain sentences: what you do, where you're based, and a disambiguation line if any same-named entity exists. That line matters. State the official record (registry, incorporation number) so the engine can confirm which entity you are.
Write Key Facts as short Q→A pairs
Under ## Key Facts, list the questions buyers actually ask and answer each in one line: "Q: What does a roof inspection cost? A: $250–400, booked within the week." These are the most quotable lines in the file. One fact per line, no hedging.
List Products, Services, and Guides
Add ## sections that link to your real pages with a short blurb each: - [Name](url): one-line description. Point at the canonical URL, not a tracking link.
Finish with a Links section
Under ## Links, list your homepage, key indexes, and authoritative profiles (LinkedIn, GitHub, government registry). These back up who you are across sources.
Publish at /llms.txt and keep it fresh
Serve the file at your domain root as text/plain. Then keep it current. Ideally, generate it from the same data that powers your schema, so a fact changes in one place. A stale llms.txt is worse than none, because whatever reads it will repeat it.
If you'd rather not write it from scratch, the same structure can be generated from your existing site and then checked against this list. The generated draft still needs a read-through. The parts a model can't verify are the parts it's most likely to invent.
The generator prompt and templatesA worked example
Here's a compact llms.txt for a made-up local business. Look at the H1 name, the one-line summary, the short Key Facts, and the linked sections. It's the same shape Advance Labs uses for its own file.
Example llms.txt
# North Ridge Roofing > North Ridge Roofing is a licensed roofing contractor in Hamilton, Ontario, specializing in residential roof replacement and emergency repair. ## About Family-run roofing contractor serving the Greater Hamilton Area since 2009. Licensed and insured in Ontario. Not affiliated with North Ridge Construction LLC (Denver, USA). ## Key Facts Q: What does a roof replacement cost? A: $8,000–$15,000 for a typical Hamilton home, completed in 1–3 days. Q: Do you offer emergency repair? A: Yes, 4-hour average response time, 24/7. Q: What areas do you serve? A: Hamilton, Burlington, Ancaster, Dundas, and Stoney Creek. ## Services - [Roof Replacement](https://northridgeroofing.ca/replacement): Full tear-off and re-roof, asphalt and metal. - [Emergency Repair](https://northridgeroofing.ca/repair): Leak and storm-damage repair, 24/7. ## Links - Website: https://northridgeroofing.ca - Google Business Profile: https://g.page/north-ridge-roofing - Reviews: https://northridgeroofing.ca/reviews
Best practices
- Keep it factual: Every line should be something you'd be fine seeing quoted in an AI answer. No marketing adjectives. "Fast and trusted" never gets repeated. "4-hour average response" does.
- Make facts short and separate: One fact per line, able to stand alone, no cross-references. The short Q→A pairs in Key Facts are the most useful part of the file.
- Disambiguate explicitly: If any same-named entity exists, say so in About. It's the cheapest way to stop an engine from confusing you with someone else.
- Keep it fresh: Treat it like an API response, not a brochure. Generate it from your source-of-truth data if you can, so a price or fact change updates it automatically.
- Don't dump your whole site: It's a curated summary, not a sitemap. Link to the pages that matter and leave the rest out.
| File | Purpose | Read by |
|---|---|---|
| llms.txt | Describes what the site IS, curated facts for AI context | AI assistants / LLM crawlers |
| robots.txt | Restricts what crawlers may access | Search + AI crawlers |
| sitemap.xml | Lists every URL for discovery and indexing | Search engine crawlers |
| Section | What it does | Required? |
|---|---|---|
| # H1 name | Names the site or organization | Yes |
| > Summary | One-line, quotable description | Recommended |
| ## About | Context + disambiguation + official record | Recommended |
| ## Key Facts | Atomic Q→A buyers ask, most citable | Recommended |
| ## Products / Services | Linked offerings with one-line blurbs | As needed |
| ## Links | Homepage + authoritative profiles | Recommended |
An llms.txt is a single plain-text file at one fixed location (/llms.txt). It needs no code or plugin, so it costs an hour or less. Whether any AI search engine reads it is unconfirmed. That's why we rate it as groundwork, not a lever.
Writing it by hand is the surest way to get every fact right, but you don't have to start from an empty file. Our free generator crawls your site and pulls the real titles and descriptions off your existing pages. That gives you the Services and Links sections already filled in, with URLs that work. The About and Key Facts sections are still yours to write. Those are the ones that decide whether the file earns a citation.
Build a starting llms.txt from your pagesCan a coding agent write and serve this file for me?
Yes. The AEO Toolkit now includes an agent skill, aeo-llms-txt, that walks a coding agent through the whole job: deciding whether the file is worth publishing, generating it from your routes instead of by hand, and serving it correctly.
One detail it covers is easy to miss. Serve the file with an X-Robots-Tag: noindex header. Otherwise Google can index it, and because it repeats your page titles and descriptions, it can compete with your real pages in results. Noindex only affects search indexes. It doesn't stop an AI agent from fetching and reading the file. Don't also disallow it in robots.txt. A crawler that can't fetch the file can't see the noindex.
The skill also says plainly that no major answer engine has confirmed it reads llms.txt for ranking or citation. So it treats the file as low-cost groundwork, not a lever.
Read the aeo-llms-txt skill guideThe skill source is open on GitHub.
aeo-llms-txt on GitHubCommon questions
What is llms.txt?
llms.txt is a plain Markdown file published at yourdomain.com/llms.txt that gives AI tools a short, curated index of your site: a one-line summary, then your most useful pages with a sentence on each. It was proposed at llmstxt.org in 2024. It's a convention, not an enforced standard, and it doesn't block or allow anything.
What is an llms.txt example?
The simplest example is a # heading with the site name, a > line saying what the site is, and a ## section of links such as - [Pricing](https://example.com/pricing): Plans and what each includes. Stripe, Cloudflare, Anthropic and Vercel all publish a real one; the Stripe opening is excerpted above, and a worked example for a fictional roofing company is further down.
How do I create an llms.txt file?
Write the file by hand in any text editor, or generate a first draft from your existing pages and edit it. Start with an H1 and a one-line summary. Add a few ## sections that link to your most important pages with a sentence each. Save it as llms.txt and publish it at the root of your domain, so it loads at yourdomain.com/llms.txt as plain text with a 200 status.
Where do I put the llms.txt file?
At the root of your primary domain, served as plain text: https://yourdomain.com/llms.txt. The fixed location is the point, the same as robots.txt. Make sure it returns a 200 status with a text/plain content type, not a redirect.
Does ChatGPT or Google read llms.txt?
No major answer engine has confirmed that it does. Google's documentation on AI features says there are no additional requirements to appear in AI Overviews or AI Mode and no other special optimizations necessary. Some developer tools and coding agents do look for llms.txt, which is why documentation sites publish one.
Do I need an llms.txt file?
Not to be found or cited. If you run documentation or a developer product, it's a cheap convenience for the agents that use it. For a local service business, spend the time first on proof of who you are, HTML that can be crawled and answers that can be quoted. Then treat llms.txt as an hour of groundwork.
Is llms.txt the same as robots.txt?
No. robots.txt restricts what crawlers may access. llms.txt describes what your site is and where its best pages are. One blocks, the other informs. Publishing llms.txt doesn't block anything and doesn't replace your sitemap.xml. The three do different jobs and sit side by side.
Sources
Related guides
Want it done for you
Want this done and re-checked every month? Our monthly maintenance re-runs your buying questions in ChatGPT, Perplexity and Google, ships the fixes that keep you out of the answers, and reports what moved. Or run the free check on your site first at advancelabs.dev/tools/audit.
See how it works
