How to write an llms.txt file, step by step

In short

A title, one summary line, then short lists of links. Here is a template you can copy.

An llms.txt file is a markdown file at the root of your site. It has a title, a one-line summary, and lists of links to your most useful pages, each with a short note.

What is the structure?

  • One # Title line with your site or company name.
  • One > line that says what you do, in a sentence.
  • ## Section headings, each followed by a list of links.
  • An optional ## Optional section for pages that can be skipped.

What goes in the links?

Each line is a link and a short description: - [Pricing](https://example.com/pricing/): plans and what each includes. Pick the 10 to 30 pages a newcomer needs. Leave out login pages, carts and thin pages.

Where does it go?

At /llms.txt, served as plain text. Some sites also publish /llms-full.txt with the full text of the key pages.

Will AI tools read it?

Some do, many do not yet. It is a proposal, not a standard, and the large AI companies have not committed to it. It costs little to add, so treat it as a helpful extra, not the core of your plan.

Free downloads

Four PDFs to put this into practice

The AEO checklist, the AI crawler cheat sheet, an llms.txt template and writing guidelines.

Get the PDFs

Tarek Riman
Tarek Riman is the founder of Riman Agency and UseAEOMCP. He works on SEO, AEO and AI search, and teaches digital marketing and AI at Canadian universities. About

All guides

Can AI read your site? Check it for free.

Enter your domain. In a few seconds you see what AI crawlers can read, and what to fix first.