Blog · learn · 12 November 2026 · 2 min read

What is llms.txt, and does your company need one?

By Anyungu Wanyungu

In short

llms.txt is a short Markdown file at the root of a website that lists its most useful pages for AI tools. Support is still uneven, but it's cheap to add, and paired with Markdown versions of your pages it makes your docs easier for AI to read correctly.

AI assistants now answer many of the questions people used to search for. When someone asks one about your product, it answers from whatever it can find and read. llms.txt is a simple way to point it at the right pages. DocSpade creates one for every documentation site it publishes, like ours.

What it is

llms.txt is a plain text file at the root of a website, for example example.com/llms.txt. It’s written in Markdown and lists the site’s most useful pages, with a link to each. It was proposed in 2024 as an open standard, in the same spirit as robots.txt and sitemap.xml.

A short one looks like this:

# Acme Docs

> Guides and reference for the Acme payments platform.

## Get started

- [Create an account](https://docs.acme.com/create-an-account.md)
- [Make your first payment](https://docs.acme.com/first-payment.md)

The links usually point to Markdown versions of each page. Markdown has no menus, scripts or ads, so an AI tool gets the content and nothing else.

How it differs from a sitemap

sitemap.xmlllms.txt
Read bySearch enginesAI tools
ListsEvery pageThe pages worth reading
FormatXMLMarkdown, readable by people too

Do AI tools actually use it?

Some do, many don’t yet. Several AI coding assistants and agents read llms.txt, and many documentation platforms now publish one. Major search engines haven’t said they rely on it.

So treat it as cheap insurance, not a ranking trick. It takes little effort, does no harm, and helps the tools that already use it.

What matters more than the file

llms.txt only points to pages. If the pages are vague, the AI will still give vague answers. Three things help more:

  • Markdown versions of your pages, so tools get clean text.
  • Clear, direct writing: one topic per page, descriptive headings, the answer near the top.
  • Facts in plain sight. If your docs don’t say it, AI will guess. Here’s what that looks like.

How to add one

You can write the file by hand and update it when pages change. That works for a small site, but it’s easy to forget.

In DocSpade: every published site gets an llms.txt and a Markdown version of each page automatically, grouped the way your navigation is. AI tools that ask for Markdown get it, while people still see the normal page.

Written with the help of AI and reviewed by the author.