LLMs.txt Tools
All tools are free to use — no account and no sign-up required.
Back to the generator

LLMs.txt Format & Specification

The llms.txt format is intentionally small: a Markdown file with a heading, a one-line summary and a curated list of links. This reference walks through the full structure, every element, the Markdown usage rules, sensible token limits, hosting requirements and the link relations introduced in the V2 revision.

Published: [FILL IN] · Last modified: [FILL IN]

Overview

llms.txt is a plain-text Markdown file published at the root of a website to help AI tools find and read the pages that matter most. Instead of crawling an entire site, a model can read one small index and then fetch only what it needs. The format was introduced in 2024 by Jeremy Howard and is maintained as a community proposal rather than a formal standard — it is not a W3C or IETF specification, and it is not a search ranking signal.

A revision commonly called llms.txt V2 landed in August 2026. It clarified how pages advertise Markdown versions, added new link relations, and removed the special meaning that the ## Optional section once had. This reference describes the format as it stands after that revision.

Complete file structure

A complete llms.txt file has a fixed opening and then one or more grouped sections. The H1 is the only required element; everything else improves how easily a model can use the file. The annotated template below shows each part in place.

llms.txt
# Your Site Name

<!-- H1: the one required element. Use your site or product name. -->

> One sentence describing what this site offers and who it is for.

<!-- Blockquote: recommended. Gives the model immediate context. -->

<!-- Free-form notes may follow: what the site covers, its main topics,
     and any conventions a reader should know. -->

## Docs

- [Getting started](https://example.com/docs/getting-started): Install and run in five minutes.
- [API reference](https://example.com/docs/api): Every endpoint, parameter and response.

<!-- H2 sections group related links. Use clear, conventional headings. -->

## Company

- [About](https://example.com/about): Who we are and what we build.

## Optional

- [llms-full.txt](https://example.com/llms-full.txt): Full page text in one file.
<!-- V2 removed the special meaning of "Optional". It is now just a section name. -->

The order is deliberate: identity first (the H1), then context (the blockquote and any notes), then the grouped links a reader should consider. Keeping that order makes the file predictable for both humans and machines.

Element reference

Each element has a clear role and a different level of importance. The table below summarises what each one does and whether the spec marks it as required.

ElementStatusPurpose
H1 headingRequiredThe file's first heading; names the site or project. Exactly one per file.
BlockquoteRecommendedA one-line summary directly under the H1 that gives immediate context.
Free-form notesOptionalPlain paragraphs after the summary for extra detail or conventions.
H2 sectionsRecommendedGroup links under topic headings such as Docs, Blog or Company.
LinksRecommendedMarkdown link entries, each with an optional description after a colon.
## OptionalOptionalHistorically marked links a model could skip. V2 removed its special meaning.

Because ## Optional lost its special meaning in V2, treat it as an ordinary section heading. If a link genuinely matters less, you can still place it there for readers, but do not assume tools will treat it differently from any other H2.

Markdown usage rules

The list itself is written in standard Markdown. Each entry is a link with an optional description, and the description is separated from the link by a colon and a space. The title goes inside the square brackets and the destination inside the parentheses.

llms.txt
- [Getting started](https://example.com/docs/getting-started): Install and run in five minutes.

Keep the pattern consistent across the file: - [Title](url): description. Use an unordered list marker (-) for each entry, one link per line. Descriptions are optional, but a link without one gives a model no reason to prefer it over any other URL, so writing a short one is almost always worth the space.

Headings use standard Markdown: # for the single H1 and ## for each section. Do not skip straight to deeper heading levels, and do not use setext-style underlines.

Token limits

llms.txt exists because context windows, while large, are not free to fill. The guidance is to keep the file small: an ideal llms.txt is roughly 500 to 5,000 tokens, and it should stay under about 8,000 tokens. A file far larger than that defeats the purpose of a lightweight index.

Token counts are estimates, not exact measurements. A rough rule of thumb is that English text averages about 1.33 tokens per word — so multiply your word count by roughly 1.33 to estimate the token count. Different models tokenise differently, so use it as a guide rather than a precise figure. If your index is drifting toward the ceiling, cut lower-value links rather than shortening every description.

Hosting requirements

For a file to be found, it has to be served correctly. The requirements are simple but they are not optional.

  • Site root. Publish it at /llms.txt on your domain. In V2 a folder may also carry its own llms.txt for the pages beneath it.
  • HTTP 200. The URL must return a success status, not a redirect chain or a soft 404.
  • Correct content type. Serve it as text/plain or text/markdown.
  • Publicly reachable. No login, no geo-block, no paywall in front of the file.
  • UTF-8 encoding. Plain UTF-8 keeps the Markdown and any non-ASCII characters intact.
  • No JavaScript required. The raw file must be readable without a browser executing scripts.

Markdown versions and link relations

V2 makes it easier for an agent to get clean text instead of rendered HTML. If you publish a Markdown copy of a page, the spec describes two URL patterns for it: page.md (the extension swapped) and page.html.md (the Markdown copy of an HTML page). Both are optional, but they let a model read content without parsing navigation, ads or scripts.

To advertise those copies, a page can add link relations in its <head>. The rel="alternate" relation points at the Markdown version of the same page, while rel="describedby" points at a resource that describes the page — often the relevant llms.txt.

HTML head
<link rel="alternate" type="text/markdown" href="/docs/getting-started.md">

The two relations work together: rel="alternate" says "here is the Markdown version of this page", and rel="describedby" says "here is the index that describes it".

llms.txt vs llms-full.txt

The two files are complementary. llms.txt is a small index of links; llms-full.txt bundles the actual text of your pages into one larger document for deeper context. Many sites publish both and link the full version from a section of the index. For a side-by-side comparison, see the llms.txt vs llms-full.txt guide.

Check your file

Validate your llms.txt before you go live — it scores nine checks and flags broken links. Open the LLMs.txt Validator.

Generate yours free

No account needed. Build an llms.txt from your website, sitemap or a pasted list in seconds. Open the LLMs.txt Generator.

Learn more