Home › Blog › What Is llms.txt? How It Works and Whether You Need One

What Is llms.txt? How It Works and Whether You Need One

Short answer

llms.txt is a markdown file at yoursite.com/llms.txt that gives AI agents a short summary of your site and links to your best pages. At Strategized.ai I walk owners through it so you can decide in one sitting whether to publish one, what goes in it, and what it will and will not do for being cited by AI assistants.

Most owners meet llms.txt the same way. Someone on a webinar or in a sales email calls it the robots.txt of AI search and says every business needs one now. That claim is almost right, which is why it spreads. The file is real, it is spreading fast, and the major AI labs publish their own. But it was built to help agents read documentation on demand. It was not built as a ranking signal, and nobody has shown it decides which business an assistant recommends.

This is not a robots.txt replacement, not a sitemap, and not a shortcut around clear service pages. Below is what the file is, the exact format, what changed in version 2 of the proposal, who actually reads it, and a ten minute check you can run on your own domain today.

What Is an llms.txt File?

Hub diagram comparing robots.txt and llms.txt to service pages and maintenance - a guide to llms txt
robots.txt and llms.txt sit at the same root level and do different jobs; service pages are what citations depend on.

The llms.txt proposal describes a markdown file that gives agents brief background on a site, some guidance, and links to more detailed pages. It sits at the root path, /llms.txt, or at any subpath such as /docs/llms.txt, where it covers only the pages under that path. Agents are expected to read the file first, then follow the links they need.

The reason it exists is practical. A normal web page wraps its content in navigation, scripts and layout. Turning that back into clean text is slow and error prone, and every wasted token costs an agent time. A short markdown file with a summary and a curated list of links is far easier for a model to work with than a crawl of the whole site.

It helps to see it next to the two root files you already have.

File Who it is for What it does What it does not do
robots.txt Crawlers such as search bots Says which paths automated tools may access Describe what your pages mean
sitemap.xml Search engines Lists every indexable page Summarize anything or fit in a model’s context
llms.txt AI agents reading on demand Summarizes the site and links to the pages that matter Grant or block access, or rank anything

Sources: the llms.txt proposal at llmstxt.org, which describes how the file coexists with robots.txt and sitemap.xml.

One more distinction matters for owners. llms.txt helps an AI read a site. Letting an agent actually do something on your site, such as submit an inquiry, is a different standard: WebMCP, which publishes a page’s functions as tools an agent can call.

The llms.txt Format, Section by Section

The format is plain markdown in a fixed order, so both people and simple parsers can read it. The proposal lists these parts, in this order:

  1. An H1 with the name of the site. This is the only required section.
  2. A blockquote with a short summary. The key facts a model needs to understand everything below it.
  3. Optional detail. Paragraphs or lists, but no headings, that explain the business or how to read the links.
  4. H2 sections of links. Each item is a markdown link, then optionally a colon and a short note about the page.
  5. An “Optional” section. By convention, secondary links an agent can skip when it needs a shorter context.

Here is the skeleton, adapted for a service business:

# Lakeview Dental Group

> Family dental practice in Evanston, Illinois. General, cosmetic and emergency
> dentistry. New patients welcome. Accepts most PPO plans.

Same-day emergency appointments are listed on the emergency page, not the booking page.

## Services

