What Is an XML Sitemap?

In one sentence

An XML sitemap is a file listing the URLs you want crawlers to know about, usually with a last-modified date for each.

What XML Sitemap means

It aids discovery, particularly on large sites or where internal linking is weak. It doesn't guarantee indexing — it's a suggestion, not an instruction.

The lastmod field matters more than most teams realise: crawlers use it to prioritise re-fetching, so an accurate one speeds up how quickly changes register.

Why it matters for AI search

For AI search, discovery speed affects how current the retrievable version of your content is. A page crawled quarterly carries quarterly-old facts.

Sitemaps also expose problems: a large gap between submitted and indexed URLs is one of the clearest index bloat signals available.

See it in action

What a sitemap entry should contain.

A well-formed sitemap entry

sitemap.xml
// click generate

Accurate lastmod is the field that earns trust.

Sites that update lastmod on every page nightly get their sitemap dates discounted. Reflecting genuine changes is what makes it useful.

How to get it right

Sitemap best practice

  • Include only canonical, indexable URLs — no redirects, noindex pages or parameters
  • Keep lastmod accurate and tied to real content changes
  • Split into multiple sitemaps with an index file above 50,000 URLs
  • Reference it from robots.txt and submit it in Search Console and Bing Webmaster Tools
  • Compare submitted versus indexed counts regularly; a large gap indicates a problem

Common questions

Does a sitemap guarantee indexing?

No. It aids discovery but engines decide what to index. A URL in your sitemap that stays unindexed usually indicates a quality or duplication issue rather than a discovery one.

Should noindex pages be in the sitemap?

No. Including pages you don't want indexed sends contradictory signals and wastes crawl attention.

How often should lastmod update?

Whenever the page's content genuinely changes. Updating it site-wide on a schedule makes the field meaningless and it gets discounted.

These come up alongside XML Sitemap constantly.

Free 12-point check

Send Ron your site

Two fields. We’ll crawl your site as GPTBot, ClaudeBot and PerplexityBot, benchmark a sample of your category’s prompts, and send you what we find.

  • What each AI crawler actually receives from your site
  • Whether models resolve your brand as a real entity
  • A sample of category prompts and who gets cited
  • The three fixes we’d prioritise first

No commitment, no sales sequence. If we’re not a fit, we’ll say so.

We’ll pull your favicon so you know we found the right site.

We reply from a real address. No sequence, no newsletter.