AI search

What is llms.txt?

Short answer

llms.txt is a proposed plain-text file at the root of a site (yoursite.com/llms.txt) that gives AI tools a short, curated map of your most important pages. It's not an official standard yet, but it's cheap to add and a growing number of AI tools read it.

llms.txt, defined

llms.txt is a proposed standard for a plain-text file, written in Markdown, that sits at the root of a website (yoursite.com/llms.txt). Its purpose is to give large language models a short, curated guide to the site: what it is, and which pages are most useful, with a one-line description of each.

It was proposed in September 2024 by Jeremy Howard of Answer.AI. The idea is that AI tools struggle with full web pages full of navigation, scripts and ads, and work better with a clean summary that points to the content that matters.

What an llms.txt file looks like

The proposal defines a simple structure:

  1. An H1 with the name of the site or project (the only required part).
  2. A short summary in a blockquote.
  3. Optional paragraphs with more context.
  4. Sections with H2 headings, each containing a list of links with short descriptions.
  5. An optional section, titled "Optional", for secondary links that can be skipped when space is tight.

A small B2B site might list its product overview, pricing, main documentation pages, key guides and company information. Some sites also publish llms-full.txt, a single file containing the full text of their docs, and offer Markdown versions of individual pages.

How it differs from robots.txt and sitemaps

  • robots.txt tells crawlers what they're allowed to access. It's about permission.
  • XML sitemaps list every URL you want search engines to discover. It's about completeness.
  • llms.txt is a curated reading list for AI tools. It's about guidance and context.

They don't replace each other. You still need robots.txt and a sitemap for search engines, whatever you do with llms.txt.

Does it actually work?

It's early days. The major AI providers (OpenAI, Google, Anthropic, Perplexity) haven't publicly committed to llms.txt yet, so no one can promise it changes what they cite.

But it's already in use. Coding assistants, documentation tools and a growing number of AI agents fetch llms.txt or Markdown docs to understand a site quickly, and adoption keeps spreading. When an AI tool does read it, it gets a clean, accurate summary of your business instead of guessing from your navigation.

So llms.txt is a low-cost, low-risk early bet with real upside. It works best together with the rest of AI visibility: pages that are easy to quote and mentions on the sites AI assistants already trust, as covered in AEO and GEO.

Should you add one?

It depends on your audience:

  • Developer tools, APIs and SaaS with public docs: yes. Developers use AI coding assistants heavily, and a good llms.txt plus Markdown docs can make your product easier to use through them.
  • Company and e-commerce sites: yes. It takes about an hour, does no harm, and keeps your key facts (what you sell, for whom, pricing) in one clean place for AI tools.
  • Large content sites: yes, as a curated index of your best material, alongside strong pages.

How to create a good llms.txt

  1. Start with a clear H1 and a one or two sentence summary of what your company does and for whom.
  2. Group your most important pages into a few sections: product, docs, guides, company.
  3. Write a plain description for each link that says what's on the page.
  4. Keep it short. The point is curation; listing every URL defeats the purpose.
  5. Update it when key pages change.
  6. Serve it as plain text at /llms.txt, and check it's not blocked.

What to do first for AI visibility

llms.txt works best as one part of a wider setup. Alongside it, these have the biggest impact:

  • Make sure AI crawlers can reach your important pages in robots.txt.
  • Make key pages render as clean HTML without depending on JavaScript, which is a core part of technical SEO.
  • Answer the main questions about your product clearly, near the top of the page.
  • Add schema markup for your organization and products.
  • Get mentioned on the third-party sites AI assistants cite for your category.

That's the focus of my AI search visibility work, where an llms.txt file is part of every setup, and the post on how to get cited by ChatGPT walks through it step by step.

Bottom line

llms.txt is a cheap, low-risk addition that helps AI tools understand your site, and its use is growing. It isn't a shortcut on its own: AI systems still choose sources mostly from search indexes and from how often, and how clearly, your brand is described across the web. Do both.

Answered by Federico Martinez, SEO & AI Search Strategist · 3 min read. See all SEO questions

Want this sorted for your site?

Tell me what you're working on and I'll suggest a plan.

Federico Martinez

Related questions