- [Emergency dentistry](https://example.com/emergency/): same-day visits, how to reach the on-call dentist
- [Cosmetic dentistry](https://example.com/cosmetic/): whitening, veneers, consultation process

## Practice

- [Insurance and payment](https://example.com/insurance/): plans accepted, payment options
- [Contact and hours](https://example.com/contact/): address, phone, office hours

## Optional

- [Blog](https://example.com/blog/)

That practice is invented for illustration. The structure is what counts. Two format details answer questions I get often. On encoding: the file is plain text, and the proposal allows an optional byte order mark at the very start, so save it as UTF-8 and serve it as text. On the name: the spec is for files named llms.txt, plural, not llm.txt.

The notes after each link do real work. “Emergency dentistry: same-day visits” tells an agent which page answers which question. A bare list of URLs throws that advantage away.

What Changed in llms.txt Version 2

The proposal was first published in 2024. The current page is version 2, rewritten after two years of adoption, and it changes how you should think about the file in three ways.

It is no longer only a root file. A file can sit at any path and covers the pages beneath it. When more than one file applies, agents should use the most specific one. A business with a large help center can give that section its own file.

It pairs with markdown copies of your pages. Version 2 proposes that pages agents might need offer a clean markdown version at the same URL with .md added. It also recommends standard link relations so agents can find both: rel=”alternate” with type text/markdown points to the markdown copy, and rel=”describedby” points to the llms.txt that covers the page. These can go in the page head or in an HTTP Link header set at the server or CDN.

The ecosystem caught up. The proposal reports that thousands of sites publish the file, that documentation platforms generate one automatically, and that Chrome’s Lighthouse checks sites for one as part of its agentic browsing audits. Yoast SEO, AIOSEO and Wix can generate the file for you, which matters for most owners on WordPress or a site builder.

The practical takeaway: if you already decided to publish one, version 2 makes the markdown copies of your key pages the higher value part of the job. The file is the map. The clean pages are the territory.

Does llms.txt Work? Who Actually Reads It

Medical office manager reviewing site content at the front desk - a guide to llms txt
An office manager checking what the site actually says, the step that matters before any file.

The honest answer splits in two. llms.txt works for the job it was designed for. The evidence that it moves AI citations for a business is thin.

Here is the part that is well supported. The proposal’s own author describes the file as used on demand, at the moment an agent needs information to help a user, rather than for training. It is used most heavily for software documentation, where coding agents follow it to API references and tutorials. The AI labs publish llms.txt files for their own developer docs, including Anthropic’s documentation file. That is real usage, by the people who build the models.

Here is the part that is not. Anthropic’s article on Claude’s web search describes Claude running searches, reading live sources and citing them. It does not mention llms.txt. I have not seen any assistant vendor publish that its product uses the file to choose which business to name or cite. So a pitch that says “add llms.txt and AI will recommend you” is selling plausible reasoning, not a published mechanism.

Let me give you an example of where it does help. A prospect asks an assistant with browsing to compare three local firms. The assistant lands on your site. A clean llms.txt that says, in one line each, which page covers pricing, service area and booking reduces the odds it quotes your blog instead of your service page. That is a modest, believable benefit. It is not a ranking lever.

What actually earns the citation sits upstream of any file: pages that state clearly what you do and for whom, consistent facts across the web, and structured data that names your business as an entity. The guide on what most websites get wrong about being understood by AI covers the fix that does more work than llms.txt.

Watch for this

If an advisor tells you an AI assistant reads llms.txt to decide what to cite, ask for the vendor’s published statement. If the answer is a blog post or a screenshot of server logs, you are looking at plausibility. File access in a log is not the same as being cited in an answer.

Should Your Business Publish One?

Decision diagram for whether a business needs an llms.txt file - a guide to llms txt
The decision point is whether your team can keep the file current, not whether it is fashionable.

For most of the businesses I work with, yes, as a cheap and maintained add-on, and never as the first job. The decision comes down to two questions: can your team keep it current, and are your core pages already clear?

Publish one if your service pages are already readable as plain text, your site changes on a schedule someone owns, and you can generate the file automatically from your CMS or regenerate it when pages change. A WordPress site running Yoast or AIOSEO can turn it on from the plugin settings, and a generated file is rebuilt from your published pages instead of edited by hand.

Skip it for now if your service pages are vague, out of date, or buried in layout, or if nobody owns site changes. A stale llms.txt that points to retired pages or old prices can mislead any agent that reads it, which is worse than having none. Fix the pages first.

And be clear about what you are buying if someone quotes you for it. Writing the file is a small job. The valuable work is deciding which pages represent the business, rewriting them so an agent can quote them accurately, and keeping both current. That is what AI search optimization from Strategized.ai covers, and a technical GEO audit reviews crawl access, schema and llms.txt together before you commit to any of it.

Michael’s take

In my consulting work, I publish an llms.txt on every site I run and regenerate it from the live pages whenever they change. It costs almost nothing, so there is no reason to skip it. But I spend the real hours on the service pages and the schema, because that is what an assistant actually quotes. If an owner has budget for one thing, I point it at the pages, not the file.

How Strategized.ai Structures Its Own llms.txt

Salon owner reviewing her business site on a tablet - a guide to llms txt
An owner reading her own site the way an agent would: summary first, then the pages that answer buyers.

You can read the file this site serves at strategized.ai/llms.txt. It follows the proposal’s order and adds one section I find useful for a service business.

  • H1 and summary. The business name, then a blockquote stating who it serves, what it does and who leads it.
  • Key facts. A short list of plain statements: principal, services, products, contact. These are the facts I want an assistant to repeat accurately.
  • Routing rules. Lines that map a user situation to the canonical page, for example which page fits someone who needs a custom connector built. This is the part that does the most work for a service business, because it answers “which page should I send this person to” before the agent has to guess.
  • Link sections. Pages grouped under H2s, each with a one line note.
  • Optional. Secondary links an agent can skip.

It is served as text/plain with a UTF-8 charset and regenerated from the live site, so it never drifts from the pages it describes. If you want the bigger picture of where a file like this sits in a full AI search program, the generative engine optimization guide library starts with what generative engine optimization actually is.

A 10 Minute llms.txt Check for Your Domain

Run this tonight. It tells you whether you have a file, whether it is any good, and whether it is worth more of your time.

  1. Open yourdomain.com/llms.txt in a browser. A 404 means you have none. A page of HTML means your site is serving the wrong thing at that path.
  2. Check the top. Is there an H1 with your business name and a summary that a stranger would understand in two sentences?
  3. Click five links. Every one should load a live page. Any 404 or redirect to a retired page is a stale file.
  4. Read the notes. Does each link say what the page answers? A bare list of URLs is a missed opportunity.
  5. Test it the way the proposal suggests. Paste only the file into an AI assistant and ask three questions a buyer would ask: what do you do, where do you work, how do I book. Wrong or vague answers point at the file, the pages, or both.

If the check turns up gaps you want closed properly, book a strategy conversation and I will go through your domain with you.

Frequently Asked Questions

Is llms.txt the same as robots.txt?

No. Strategized.ai explains the difference this way: robots.txt tells crawlers which paths they may access, while llms.txt summarizes a site and links to its key pages for AI agents reading on demand. It grants or blocks nothing.

What is the llms.txt format?

Strategized.ai follows the proposal’s order: an H1 with the site name, a blockquote summary, optional detail without headings, H2 sections of links with one line notes, and an Optional section for secondary links.

Does an llms txt file get a business cited by AI assistants?

Strategized.ai has not seen a vendor publish that its assistant uses llms.txt to choose what to cite. The file helps agents find their way around a site; clear service pages and structured data do more for citations.

What is the right llms.txt file encoding?

Strategized.ai serves its file as plain text in UTF-8. The proposal treats llms.txt as plain markdown and allows an optional byte order mark at the start of the file.

Michael Robichaud

Written by

Michael Robichaud

Founder of Strategized.ai, a Claude consultancy for owner-led businesses. Michael leads every Claude rollout himself, designs the custom Claude plugins his developers build, and runs his own five-site publishing network on Claude.

 ·  Connect on LinkedIn →

About the Author

Michael Robichaud

Founder of Strategized.ai. 30 years across enterprise sales, digital marketing, and building businesses. Practitioner-first AI strategy consulting — done-for-you workspace builds, GEO/AEO, and fractional advisory.

Free: the Claude Foundation Plugin

A 20-minute Guided Intake. Claude learns your business once and remembers it in every chat. No account, no card.

The Strategy Stack

Strategized.ai is the strategy layer. Where to go next.

Keep Exploring

More from the blog

Strategy, GEO/AEO, consulting perspectives.

Browse the Blog →

Prefer to learn it yourself?

Free written guides, from first day to confident.

Read the free guides →

Claude plugins by profession

Ready-made Claude plugins for your role, $99 each. Or start free with the Foundation plugin.

Browse the Claude plugins →