How to create an llms.txt file (with an example)

Published

An llms.txt file is a plain-text file at yoursite.com/llms.txt that gives AI assistants a clean summary of your site instead of making them parse your HTML — it's an emerging community convention, not an official or enforced web standard. The fastest way to make one: our llms.txt generator reads your homepage and sitemap and hands you an editable draft in one pass, free.

Generate yours free →

No AI company has confirmed it reads llms.txt files, and there's no adoption number worth quoting — it's a bet, not a guarantee. But it's a cheap one: the file is a few lines of plain text, and if an assistant does check for it, you've given it exactly the summary and links you want it to have instead of whatever it would've scraped on its own.

The basic format

The spec-shaped template our generator produces looks like this:

  • # Site Name — an H1 with your site's name
  • a blank line, then > one-line summary — a one-sentence blockquote describing the site
  • then only the sections that have links, in this order: ## Docs, ## Product, ## Blog, ## Optional
  • each link as its own line: - [Title](url): description

Here's what a generated file actually looks like for a small SaaS site:

# Acme Scheduling

> Acme Scheduling helps service businesses book and manage appointments online.

## Docs
- [Getting started guide](https://acme.example/docs/getting-started): Getting started guide — part of Acme Scheduling.

## Product
- [Pricing](https://acme.example/pricing): Pricing — part of Acme Scheduling.

How to build one without writing it by hand

Give the llms.txt generator your homepage URL. It fetches your homepage and your /sitemap.xml, pulls links (sitemap first, same-origin links on your homepage as a fallback if there's no sitemap), and caps the total at 30 links so the file stays short.

It then sorts every link into a section automatically, by matching the URL path against a set of rules:

SectionMatches a path containing
Docsdocs, doc, guide, guides, help, faq, support, or knowledge
Blogblog, news, posts, or articles
Productproduct, products, pricing, features, plans, shop, store, waitlist, signup, sign-up, team-builder, calculator, or app
Optionalanything that doesn't match the above

You get back an editable draft, not a finished file you have to trust blindly — check it over, then copy it to yoursite.com/llms.txt. If you want to check whether your site is readable to AI crawlers in general first, run it through the AI visibility checker — one of its 14 checks is specifically whether /llms.txt exists, and this guide walks through all 14.

There's no single required format

Our own live file at theaiagentcompanycompany.com/llms.txt is a real-world example of a different valid shape than the generator's template: instead of a one-line > summary blockquote, it opens with a plain one-paragraph summary, then uses ## Pricing, ## Key pages, and ## Guides as its section headings — none of which are in the generator's four-section list.

That's not an error on either side. Because llms.txt is an emerging convention and not an enforced standard, there's no single body that checks files for compliance. The generator's template is a sensible, spec-shaped default to start from; what you actually publish can look however best represents your site, as long as it's a short, plain-text, readable summary with links.

Questions

Is llms.txt an official standard?

No. It's an emerging community convention for giving AI assistants a plain-text summary of a site, not an official or enforced web standard — nobody has to support or check it.

Where do I put my llms.txt file?

At the root of your domain, e.g. yoursite.com/llms.txt, as plain text.

Do I have to use the exact template format?

No. Our own generator produces a spec-shaped template (H1, blockquote summary, Docs/Product/Blog/Optional sections), but our own live llms.txt file uses a different valid shape — a plain-paragraph summary and custom section names. What matters is a short, readable, plain-text summary with links.

How does the generator decide which section a link goes in?

By matching the link's URL path against a set of keyword rules — for example, a path containing "pricing" or "waitlist" is categorized as Product, and a path containing "blog" or "news" is categorized as Blog. Anything that doesn't match goes into Optional.

Does ChatGPT or another AI actually read llms.txt files?

No AI company has publicly confirmed it reads llms.txt files, and there's no adoption data to cite either way. Publishing one is a low-cost bet, not a guaranteed visibility boost.