XML sitemap

nounalso called sitemap or sitemap.xml

Definition

An XML sitemap is a machine-readable file listing a site’s canonical URLs, optionally with last-modified dates, so search engines can discover pages and prioritize recrawling the ones that changed — a discovery aid, not a ranking factor or a guarantee of indexing.

Updated 5 min read5 cited sources

On this page8 sections

Why it matters for founders and small teams

A new site with few backlinks is exactly the case where search engines won’t find every page by following links, and a sitemap is how you hand them the list. It takes an afternoon at most — many CMSs generate one automatically — and its lastmod dates are now one of the main signals Bing uses to decide what to recrawl for its AI-powered answers.

What goes in an XML sitemap?#

An XML sitemap should list every canonical, indexable URL you want in search — each in a <loc> tag, with an optional <lastmod> date of its last significant change — and nothing else: no redirects, no noindex pages and no parameter duplicates.

xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/pricing</loc>
<lastmod>2026-09-18T09:30:00+00:00</lastmod>
</url>
<url>
<loc>https://www.example.com/blog/launch-checklist</loc>
<lastmod>2026-09-02T14:05:00+00:00</lastmod>
</url>
</urlset>
  • Absolute, canonical URLs. Google crawls URLs “exactly as listed” and treats sitemap inclusion as a weak canonical signal, so list the version your canonical tag points to.
  • lastmod only when it’s true. Google uses it only when it’s “consistently and verifiably” accurate, and means the last significant change — main text, structured data or links, not a footer tweak.
  • Skip priority and changefreq. Google and Bing both say they ignore them.
  • Point engines to it with a Sitemap: line in robots.txt, and submit it in Google Search Console and Bing Webmaster Tools.
robots.txt
# Any crawler that reads robots.txt can find the sitemap here
Sitemap: https://www.example.com/sitemap.xml

How big can an XML sitemap be?#

An XML sitemap can hold up to 50,000 URLs or 50 MB uncompressed, whichever comes first; larger sites split their URLs across several files and list them in a sitemap index, which can reference up to 50,000 child sitemaps.

xml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.example.com/sitemap-pages.xml</loc>
<lastmod>2026-09-18T09:30:00+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://www.example.com/sitemap-blog.xml</loc>
<lastmod>2026-09-20T07:00:00+00:00</lastmod>
</sitemap>
</sitemapindex>

Splitting by section — pages, blog, docs, products — pays off even below the limits. Search Console’s Page indexing report can be filtered by submitted sitemap, so a blog sitemap with half its URLs unindexed points you straight at the problem.

Placement matters too: a sitemap only covers URLs under its own directory, which is why Google recommends putting it at the site root. Bing’s 2025 guidance adds that one index can reference 50,000 child sitemaps, enough for 2.5 billion URLs — a ceiling no small site will meet.

Rankbox benchmark

The Sitemap Spec Sheet

The published limits and rules that decide whether engines can use your sitemap, drawn from Google’s and Bing’s documentation and the sitemaps.org protocol. Check each sitemap against every row.

50,000

URLs per sitemap file

The cap in the sitemaps.org protocol, applied by Google and Bing. Split larger sets and list the files in a sitemap index.

50 MB

File size

Google’s limit, measured uncompressed.

50,000

Child sitemaps per index file

The ceiling in the sitemaps.org protocol and Bing’s documentation.

ISO 8601

lastmod format

W3C Datetime, a profile of ISO 8601. Bing asks for the date and time with a time zone, such as 2026-09-18T09:30:00+00:00.

Ignored

priority and changefreq

Ignored by both Google and Bing. Leaving them out changes nothing.

~500 pages

Small-site threshold

Below roughly this size, with thorough internal linking, Google says you might not need a sitemap at all.

How to read it: Read it as pass or fail per row. The size limits rarely bite a small site; the rows that do are the last three — honest lastmod values in the right format, no reliance on priority, and keeping a sitemap even where Google calls it optional, because Bing leans on it to schedule recrawls.

Free to use and adapt. If you cite it, link to rankbox.xyz/glossary/xml-sitemap.

