Technical SEO & Documentation

What Is llms.txt? Format, Example and Limits

BT
BrivTools Editorial
5 min read
Illustration of an llms.txt documentation index

When an llms.txt file helps

An llms.txt file is an optional Markdown index for people and software that need a short path through a website. It makes sense when you maintain a set of stable pages, such as a quickstart, API reference and troubleshooting guide, and know which readers may use the index.

1. What the proposal contains

The version 2 proposal uses a project H1, an optional blockquote summary and optional groups of links under H2 headings. A link can have a short note. A root file covers the site, and a scoped file can cover a section such as /docs/. Where you publish a Markdown version of a page, the proposal describes how to advertise it with an alternate link.

2. Keep the index short

Pick links that answer distinct questions. For example, link directly to the authentication guide when a reader needs API keys, and link to error handling when a request fails. Keep detailed instructions on the linked pages. The savings from using an index depend on what the reader fetches and how it processes those pages.

3. Compare robots.txt, XML sitemaps and llms.txt

  • robots.txt expresses crawl preferences to cooperating crawlers.
  • sitemap.xml lists canonical URLs to help search engines discover pages.
  • llms.txt groups a curated set of public links for readers that choose to use it.

4. Example Markdown file

# Example API

> Documentation for the Example API.

## Getting started

- [Quickstart](https://example.com/docs/quickstart.md): Make your first request.
- [Authentication](https://example.com/docs/auth.md): Create and rotate API keys.

## Optional

- [Release notes](https://example.com/docs/releases.md)

Replace the example domain with working public URLs. Label each section for the reader's task, and use the optional section for useful background that can be skipped.

5. What llms-full.txt is used for

Some publishers also serve a longer text export containing the full documentation or selected excerpts. BrivTools serves its extended tool reference at /llms-full.txt. A longer export takes more maintenance, so keep it synchronized with the public pages it describes.

6. Google Search and other readers

Google's AI features guidance explains how indexed, snippet-eligible pages can appear in its AI features. Google also describes its position on llms.txt in the June 2026 documentation update. Check a particular agent's documentation if support for this file matters to your deployment.

7. Publish and verify the URL

  1. Choose which public pages belong in the index and check that the links resolve.
  2. Draft the file by hand or use the LLMs.txt Generator to edit and export it.
  3. Serve it as text or Markdown at the intended URL. A Next.js project can use public/llms.txt for the root file.
  4. Fetch the public URL after deploying and open a few links. Update the file when a linked page moves or its purpose changes.

Check that the index still leads to useful documents

After publishing, request /llms.txt and open the highest-priority links without signing in. Check that they return the expected document, resolve to the current version and contain no internal preview or draft URLs. Recheck the links when you move documentation. Measure direct usage where your logs make it observable. Google Search does not require llms.txt for AI features.

The original llms.txt proposal. Technical SEO for Next.js App Router.

Frequently asked questions

Does llms.txt improve Google Search rankings?+
Direct Answer Summary:Google says an llms.txt file has no positive or negative effect on Search visibility or rankings.

Google's documentation describes normal Search eligibility for its AI features. Other tools decide independently whether to use the file.

Can I publish llms.txt under /docs/ instead of the root?+
Direct Answer Summary:Yes. Version 2 of the proposal supports an index scoped to a subpath such as /docs/llms.txt.

A root file covers the whole site. A subpath file covers pages below that path. Follow the discovery rules of the reader you are targeting.

Can llms.txt control crawler access?+
Direct Answer Summary:Use robots.txt to express crawl preferences and authentication to protect private content.

An llms.txt index lists selected public pages. Omitting a link from the list gives a crawler no access-control instruction.

Interactive Client-Side Tool

Build an llms.txt file

Import links, edit their titles and descriptions, and download the Markdown.

Profit Margin Toggles
S-Curve Ramp Delays
100% Client-Side Privacy
Open GeneratorNo signup required • Instant calculations

Learn the workflow