What is llms.txt? It's a plain Markdown file at the root of a website that lists the site's most useful pages for AI tools, with a short note about each one. The idea was proposed at llmstxt.org to help language models find good pages without reading a whole site. It's easy to make and easy to get wrong, and plenty of articles promise more than it can deliver. This guide covers the format, a full example you can copy, what Google says about it, and how to decide whether the fifteen minutes it takes is worth it for your site.

What is llms.txt for?

Web pages are built for people. They carry menus, banners, scripts and footers that a language model doesn't need. An AI tool with limited space has to guess which pages matter and then strip away the rest.

An llms.txt file removes the guessing. It says what the site is, then points to a short list of pages worth reading. Think of it as the note you'd leave for a new colleague who has ten minutes to learn your product.

The proposal suits some sites better than others. Documentation, APIs and developer tools are the natural fit, because people already paste those pages into coding assistants. A local bakery gains very little.

What does an llms.txt file look like?

The format has four parts, in order.

Part Required Markdown
Site or project name Yes One H1 heading
Short summary Recommended A blockquote
Extra background Optional Normal paragraphs or lists
Links, grouped by topic Recommended H2 headings with link lists

Here's a complete example for a small software company.

# Harbor Notes

> A note app for small teams. Works offline and syncs when online.

Prices are per team and not per person. The API is free on all plans.

## Docs

- [Getting started](https://www.example.com/docs/start): Install and invite a team
- [API reference](https://www.example.com/docs/api): Endpoints, limits and errors

## Company

- [Pricing](https://www.example.com/pricing): Plans and what each includes
- [Security](https://www.example.com/security): Where data is stored

## Optional

- [Changelog](https://www.example.com/changelog): Release notes by month

A section called "Optional" has a special meaning in the proposal. Tools that are short on space may skip it.

Each link needs a title and a full address. The description after it is what makes the file useful, so write one that says what the reader will find. "Endpoints, limits and errors" helps. "Our API page" doesn't.

Does Google use llms.txt?

No. Google's guide to its AI search features says you don't need to create files such as llms.txt, and that they neither help nor harm your visibility in Search. It's fine to have one for other reasons.

That's the clearest answer anyone has published, and it should settle the ranking question. If a service sells you an llms.txt file as an SEO boost, it's selling something Google has ruled out.

Other AI companies haven't said much. We haven't found a major AI search provider that documents llms.txt as part of how it picks sources. Coding assistants and agents may read the file when a person or a setting points them to it, and that's the use that makes sense today.

How is it different from robots.txt and a sitemap?

People mix these up because all three sit at the root of a site. They do separate jobs.

File Question it answers Can it block anyone?
robots.txt Which paths may crawlers request? It asks, and good crawlers obey
sitemap.xml Which pages exist? No
llms.txt Which pages matter most? No

An llms.txt file doesn't give permission and doesn't take it away. If you want to keep AI training bots out, use a robots.txt rule. The robots.txt generator has a preset for that, and the AI crawler checker shows what your file says now.

There's also a companion idea called llms-full.txt. Instead of links, it holds the full text of your main pages in one file. It's handy for pasting into a tool that accepts long text, and less handy when it grows so large that nothing can read it all.

How to create an llms.txt file

You can write one by hand in any text editor. Keep it in plain Markdown and work through these steps.

  1. Write the site name as the H1.
  2. Summarize the site in one or two sentences under it.
  3. List the ten to twenty pages you'd want an assistant to read first.
  4. Group them under two or three headings.
  5. Add a description to every link.
  6. Save it as llms.txt and upload it to the root of your domain.

If you have a sitemap, the llms.txt generator reads it and drafts the file for you. Treat the result as a first draft. A sitemap lists everything, and the point here is to choose.

After uploading, open the address in a private window. You should see plain text. If you see your site's error page, the upload went to the wrong folder or your site is catching the address before the file is served.

Common llms.txt mistakes

These are the mistakes to avoid.

  • Listing every page. Three hundred links is a sitemap with extra steps. We made this mistake on VisaWiki, a visa site our team runs, where the file has 212 links.
  • Links with no description. The title alone rarely says why a page matters.
  • Relative addresses. Use full addresses that start with https, so the file works wherever it's read.
  • Broken links. Check it whenever you move or delete a page.
  • Marketing copy. "The world's leading platform" tells a model nothing. Say what the product does.
  • Private pages. Anything in the file is public. Don't list staging sites or internal docs.

Set a reminder to review it twice a year, or generate it from your content so that it can't fall behind.

Do you need one? If you run documentation, an API or a tool that developers use, yes, it's a small job with a clear reader. If you run a shop, a blog or a local business, you can skip it with no harm done. Put the time into pages that answer questions clearly, which helps people and every kind of search.