📄

llms.txt: The Complete Guide

llms.txt is a Markdown file at your domain root that gives language models a curated map of your most important pages. Here is how it works and how to build one.

llms.txt is a plain text file, written in Markdown and placed at the root of your domain at /llms.txt, that hands large language models a short, curated map of the pages you most want them to read and understand.

It is a proposal, not a standard enforced by anyone. Jeremy Howard of Answer.AI suggested it in 2024 as a way to help AI assistants find the signal on a site without wading through navigation menus, cookie banners, and scripts. The format is deliberately simple so that both a model and a person can read it in seconds.

What is llms.txt, exactly?

The file is a Markdown document with a loose but recognizable structure. It opens with an H1 that names your site or project, followed by a short blockquote summary. After that you list your key pages as Markdown links, usually grouped under H2 headings like Docs, Guides, or Products. Each link can carry a one-line note explaining what the page covers.

Because it is Markdown, the file is readable on its own. A model that fetches /llms.txt gets a clean table of contents instead of raw HTML. Some sites also publish companion files such as llms-full.txt, which inlines the full text of the linked pages into one document.

Why was llms.txt proposed?

Language models work with a limited context window. Feeding them a full HTML page means spending that budget on markup, menus, and boilerplate that have nothing to do with the answer. A curated file fixes the order of priority: here are the pages that matter, in plain text, described in your own words.

The convention also gives site owners a small amount of editorial control. Instead of hoping a model guesses which pages represent you best, you state it. For documentation sites, product catalogs, and knowledge bases, that control is the whole appeal.

How is it different from robots.txt and sitemap.xml?

These three files are often confused, but they do different jobs.

  • robots.txt tells crawlers what they are allowed to access. It is about permission and exclusion.
  • sitemap.xml lists every URL you want indexed. It is about completeness, built for search engine crawlers.
  • llms.txt curates a small set of your best pages for language models. It is about priority and readability, not coverage.

A sitemap tries to list everything. An llms.txt file does the opposite: it leaves most pages out on purpose and highlights the few that explain your site.

What goes inside an llms.txt file?

A workable file needs only a few parts:

  • An H1 with the site or project name.
  • A blockquote with a one or two sentence summary of what the site offers.
  • Optional context paragraphs with anything a model should know.
  • H2 sections grouping links by type, each link pointing to a clean page with a short description.

Keep the descriptions honest and specific. The file is a recommendation to a reader, not a place for keyword stuffing, which models tend to ignore anyway.

How do you create and publish one?

You can write the file by hand in any text editor, or generate a first draft from your existing sitemap and then trim it. On firstseotools.com we offer a free llms.txt generator at /free-tools/llms-txt-generator that builds a starting structure you can edit.

Once the file is ready, upload it to the root of your domain so it resolves at https://yourdomain.com/llms.txt. Serve it as plain text (text/plain or text/markdown) and keep the links absolute. Review it whenever your important pages change, the same way you would maintain a sitemap.

Does llms.txt actually work yet?

Here is the honest part. llms.txt is an emerging convention, not a confirmed ranking factor. As of now, the major AI platforms have not committed to reading it as part of how they answer questions, and support across crawlers is inconsistent. Publishing the file will not, on its own, get you cited by an assistant.

What it does offer is low cost and no downside. The file is small, easy to maintain, and harmless if ignored. If adoption grows, early files are already in place. In the meantime, the exercise of deciding which pages best represent your site is useful on its own, and it pairs naturally with the fundamentals that already help AI systems: clean HTML, clear structure, and content that answers real questions.

Treat llms.txt as a small, sensible bet rather than a shortcut. Publish it, keep it current, and judge it by the same standard as any other technical signal: does it describe your site accurately to a machine reading it for the first time?

FAQ

Where should the llms.txt file go?

At the root of your domain, so it resolves at https://yourdomain.com/llms.txt, and it should be served as plain text.

Is llms.txt a ranking factor?

No. It is an emerging convention, not a confirmed signal. Major AI platforms have not committed to using it, so treat it as a low-cost bet rather than a guarantee.

How is llms.txt different from a sitemap?

A sitemap lists every URL for search crawlers. llms.txt curates a small set of your best pages for language models, favoring priority and readability over completeness.

← Blog