// SEO
How to Create an XML Sitemap That Actually Helps SEO
An XML sitemap helps Google find and index your pages — but a poorly constructed sitemap can actively hurt by sending crawlers to thin or duplicate content. How to build one right.
In this article
What an XML sitemap actually does
An XML sitemap is a file that lists URLs you want search engines to crawl and index. It doesn't guarantee indexing — Google decides whether to index each URL based on quality and relevance — but it helps Google discover pages that might otherwise not be found through internal linking, and it signals which pages you consider important.
A sitemap is especially valuable for: large sites where some pages are many clicks from the homepage, new sites with few inbound links, sites with rich media content (video, images), and sites that update frequently. For small sites with good internal linking, a sitemap is less critical but still recommended as a hygiene practice.
What to include — and exclude — from your sitemap
Include: all indexable pages that provide unique value — key service pages, product pages, blog posts, location pages. Every URL in your sitemap should return a 200 status code and have a canonical tag pointing to itself (self-referential canonical). If a page has a canonical pointing elsewhere, it shouldn't be in the sitemap.
Exclude: noindexed pages, paginated archive pages (beyond page 1), thin content pages, internal search results, session-parameter URL variants, 301 redirect URLs, and any URL that duplicates another page's content. A sitemap that includes these URLs isn't just unhelpful — it actively wastes crawl budget directing Google to pages that provide no value.
- Only include pages that return 200 OK with no redirect
- Exclude noindexed pages — they contradict the sitemap signal
- Exclude paginated pages 2+, filtered views, session-parameter variants
- Exclude thin content pages — submitting them just confirms they exist
- Set <changefreq> and <priority> values accurately — inaccurate values reduce sitemap credibility
Sitemap format and structure
XML sitemaps follow a standardized format. Each URL entry uses the <url> element containing at minimum <loc> (the URL). Optional elements include <lastmod> (last modified date — use only if accurate, don't set it to today's date for every page), <changefreq> (how often the page changes), and <priority> (relative importance 0.0–1.0).
For sites over 50,000 URLs, use a sitemap index file that references multiple sitemap files. Split sitemaps by content type — one for blog posts, one for products, one for service pages — to make it easier to diagnose indexing issues by section. The maximum number of URLs per sitemap file is 50,000; the maximum file size is 50MB.
Submitting and monitoring your sitemap
Submit your sitemap in Google Search Console via the Sitemaps report. After submission, monitor the Discovered, Crawled, and Indexed counts over the following weeks. A large gap between Discovered and Indexed suggests either quality issues (pages are found but not worth indexing) or crawl budget constraints (pages are found but not crawled frequently enough).
Resubmit your sitemap after significant content updates — not every day, but after major changes like a site migration, bulk content addition, or URL restructuring. WebEnture's Sitemap & Crawlability Agent audits your sitemap for URLs that shouldn't be included, missing pages that should be, and signals for whether Google is successfully crawling and indexing your highest-priority pages.