Site root files · AI discovery · Updated 2026

llms.txt vs sitemap.xml: Why AI Engines Need a Different File

Your sitemap.xml is a complete inventory for search engines. Your llms.txt is a curated recommendation for AI agents. Here's why one can't do the other's job.

What sitemap.xml Does

A sitemap is an XML file that lists every URL you want search engines to index — product pages, articles, category pages, sometimes thousands of entries — with metadata like last-modified dates and change frequency. Googlebot and Bingbot read it to discover pages they might otherwise miss.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/docs/getting-started</loc>
    <lastmod>2026-08-01</lastmod>
  </url>
  <!-- ...every other URL... -->
</urlset>

Its strengths: complete, machine-readable, and the industry standard for indexing. Its weakness for AI: it's a flat list. Nothing says which pages matter, what each one is about, or what order an agent should read them in.

What llms.txt Does

An llms.txt file is a short Markdown document — typically 5 to 15 curated links — that tells an AI agent exactly what your site is and which pages are worth reading:

# Example Site

> A concise description of what the site is and who it's for.

## Documentation

- [Getting Started](https://example.com/docs/getting-started)
- [API Reference](https://example.com/docs/api)

## Blog

- [How We Built X](https://example.com/blog/how-we-built-x)

It's a curation file. The agent gets your H1, a one-line summary, and a prioritized list in seconds — so it fetches your best pages instead of crawling blindly or landing on a tag archive.

The Comparison

sitemap.xmlllms.txt
FormatXMLMarkdown
AudienceSearch crawlers (Googlebot, Bingbot)AI engines (ChatGPT, Claude, Perplexity, Gemini)
ScopeEvery URL5–15 curated pages
PrioritiesNoYes (order + H2 groups)
Human-readable?NoYes
Effect on Google rankingsYes (indexing)None (Google doesn't read it)

Why You Need Both

Different consumers, different jobs. Your sitemap keeps Google's index complete; your llms.txt makes AI answers about your site accurate and grounded in your best content. The two also support each other operationally: many teams generate llms.txt from the sitemap automatically, and our generator does exactly that — paste your sitemap URL and get a curated, spec-compliant llms.txt in seconds.

The realistic caveat: AI crawler adoption of llms.txt is still ramping up, and Google has explicitly said the file does not affect its rankings. Treat llms.txt as an AI-visibility signal, not a ranking factor — and keep your sitemap healthy for the search side of the equation.

Quick Checklist