AI crawlers and files

How do I write an llms.txt file?

Reviewed 2 November 2026 by the SageRank team

Short answer

Write llms.txt in Markdown: a first-level heading with your site name, a blockquote with a one or two sentence summary, then second-level sections that each list links in the form - [Name](URL): short note. Put the file at your domain root and keep it short and factual.

The format

  • One # heading with the name of the site or project.
  • A blockquote (>) with a short summary of what the site is.
  • Optional paragraphs with key facts.
  • One or more ## sections, each a list of links with a note after a colon.

An example

# Example Co

> Example Co makes invoicing software for small agencies. Plans start at $19 a month with a 14-day free trial.

Example Co is based in Dubai and serves customers worldwide.

## Product
- [Features](https://www.example.com/features): what the software does
- [Pricing](https://www.example.com/pricing): plans and what each includes

## Help
- [Getting started](https://www.example.com/docs/start): set up in ten minutes
- [FAQ](https://www.example.com/faq): common questions

## Company
- [About](https://www.example.com/about): who we are and how to contact us

Tips

  • State facts you can stand behind. Prices, locations and features should match your site.
  • Link to your most useful pages, not every page. Ten to thirty links is plenty.
  • Where you can, link to clean Markdown versions of pages, which are easier for tools to read.
  • Update it when your product or pricing changes.
  • Serve it as plain text or Markdown from /llms.txt.

How SageRank helps

Fill in a form and copy the result with the free llms.txt generator. The free SageRank report then checks that the file exists on your domain.