llms.txt: what it is and how to write one.
llms.txt is a markdown file at the root of your site that tells AI tools what you do and which pages matter. Here is the format, a copy-ready template and the mistakes to avoid.
llms.txt is a plain markdown file served at yoursite.com/llms.txt that gives AI tools a short summary of your site and a curated list of its most important pages. It starts with an H1 of your name, a one-line summary in a blockquote, then sections of links with a short note each. It takes ten minutes to write and costs nothing to serve.
What llms.txt is
llms.txt is a proposed standard, introduced by Jeremy Howard in 2024, for giving language models a clean, compact map of a website. Where robots.txt says what crawlers may fetch and sitemap.xml lists every URL, llms.txt says what matters, in the format models read best: markdown.
It lives at the root: https://yoursite.com/llms.txt. Some sites also publish llms-full.txt with the full text of their docs.
The format
- An H1 with the name of the site or product. This is the only required part.
- A blockquote with a short summary: what it is, who it is for, what it costs.
- Optional paragraphs with anything a model should know.
- H2 sections of links, each as
- [Title](url): note. - An optional section titled
## Optionalfor links a model can skip when short on context.
A template you can copy
llms.txtcopy# Acme Invoices
> Invoicing for freelancers who bill clients in several
> currencies. Web and Mac. From $12 a month, 14-day free trial.
Acme sends invoices, tracks payments and handles VAT for
freelancers in the EU and US.
## Product
- [Pricing](https://acme.app/pricing): plans, limits and what is included
- [Features](https://acme.app/features): invoicing, reminders, multi-currency
- [Acme vs Harvest](https://acme.app/vs/harvest): honest comparison
## Docs
- [Getting started](https://acme.app/docs/start): first invoice in 5 minutes
- [API](https://acme.app/docs/api): REST API reference
## Optional
- [Changelog](https://acme.app/changelog)
- [Blog](https://acme.app/blog)
Footnote’s own file is live at usefootnote.app/llms.txt, and the fix kit writes yours from your sitemap and page titles.
Common mistakes
- Serving it as HTML. It should be plain text or markdown, not a page inside your site template.
- Dumping every URL. That is what the sitemap is for. Keep llms.txt to the 10 to 30 pages that answer buyer questions.
- Marketing copy in the summary. “The future of finance” tells a model nothing. Say what it is, who it is for and the price.
- Blocking it in robots.txt. Check that the AI crawlers are allowed to fetch it.
- Letting it go stale. Update it when you change pricing or add a key page.
Does it actually help?
Honestly: it is cheap, harmless and increasingly read by AI tools and coding agents, but it is not a switch that makes ChatGPT cite you. Treat it as part of a set with crawler access, server-rendered pages, schema and answer-first content. The free audit checks all of them together.