ExplainedShare

What is llms.txt, the LLM SEO file, and how to create one for your website

A Markdown file at the root of your site points AI agents to the pages that matter, but it is not yet a formal standard, and AI systems are not guaranteed to read it.

By MOBAEO Newsroom··3 min read

Follow
A creatively folded world map displayed in soft lighting, perfect for travel-related themes.
Photo: Marina Leonova/Pexels

llms.txt is a Markdown file a website publishes to steer large language models and AI agents toward the content that matters. It sits at the root of the site (/llms.txt) or at any path within it, such as /docs/llms.txt, and contains a summary, guidance and links to clean versions of the site's pages.

The proposal, first written in 2024, has reached version 2 on the official llms.txt site. The starting point is practical: HTML pages wrap information in navigation, ads and JavaScript, and turning them into clean text is hard and imprecise. Because model context windows are still too small for most entire websites, and every wasted token costs time and money, agents perform better when concise information is gathered in a single place.

How the file is organized

The sections follow a fixed order: an H1 heading with the name of the project or site (the only required part), a blockquote with a short summary, paragraphs or lists with details and, finally, sections with H2 headings that group lists of links. Each item has a link in the format [name](url), optionally followed by a colon and a note. By convention, a section called "Optional" holds secondary links the agent can skip when it needs a smaller context.

The proposal also recommends that each page offer a Markdown version at the same address with .md added at the end (page.html.md or page.md), and that the site point to these files using the alternate and describedby link relations, either in the HTML or in an HTTP header configured on the server or the CDN. When more than one llms.txt applies, the most specific one wins. The file works alongside existing standards: the sitemap lists every page for search engines, while llms.txt offers a curated selection for models, complementing robots.txt.

According to version 2, thousands of sites already publish the file, documentation platforms generate one automatically and Chrome's Lighthouse checks for it in its agentic browsing audits. OpenAI, Anthropic and Gemini publish llms.txt files for their developer documentation. The heaviest use is in software documentation, but the format also works for a company presenting its structure and its policies.

Why it matters for a brand

In a guide updated on April 8, 2026, GitBook says the file helps point AI crawlers to canonical pages and reduces the chance that outdated or duplicate pages get absorbed. The company says AI agents already account for more than 40% of documentation readers, and notes that when a buyer asks an AI how a product works, documentation is often the raw material for the answer.

GitBook itself acknowledges that adoption is uneven and that AI crawlers do not all behave the same way. The Terminalfour documentation makes the same point: llms.txt is an emerging convention, with no specification ratified by bodies such as the W3C or the IETF, and most major LLM providers do not publicly commit to reading it. Its advice is to treat the file as advisory metadata, not as a binding rule.

What Google says about AI features

In its guide to AI features in Search, Google Search Central states that to appear as a supporting link in AI Overviews or AI Mode, a page must be indexed and eligible to be shown with a snippet in Search, with no additional technical requirement. The guide does not mention llms.txt and recommends SEO fundamentals, such as allowing crawling in robots.txt and keeping structured data consistent with the visible text.

For brand teams, llms.txt is a low-cost step to guide agents to the right pages, such as policies and product documentation. It does not replace SEO, which remains the path Google points to for AI features in Search, and its impact depends on each system choosing to read the file.

Key questions

What is llms.txt, the file for LLM SEO?

It is a Markdown file published on a website to give large language models and AI agents a summary of its content and links to clean versions of its pages. It gathers the information agents need in a single place.

Does llms.txt help with Google SEO?

Google's guide to AI Overviews and AI Mode does not mention llms.txt and says there is no additional technical requirement beyond a page being indexed and eligible to appear with a snippet. Google's recommendation is to follow SEO fundamentals.

How do I create an llms.txt file for my website?

The file starts with an H1 heading with the site's name, the only required part, followed by a summary in a blockquote, details in paragraphs or lists, and H2 sections with lists of links in the format [name](url). Some documentation platforms, such as GitBook, generate the file automatically.

Where should the llms.txt file go on my site?

At the root, at /llms.txt, or at any path within the site, such as /docs/llms.txt. Each file covers the pages under its path, and when more than one applies, the most specific one wins.

Does llms.txt replace robots.txt or the sitemap?

No. The sitemap lists every page for search engines, while llms.txt offers a curated selection for models and can complement robots.txt, which remains the file for access control.

Do AI systems read the llms.txt file?

Adoption is uneven, and AI crawlers do not all behave the same way. Most major LLM providers do not publicly commit to reading the file.

Is llms.txt an official standard?

No. It is an emerging convention, with no specification ratified by bodies such as the W3C or the IETF.

Who already uses llms.txt?

Thousands of sites publish the file, including OpenAI, Anthropic and Gemini for their developer documentation. Chrome's Lighthouse checks for it in its agentic browsing audits.

What is the Optional section in llms.txt for?

By convention, it holds secondary links the agent can skip when it needs a smaller context.

Sources: Site oficial do llms.txt, Google Search Central, GitBook, Terminalfour.