XML Sitemaps: What They Do, What to Include, and Why Most Sites Get This Wrong
What an XML sitemap does, which URLs to include or exclude, and how to confirm Google is using it, so your sitemap helps crawling instead of hurting it.

An XML sitemap is a file that lists the canonical URLs you want search engines to find. It does not force indexing or lift rankings. It helps most on new sites, large sites and sites with weak internal links. Include only indexable, canonical, 200-status URLs and keep it clean.
Last updated October 2026
Key takeaways
- A sitemap supports discovery and recrawl timing. It is not a ranking factor.
- One sitemap file is capped at 50MB uncompressed or 50,000 URLs, per Google’s documentation.
- Google ignores priority and changefreq, so only lastmod is worth setting, and only if it is accurate.
- Leave out noindex pages, redirects, 404s, parameter URLs and anything blocked in robots.txt.
What does an XML sitemap do?
A sitemap is a machine-readable list of URLs that you submit through Google Search Console and Bing Webmaster Tools. It does two jobs. It helps with URL discovery, especially for orphaned pages that nothing links to. It also gives crawlers a hint about when pages changed.
It does not guarantee indexing. Google still judges each page on quality and duplication. If many submitted URLs stay unindexed, the cause is usually the content, not the file. A 10-page site with clean internal links gains little. A 500-page store or a blog with sparse internal links gains much more.
What should you include in a sitemap?
Include every canonical URL you want indexed, and only those: main pages, service pages, posts, products and useful category or location pages. If both the trailing-slash and non-slash versions exist, list only the canonical one.
What should you leave out?
Leave out | Why |
|---|---|
Noindex pages | The sitemap says index, the tag says do not. Mixed signals waste crawling. |
Redirecting URLs | List the destination, not the old address. |
404 pages | Dead URLs have no place in a list of live pages. |
Parameter URLs | Tracking and filter variants duplicate the base page. |
Paginated archives | Page 2, 3 and so on rarely deserve their own entry. |
URLs blocked in robots.txt | Google sees the URL but cannot crawl it. See the robots.txt guide. |
Thin pages you would not want ranked | Fix or remove them instead of submitting them. |
What are the sitemap size limits?
Google states that all sitemap formats limit a single sitemap to 50MB uncompressed or 50,000 URLs (Google Search Central, build a sitemap, updated July 2026). Larger sites split their URLs across several files and list them in a sitemap index. WordPress SEO plugins such as Yoast and Rank Math do this automatically.
How should you use lastmod?
The same Google page says the lastmod value should reflect the last significant update to the page, and that Google ignores priority and changefreq. Set lastmod only when content really changes. Updating it on every build teaches Google to distrust it. If your system cannot produce honest dates, omit the tag.
How do you submit and check a sitemap?
- Confirm the sitemap loads at its URL and returns 200.
- Add the sitemap line to robots.txt and submit it in Search Console.
- Check the Sitemaps report for read errors and discovered URL counts.
- Compare submitted against indexed pages in the Pages report.
- Crawl the sitemap with a tool such as Screaming Frog and fix any non-200, noindex or redirecting URL it lists.
The Search Console guide walks through the reports, and a technical SEO audit should always include a sitemap review. Orphaned pages are best fixed with internal linking, not by leaning on the sitemap.
Frequently asked questions
Does a sitemap improve rankings?
No. It helps search engines find and recrawl pages, but it is not a ranking factor.
How many URLs can one sitemap hold?
Up to 50,000 URLs or 50MB uncompressed. Beyond that, use a sitemap index.
Should I include noindex pages?
No. A URL should not be both submitted and marked noindex.
Do priority and changefreq matter?
No. Google ignores both values.
Why are submitted pages not indexed?
Usually content quality, duplication or crawl blocks. Check the page-level status in Search Console.
