llms.txt: what it is and whether you need it

What the llms.txt proposal is, who has said they read it, how to write a valid file, and where it sits next to robots.txt and structured data.

/llms.txt is a Markdown file, usually at the root of a site, that gives AI tools a short summary of the site and a list of its most useful pages. It is a proposal, not a standard. No major AI search engine has said it reads the file, and Google has said its Search does not use it. It costs little to publish, and it does little for search visibility today.

What the proposal says

Jeremy Howard proposed llms.txt in September 2024, and the proposal lives at llmstxt.org, open for community input. Its aim is to help language models and agents use a website at the moment someone asks about it: a web page full of navigation, scripts and layout is hard to fit into a model’s limited context, while a short Markdown file is easy.

The file is Markdown, and its parts come in a fixed order:

  1. An H1 with the name of the project or site. This is the only required part.
  2. A blockquote with a short summary.
  3. An optional Base URL: https://.../ line. Relative links resolve against it, or against the address the file was fetched from when it is absent.
  4. Optional paragraphs, lists, code blocks or H3 and deeper subheadings with more detail. H1 and H2 are reserved.
  5. Optional H2 sections, each a list of links: [name](url), optionally followed by a colon and a note.

Version 2.1 of the proposal, from November 2026, gives no H2 name a special meaning. Earlier versions treated an H2 named Optional as links an agent can skip.

The proposal also asks sites to offer a clean Markdown version of useful pages at the same address with .md added, and describes link relations to find them: rel="alternate" type="text/markdown" for a page’s Markdown version.

An example for a B2B site

# Example

> Example is invoicing software for logistics companies in the US and
> Canada. It reads carrier rate sheets and bills shippers automatically.

Example is sold per seat, with plans for teams of 5 to 500.

## Product

- [How it works](https://example.com/product/): Rate sheet import, billing rules and the approval flow
- [Integrations](https://example.com/integrations/): Carriers, accounting systems and the REST API
- [Pricing](https://example.com/pricing/): Plans, seat prices and the trial

## Company

- [About](https://example.com/about/): Who runs Example and where
- [Security](https://example.com/security/): Hosting, certifications and data handling

## More

- [Customer stories](https://example.com/customers/)
- [Changelog](https://example.com/changelog/)

Keep the links absolute, so tools that ignore Base URL still find the pages. Point each at the canonical address, and list the pages a buyer or an agent would need first, not every page in the sitemap.

Who reads it

Be plain about this with anyone who asks for the file:

  • Google. Google’s guide to generative AI features says you do not need llms.txt or other AI text files to appear in Search or its AI features, because Google Search itself does not use them. In June 2026 Google added that the files neither help nor harm visibility or rankings in Search, and that keeping one for other services is fine.
  • OpenAI, Anthropic and Perplexity. Their crawler documentation covers robots.txt and their user agents, and does not say their crawlers read llms.txt.
  • Other tools. Some documentation sites publish an llms.txt for coding agents, Perplexity’s own developer docs among them. That is a site offering the file, not a crawler saying it reads other sites’ files.

So publishing llms.txt is not a way into ChatGPT, Claude, Perplexity or Google answers. What decides that is whether their bots may fetch the pages and whether the text is in the HTML; see AI search optimization and AI crawlers and robots.txt.

Should your site have one

For most B2B marketing sites, llms.txt comes after the work that AI answers depend on today:

  1. The AI search bots are allowed in robots.txt.
  2. Each page’s text is in the HTML the server sends.
  3. The home page states the company with Organization data.

With those done, an llms.txt is a small, cheap addition. It helps tools that read it, and a person pasting the site into an assistant gets a clean summary. It is most useful for a site with product documentation or an API, where an agent may need a map of the docs.

Do not expect search traffic from it. And do not treat it as an access control: robots.txt decides which bots may crawl, and llms.txt changes nothing about that.

Writing a valid file

llms.txt missing is a low finding: it lowers the health score a little, but a website without the file is not broken. Once a file exists, llms.txt not valid checks two things: that it is Markdown with a # title, and that the pages it links to answer 200, for the pages the crawl also reached.

The usual ways a file goes wrong:

  • It is served as a web page. A single-page app or a catch-all route can answer /llms.txt with the site’s HTML shell and a 200. Serve the file as text/plain or text/markdown, and check with curl -i https://example.com/llms.txt.
  • Its links rot. A page is renamed or removed and the file still links to it. Generate the file at build time from the same list of pages as the sitemap, so it cannot drift.
  • It links to redirects. Use the final, canonical address of each page.
  • It is a copy of the sitemap. A list of every address gives a tool no more than the sitemap does. Pick the pages that explain the business.

A build step can write the file from the site’s own data. A sketch for a static site, where pages is the list the sitemap is built from:

const lines = [
  "# Example",
  "",
  "> Example is invoicing software for logistics companies.",
  "",
  "## Product",
  ...pages
    .filter((page) => page.section === "product")
    .map((page) => `- [${page.title}](${page.url}): ${page.summary}`),
];
await Bun.write("dist/llms.txt", `${lines.join("\n")}\n`);

llms-full.txt and Markdown versions

Some sites also publish /llms-full.txt, a convention outside the llms.txt proposal, or link a Markdown version of a page with <link rel="alternate" type="text/markdown">, which the proposal describes. The same caution applies: no major AI search engine has said it reads them.

Keeping it right after launch

Talewright’s site health, in beta, requests /llms.txt with every weekly crawl and checks that it is Markdown with a title. A link in the file to a page the crawl also reached, from the sitemap or another page, is a finding when that page does not answer 200; a page listed only in llms.txt is not requested, so check those yourself. It also shows whether the site has /llms-full.txt, and lists, for information only, a home page without a Markdown version. None of these count toward the AI discoverability score. A broken link stays a finding until a complete crawl sees the page answer 200 again.

The rules in this guide

Sources

Updated 2026-11-30.

Get early access.

Talewright is invite-only. Tell us about your team and the marketing you want to win.