What an XML Sitemap Does
An XML sitemap is a roadmap that tells search engines which pages on your site you consider important and want indexed. While search engines can discover pages by following links, a sitemap ensures nothing important is missed, which matters most for large sites, sites with deep or poorly linked pages, and new sites that have few external links pointing to them.
A sitemap does not guarantee indexing; it is a strong hint, not a command. Google still decides what to index based on quality and relevance. But by listing your canonical, valuable pages and their update dates, a clean sitemap helps search engines crawl more efficiently and discover new and updated content faster, which is why it is a foundational piece of technical SEO.
What to Include and Exclude
A sitemap should list only the canonical, indexable pages you want to rank. Include your important content pages and ensure each URL is the canonical version. Exclude pages you have set to noindex, duplicate or parameterized URLs, redirected URLs, and thin or utility pages that add no search value. A sitemap full of low-value or non-indexable URLs dilutes the signal and wastes crawl attention.
Keep within the technical limits: a single sitemap file can hold up to 50,000 URLs and be no larger than 50MB uncompressed. Larger sites split content across multiple sitemaps referenced by a sitemap index file, often grouped by type such as pages, blog posts, and products. This structure keeps each file manageable and makes coverage issues easier to diagnose in Search Console.
Submitting and Maintaining Your Sitemap
Once your sitemap is hosted at a stable URL and referenced in robots.txt, submit it in Google Search Console and Bing Webmaster Tools. Search Console then reports how many submitted URLs are indexed and flags errors, giving you a direct view of discovery and indexing problems to fix.
A sitemap is only useful if it stays current. As you publish, update, or remove pages, the sitemap must reflect those changes, ideally automatically, or it will point crawlers at stale or missing URLs. Many CMSs and publishing systems regenerate the sitemap dynamically so new content is included the moment it goes live. Keeping the sitemap accurate ensures the pages you publish are discovered and indexed promptly rather than waiting to be found through links.