Skip to content

llms.txt in 2026: what it is, what it isn't, and how to write one

llms.txt is a short Markdown map of your best pages for AI tools. What the format says, what it can't do, and how to write a curated one instead of a URL dump.

• Rankmizer team

llms.txt is a plain Markdown file at the root of your site that lists the pages you would most like an AI tool to read, with a line on what each one covers. It is a discoverability hint. It does not control crawling, it is not a sitemap, and nobody has shown that having one gets a page cited in AI answers. It costs little to write a good one, though, and a bad one can do some harm.

This post covers what the format actually specifies, what it can and can’t do today, and how to write one that is worth a reader’s time, human or otherwise.

Where the format came from

llms.txt was proposed by Jeremy Howard in September 2024. The proposal lives at llmstxt.org. The problem it targets is real: a language model working inside a limited context window does badly with a full HTML page of navigation, cookie banners, scripts and footers. A short, curated, Markdown index of the pages that matter is easier for it to use.

The format is deliberately small:

  • Location. The file sits at /llms.txt. The proposal also allows one under a subpath, such as /docs/llms.txt, covering the URLs beneath it.
  • An H1 with the site or project name. This is the only required part.
  • A blockquote with a short summary of what the site is.
  • Optional free text below that, with any detail a reader needs before using the links. No headings in this part.
  • Sections under H2 headings, each a Markdown list of links in the form [name](url), optionally followed by a colon and a note.
  • A section called Optional, for secondary links a tool can skip when it is short on space.

The proposal also suggests offering clean Markdown copies of important pages, for example at the same URL with .md appended. That part is a suggestion, and most WordPress sites don’t do it.

You will also see llms-full.txt around the web. It is a common companion convention: one file with the full text of your key pages rather than links to them. It is not the core of the proposal, and the same limits apply to it.

What llms.txt does

It gives any tool that chooses to read it a curated starting point. That is the whole mechanism. Suppose someone points an AI assistant or a coding agent at your site and the tool fetches /llms.txt. It gets your own short list of what matters and what each page is for, instead of guessing from your menu.

That helps documentation and product sites, where people paste a URL into an assistant and ask how something works, and agents that browse on a user’s behalf. It also helps your own team, because writing the file makes you decide which pages you actually stand behind.

What it doesn’t do

Here the honest answer matters more than the hopeful one.

  • It doesn’t control crawling. Allowing and blocking crawlers is the job of robots.txt. An llms.txt file that leaves a page out does not keep any bot away from it.
  • It isn’t a sitemap. Search engines discover URLs through links and XML sitemaps. llms.txt is not a replacement for either.
  • It isn’t a documented ranking or citation signal. Google’s guidance on AI features in Search says you don’t need new machine-readable files, AI text files or special markup to appear in AI Overviews or AI Mode. As of this writing we’re not aware of any major AI search product that has documented using llms.txt to decide what it cites.
  • It isn’t private. The file is public. Don’t list anything you wouldn’t want anyone to find.

So treat it like a well-organized reception desk. It helps visitors who stop and ask. It does nothing for the ones who walk straight past, and it doesn’t decide who gets in.

When it’s worth having one

If you run a blog of a dozen posts, an llms.txt file is optional. A clear site structure and good pages matter far more.

It becomes more worthwhile when:

  • you have documentation, guides or a knowledge base that people bring to AI assistants
  • you have many pages, and only some of them represent your current, best thinking
  • you want to tell tools which version of a topic is canonical when several older posts overlap

The real risk is a stale file. An llms.txt that points to deleted pages, redirects or outdated advice is worse than none. It tells a careful reader that nobody maintains the site.

How to write a good one: curated, not a URL dump

The most common mistake is to generate the file from a sitemap. That gives you every URL, including tag archives, thin posts, old announcements and the cart page. A 2,000-line list of links is not a map. It is the same problem the format was meant to solve.

Work through it like this instead.

1. Pick pages you’d be happy to see quoted

Ask of each page: if an assistant quoted this paragraph to someone tomorrow, would it be accurate and would we be glad? If the answer is “it’s a bit out of date”, fix the page or leave it out.

Good candidates:

  • cornerstone guides that answer a question fully
  • product or service pages with current facts: what it is, who it’s for, what it costs, or a link to where pricing lives
  • an about page that says who is behind the site
  • policies people genuinely ask about, like returns, shipping or support hours

Leave out:

  • login, account, cart and checkout pages
  • tag, category, author and date archives
  • thin posts, duplicates and short announcements that have since been overtaken
  • anything set to noindex, since you have already told search engines it isn’t worth showing

2. Use the canonical, final URL

Each link should go straight to the page’s canonical address: HTTPS, the right host, no redirect hop, no tracking parameters. If you changed permalinks at some point, check every link resolves with a 200.

3. Write notes that say what the page answers

The note after each link is the most useful part of the file and the part most generators skip. Say what someone will learn there, in plain words. “Pricing” is weak. “Plans, what each includes, and how billing works” is useful.

4. Group by what readers want to do

Use a few H2 sections that match real jobs: getting started, guides, product, company. Put the long tail under Optional.

5. Keep it short enough to read

There is no official limit. A file a person can skim in a minute is a good target. If you’re past a few dozen links, you’re probably listing pages rather than choosing them.

A small example

# Example Garden Supply

> Example Garden Supply sells native plants and seeds online and ships within the US. This file lists our most useful guides and the pages customers ask about most.

Prices and stock change daily, so product pages are not listed here. Use the shop index for current availability.

## Guides

- [Planting native perennials](https://example.com/guides/native-perennials/): when to plant, spacing, and the first-year watering schedule
- [Choosing plants for clay soil](https://example.com/guides/clay-soil/): which species cope with heavy soil and how to improve drainage

## Customer help

- [Shipping and delivery](https://example.com/shipping/): where we ship, cut-off dates for live plants, and what happens if a plant arrives damaged
- [Returns](https://example.com/returns/): what can be returned and how refunds work

## Optional

- [About us](https://example.com/about/): who runs the nursery and where the plants are grown

6. Serve it correctly on WordPress

The file has to answer at https://yoursite.com/llms.txt with a 200 status and a text content type. On WordPress you can upload a static file to the web root, or let a plugin serve it. Then check three things:

  • Open the URL in a private window and confirm you get the file and not your theme’s 404 page.
  • If you use a page cache or a CDN, purge it after each change.
  • If a plugin generates the file, read what it produced before you publish it. The links have to be right for the file to be any use.

7. Put a date on maintenance

Review the file whenever you publish or retire a cornerstone page, and at least once a quarter. Delete dead links. Update the notes when a page’s scope changes.

A short checklist

  • The H1 names the site, and a blockquote says what it is.
  • Every link is canonical, HTTPS and returns 200.
  • Every link has a note saying what the page answers.
  • No login, cart, archive, thin or noindex pages.
  • The long tail is under Optional.
  • Someone owns keeping it current.

Where Rankmizer fits

The Rankmizer WordPress plugin builds llms.txt from pages that pass its content audit, rather than from your sitemap. You choose a minimum grade, the number of pages, how fresh they must be, which content types to include, and any pages to pin. Thin, low-scoring, noindex, login and cart pages are left out. You see a preview first, and nothing is written until you click Write. It can generate llms-full.txt too. It works without a licence, but without one there are no audit grades, so the file holds only the pages you pin and your lead or cornerstone pages. It doesn’t change the basic fact above: llms.txt is a hint, and no file can make an AI assistant cite a page. More on the AI visibility features.

See what AI search reads on your page

Paste your content and get the check instantly. No account, no waiting.

Check my content