What a sitemap actually does (and doesn't)
A sitemap is a discovery aid, not a ranking booster. It hands Google a clean list of the canonical URLs you want indexed and a starting map of your site.
It won't force indexing — Google still decides — but it removes the guesswork of finding deep or newly published pages that aren't well linked yet.
- Include only indexable, canonical, 200-status URLs — no redirects, 404s, or noindex pages
- Keep each sitemap under 50,000 URLs and 50MB uncompressed; split larger sites with a sitemap index
- Use accurate lastmod dates so Google can prioritize what actually changed
- Exclude parameter, filtered, and faceted variants that don't deserve indexing
- Reference the sitemap in robots.txt and submit it in Google Search Console
Structuring sitemaps for larger sites
On bigger sites, split sitemaps by content type — products, posts, categories — so you can diagnose indexing problems by segment in Search Console.
Dedicated image and video sitemaps help media-heavy pages get surfaced in the right search features.
- Group by section (e.g., /products, /blog) to isolate coverage issues per segment
- Add image and video sitemaps for media you want discovered
- Automate regeneration on publish/update so lastmod stays truthful
- Use a sitemap index file to tie multiple sitemaps together
- Watch the Sitemaps and Pages reports for 'discovered/crawled but not indexed'
More on technical seo
Frequently asked questions
Do I even need an XML sitemap if my site is small?
A small, well-linked site can often be crawled without one, but a sitemap still helps — it gives Google a clean canonical list and a place to report indexing status. It's low-effort insurance, so we usually recommend having one.
Will adding a sitemap get my pages indexed?
No. A sitemap helps Google discover URLs faster, but indexing depends on page quality, uniqueness, and internal links. If pages aren't getting indexed, the fix is usually content and structure, not the sitemap.
How often should the sitemap update?
Ideally automatically, whenever you publish or change a page, with an accurate lastmod. Static, months-old sitemaps that don't reflect changes send search engines misleading signals.