A sitemap tells search engines which pages and files you think are important, plus details such as when each was last updated. Google's overview says engines read it to crawl your site more efficiently.
What a sitemap can and cannot do
Google states that a sitemap helps search engines discover URLs, but it does not guarantee that every item will be crawled and indexed. It also says omitting or removing a URL from a sitemap does not prevent crawling or indexing if Google discovers the URL through links from other pages. If you want a page kept out of Search, block indexing with noindex.
So a sitemap is a discovery and freshness aid, not an indexing control in either direction.
Do you need one?
Google's overview says you might need one if your site is large, new with few external links, or heavy in media or news content. You might not need one if your site is small (about 500 pages or fewer that you want in results) and comprehensively linked. If you use a CMS such as WordPress, Wix or Blogger, it probably already generates one.
Rules of hygiene
The aim is a file that lists only the URLs you want indexed:
- Canonical URLs only. No duplicates, no parameters, no alternates.
- Status 200 only. Remove redirected, 404 and 410 URLs promptly.
- Indexable only. Do not list URLs that carry noindex or are blocked by robots.txt. That sends contradictory signals.
- Honest
lastmod. Update it only when page content materially changes. - Within limits. The protocol allows up to 50,000 URLs per file, and index files can reference many child files.
- Declared. Reference it from robots.txt with a
Sitemap:line and submit it in Search Console and Bing Webmaster Tools.
Google's ported 2005 guidance, recorded in the documentation log on November 27, 2026, includes a note that nested sitemap index files are unsupported. If you generate indexes, keep them one level deep.
lastmod on Bing
Bing's July 2025 post says lastmod helps it prioritize recrawling and reindexing, recommends full ISO 8601 timestamps, and warns against setting it to the sitemap generation time unless the content changed. It says changefreq and priority are ignored by Bing. Read our summary.
Using sitemaps during removals
When retiring content:
- Delete the URLs from the sitemap in the same release that deletes the pages or adds noindex.
- Return 404 or 410 for deleted pages. See noindex vs robots.txt vs 410.
- Consider a temporary, separate sitemap listing only the changed URLs, to help crawlers revisit them. Think of it as a nudge, not a command.
- Use IndexNow for Bing and partner engines to signal deletions.
Special sitemap types
Google's overview mentions video, image and news entries. A news sitemap entry can include title and publication date. These add information beyond URL and lastmod, and are useful for time-sensitive publishers. Our site publishes a standard XML sitemap and an RSS feed.
Auditing quickly
A script can check the basics: fetch every sitemap URL, record the status code, follow redirects, parse the canonical tag and robots directives, and flag anything that is not 200, self-canonical and indexable. Run it on every release. Cleaning a sitemap often removes dozens of indexing warnings at once.
Sitemap errors versus indexing status
A sitemap that processes successfully can still list URLs that Google declines to index. Use the Page indexing report to see why, per that report's guide. The sitemap-filtered view of the report helps isolate your intended URLs from incidental ones.
Summary
Keep the sitemap short, canonical and truthful. It will not remove anything, but it will make it easier for crawlers to see the site you meant to publish.
Frequently asked questions
Does removing a URL from my sitemap remove it from Google?
No. Google says omitting or removing a URL from a sitemap does not prevent it from being crawled or indexed if it is discovered through links. To keep a page out of Search, use noindex.
Do I need a sitemap?
Google says a small, comprehensively linked site of about 500 pages or fewer may not need one, while large, new or media-heavy sites often benefit.