Comparison

llms.txt vs sitemap.xml: lists of pages for different readers

Shaheer Malik
Shaheer Malik
Founder, WebValet
3 min readUpdated

The short answer

sitemap.xml is a machine-readable list of every page you want search engines to find, supported by Google and Bing. llms.txt is a short, hand-picked Markdown guide to your most useful pages, written for AI tools. A sitemap aims for completeness. llms.txt aims for clarity. Keep a sitemap on every site and add llms.txt as optional extra.

  • sitemap.xml helps search engines discover all your indexable URLs.
  • llms.txt is a curated summary with short notes, not a full list.
  • Search engines support sitemaps officially; AI platform support for llms.txt is unconfirmed.
  • AI answers that rely on search indexes still benefit from a healthy sitemap.

What does sitemap.xml do?

A sitemap is an XML file listing the URLs you want indexed. XML is a structured text format that machines read easily.

Search engines use it to discover pages, especially new or deeply linked ones. You can submit it in Google Search Console and Bing Webmaster Tools.

Each entry can include a lastmod date, the last time the page changed meaningfully. Google has said it ignores the priority and changefreq fields.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/implants</loc>
    <lastmod>2026-10-01</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/emergency</loc>
    <lastmod>2026-09-14</lastmod>
  </url>
</urlset>

What does llms.txt do differently?

llms.txt is a proposed standard from llmstxt.org. It is a Markdown file at /llms.txt.

It does not try to list everything. It gives a name, a one-line summary, and grouped links with a short note on each. A model can then grasp what you offer from one small file.

Think of a sitemap as the full phone book. llms.txt is the short list of numbers you would hand a new colleague.

Because a person writes it, llms.txt can also add context a sitemap cannot. For example, it can note which areas you serve or which services you do not offer.

llms.txt vs sitemap.xml side by side

Both files list pages. They differ in who reads them, how many pages they include, and how much context they give.

sitemap.xmlllms.txt
Main readerSearch engine crawlersAI tools and agents
FormatXMLMarkdown
CoverageEvery indexable pageA curated selection
Context per pageURL and optional lastmod dateLink plus a short human-written note
Official supportGoogle, Bing and other search enginesProposed; major AI platforms unconfirmed
UpdatesOften generated automatically by your CMSUsually written and updated by hand
Where to declare itSitemap line in robots.txt, or Search ConsoleServed at /llms.txt

How to use sitemap.xml and llms.txt together

The two files work well side by side. Here is a simple routine.

  1. 1

    Check your sitemap is live

    Open yoursite.com/sitemap.xml or your CMS sitemap index. Make sure it lists only live, indexable pages.

  2. 2

    Declare it

    Add a Sitemap line to robots.txt and submit the sitemap in Search Console and Bing Webmaster Tools.

  3. 3

    Pick your key pages

    From the sitemap, choose the 10 to 30 pages that best explain your business.

  4. 4

    Write llms.txt

    Add your H1, a blockquote summary and H2 sections linking those pages with one-line notes.

  5. 5

    Review both monthly

    Remove dead links, update lastmod dates honestly, and keep llms.txt facts in line with your site.

Which one do you need?

You need a sitemap if you want search engines to find all your pages reliably. That matters for AI too. Google AI Overviews and Microsoft Copilot draw on search indexes. ChatGPT search uses its own index plus search partners.

llms.txt is optional. It is most useful for sites with lots of content, such as documentation, where a short guide helps.

A broken sitemap is a real problem; a missing llms.txt is, at worst, a missed small opportunity.

The verdict: sitemap for coverage, llms.txt for clarity

sitemap.xml is proven infrastructure that search engines rely on. Keep it accurate and generated automatically where you can.

llms.txt is a light, hopeful addition. Write it if you can keep it true, and do not expect it to change AI answers by itself.

If you only have an hour, spend it on your sitemap and robots.txt first. Then write llms.txt with whatever time is left.

Questions people ask

Can llms.txt replace my sitemap?

No. Search engines do not use llms.txt for discovery. Keep your sitemap, and treat llms.txt as an extra layer.

Should llms.txt list every page in my sitemap?

Usually not. The point is a short, readable guide. A variant called llms-full.txt is sometimes used for full content, but support is also unconfirmed.

Does a sitemap help me appear in AI answers?

Indirectly. It helps search engines find and index your pages. Several AI tools draw on search indexes, so being indexed is a basic requirement.

Where should llms.txt and sitemap.xml live?

Both usually sit at your site root, such as example.com/llms.txt and example.com/sitemap.xml. Large sites often use a sitemap index that points to several sitemaps. List it with a Sitemap line in robots.txt.

Put it to work

Check it, track it, or have it done

No trial and no lock-in. Start free, then choose.

  1. 01 · Start here

    Free check

    $0no signup

    See how ready your site is for Google and AI crawlers. About 20 seconds.

    Run a free check
  2. 02 · Track it weekly

    Pro

    $19/month · or $190/year

    25 buyer prompts on ChatGPT, Gemini and Perplexity, against 3 competitors. No trial, cancel anytime.

    Get Pro
  3. 03 · Done for you

    Hire Team Shaheer Malik

    $249/month · Pro included

    Shaheer's team does your SEO and GEO every month: pages, citations, listings and fixes.

    Schedule a call