Do you need an XML sitemap?#

Google says a well-linked site of about 500 pages or fewer may not need an XML sitemap, but new sites with few external links, large sites and media-heavy sites benefit — and because a sitemap costs almost nothing, most sites should keep one anyway.

Your siteSitemap?Why
New, with few backlinksYesCrawlers discover pages through links from pages they already know, and you have few of those
Large, or with pages that are hard to reach by linksYesSize is the first reason Google gives
Heavy on video, images or newsYesMedia and news sitemaps carry extra detail
About 500 pages or fewer, fully linkedOptional for GoogleStill useful: Bing relies on lastmod to prioritize recrawls

Among AI search engines, Bing is the most explicit about XML sitemaps: it calls lastmod a key signal for deciding what to recrawl for AI-powered search. Google uses sitemaps for the index behind AI Overviews and Gemini, while OpenAI, Anthropic and Perplexity haven’t said whether their crawlers read them.

Bing — Copilot, and ChatGPT's Bing pathHelps
Bing’s July 2025 guidance: “The lastmod field in your sitemap remains a key signal,” helping it prioritize URLs for recrawling — or skip them when nothing changed. It asks for full date-and-time values.
Google — AI Overviews, AI Mode, GeminiHelps
Sitemaps aid discovery and recrawl scheduling for the Search index all three draw on. Google trusts lastmod once it proves accurate.
OpenAI — OAI-SearchBotUnconfirmed
OpenAI doesn’t say whether its search crawler reads sitemaps.
Anthropic and Brave — ClaudeUnconfirmed
Not documented. Brave discovers pages through its crawler and browser users’ visits, so ranking on Google and Bing feeds it indirectly.
PerplexityUnconfirmed
Not documented; its crawler schedules revisits by predicted importance and update frequency. A sitemap referenced from robots.txt costs nothing.

The upshot: one honest sitemap serves every engine that reads it and harms none that don’t. For Bing, pair it with IndexNow — Microsoft describes the two as complements, sitemaps for full coverage and pings for URL-level changes. Honest dates matter beyond Bing too: AI answers lean on content freshness, and a lastmod that matches the visible updated date keeps your signals consistent.

Common mistakes with XML sitemaps#

The most common XML sitemap mistakes are listing URLs that redirect, return 404 or carry noindex, stamping every lastmod with today’s date, and forgetting the file after a migration so it keeps advertising old URLs.

Myth

Setting every lastmod to today makes the site look fresh.

Reality

Google: if a page “changed 7 years ago, but you’re telling us in the lastmod element that it changed yesterday, eventually we’re not going to believe you anymore.” Update lastmod only on significant changes.

Myth

Pinging Google's sitemap endpoint speeds up indexing.

Reality

Google retired the sitemaps ping endpoint in 2023, and requests to it now return a 404. Submit through Search Console or the Sitemap: line in robots.txt.

Myth

More URLs in the sitemap means more pages indexed.

Reality

Sitemaps suggest; they don’t guarantee. Listing filters, tag pages and duplicates points crawlers at URLs you don’t want — see crawl budget.

Myth

A priority of 1.0 tells engines what matters most.

Reality

Google and Bing ignore priority and changefreq. Internal links and accurate lastmod values do that job.

Sources

  1. 1.Build and submit a sitemapGoogle Search Central · developers.google.com
  2. 2.What is a sitemapGoogle Search Central · developers.google.com
  3. 3.Sitemaps ping endpoint is going awayGoogle Search Central Blog · developers.google.com
  4. 4.Keeping content discoverable with sitemaps in AI powered searchMicrosoft Bing · blogs.bing.com
  5. 5.Sitemaps XML formatsitemaps.org · sitemaps.org

Know someone who’d find this useful? Send it their way.

Written by

Rankbox Team

The team behind Rankbox. We study how ChatGPT, Perplexity, Gemini, and Google AI Overviews choose their sources, and publish what we learn so you can put it to work.

See which AI answers cite you today

Enter your site to see how often ChatGPT, Perplexity, Gemini, and Google cite your brand, and exactly what to publish next.

No credit card required · Free 7-day trial