What should your llms.txt say?

Name your site, sum it up in one sentence and list the pages that matter. You get an llms.txt in the format the spec describes, checked as you type. You can start from a website's sitemap and edit from there.

Optional. Reads the home page and the sitemap, suggests up to 30 pages in sections, and fetches the titles of up to 20 of them, 3 at a time. It replaces whatever is in the form below.

Becomes the H1, the one part the spec requires.

Becomes the blockquote under the title: what the site is, and what a reader needs to know to make sense of the links.

Free text above the sections of links: how to read the pages, what to keep in mind. Paragraphs and lists are fine. Headings are not allowed here, so a line that starts with # stays plain text.

Sections

Each section becomes an H2 heading with a list of links under it.

Optional section

Secondary pages. By the convention in the spec, a reader that needs a shorter context can skip the links under “Optional”.

What it does

  • Writes the file in the order the spec gives. The name as an H1, the summary as a blockquote, your details as free text, then each section as an H2 with its list of links, and Optional last.
  • Keeps the file sound whatever you type. Line breaks, brackets and # marks in a field are written so that they cannot turn into a stray heading or a broken link.
  • Checks as you type. The output goes through the same rules as the llms.txt checker. While something must be fixed, Copy and Download stay switched off.
  • Can start from your site. It reads the home page for the name and the summary, finds the sitemap through robots.txt or at /sitemap.xml, takes up to 30 pages, groups them by the first part of their address and reads the titles of up to 20.

What it cannot see or do

llms.txt is a proposal, published at llmstxt.org. It is not a web standard, and nobody can promise that an AI system will read the file or use it.

It does not control crawling. Listing a page here does not let a crawler in, and leaving one out does not keep it away. robots.txt does that, and the robots.txt tester shows what yours allows.

It cannot choose your pages for you. A sitemap lists every page, while the proposal wants llms.txt small enough to fit in a model's context. Treat what “Start from a website” suggests as a first draft: remove what does not matter and rewrite the notes.

It reads only public pages, and only the HTML the server sends, so a title set later by JavaScript is missed. It uploads nothing: you save the file to your site yourself.

The proposal also suggests a Markdown version of each linked page, at the same address with .md added. This tool does not create those.

Questions

Where do I put the file?

In the top folder of your site, so that it opens at yoursite.com/llms.txt. The spec also allows a file inside a folder, such as /docs/llms.txt, which then describes the pages under that folder.

What belongs in the Optional section?

Links a reader can do without. By the convention in the spec, an agent that needs a shorter context can skip everything under “Optional”, so keep the pages that matter in the other sections.

How long should the file be?

The spec gives no number. It says the file should stay small enough to fit in a model's context, with the detail behind the links. The size shown under the output is a rough guide: characters divided by four.

Should the links point to Markdown files?

The proposal suggests it: a clean Markdown version of a page at the same address with .md added, so that the links lead to content a language model reads easily. It is a suggestion and not a format rule, and links to ordinary pages are valid.