---
title: "What Is an XML Sitemap? Definition & Best Practice — RankOnTime"
url: "https://rankontime.com/glossary/xml-sitemap/"
description: "An XML sitemap lists the URLs you want crawled, with last-modified dates. What belongs in it and what doesn't."
updated: "2026-11-08T12:57:23+00:00"
---

# 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.

On this page

[What XML Sitemap means](https://rankontime.com/glossary/xml-sitemap/#what)[Why it matters for AI search](https://rankontime.com/glossary/xml-sitemap/#why)[See it in action](https://rankontime.com/glossary/xml-sitemap/#demo)[How to get it right](https://rankontime.com/glossary/xml-sitemap/#how)[Common questions](https://rankontime.com/glossary/xml-sitemap/#faq)[Related concepts](https://rankontime.com/glossary/xml-sitemap/#related)  

## 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.

";},i\*140);}); setTimeout(function(){document.getElementById("xso").classList.add("show");},L.length\*140+400);});})();

## 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.

## Related concepts

These come up alongside XML Sitemap constantly.

[robots.txt](https://rankontime.com/glossary/robots-txt/)[Crawl Budget](https://rankontime.com/glossary/crawl-budget/)[Index Bloat](https://rankontime.com/glossary/index-bloat/)[Canonicalization](https://rankontime.com/glossary/canonicalization/)[Technical SEO](https://rankontime.com/services/technical-seo/)[AI Visibility Audit](https://rankontime.com/services/ai-visibility-audit/)

[← PreviousVector Embedding](https://rankontime.com/glossary/vector-embedding/)[Next →YMYL](https://rankontime.com/glossary/ymyl/)

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.
