Free SEO Tool

Sitemap Validator

Check your XML sitemap for errors, warnings, and SEO best practices — including structure, namespace, URL count, HTTPS, and date formats.

What This Validator Checks

HTTP status code (must be 200)
Valid XML root element (<urlset> or <sitemapindex>)
Standard namespace declaration
URL count (must be > 0 and ≤ 50,000)
File size (must be < 50 MB)
HTTPS vs HTTP URLs
Duplicate URL detection
lastmod date format (YYYY-MM-DD)
Missing optional fields (changefreq, priority)

What is Sitemap Validation?

XML sitemap validation is the process of checking whether your sitemap file meets the technical standards that search engines expect. A valid sitemap uses the correct root element (<urlset> or <sitemapindex>), the standard namespace declaration, properly formatted dates, and stays within Google's 50,000 URL and 50 MB per-file limits.

An invalid sitemap does not mean Google will stop crawling your site — but it will trigger errors in Google Search Console, reduce crawling efficiency, and cause some URLs to be skipped entirely. Validating your sitemap regularly is a quick win that most sites overlook.

Most Common Sitemap Errors (and How to Fix Them)

HTTP error (non-200 status): Check your server configuration — the sitemap URL must return a 200 OK response, not a redirect or 404.
Missing namespace declaration: Add xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" to your opening <urlset> tag.
Invalid lastmod format: Use YYYY-MM-DD format (e.g. 2026-03-28). Full W3C DateTime is also accepted.
Duplicate URLs: Each <loc> value must appear only once per sitemap file. Remove or consolidate duplicates.
HTTP URLs instead of HTTPS: All <loc> entries should use https:// — search engines prefer HTTPS and may treat HTTP/HTTPS as duplicates.

Frequently Asked Questions

What makes an XML sitemap invalid?

The most common causes are: using the wrong root element, missing the standard xmlns namespace, exceeding the 50,000 URL or 50 MB limits, duplicate <loc> entries, non-standard date formats in <lastmod>, or the sitemap returning an HTTP error status.

Will Google ignore an invalid sitemap?

Google won't necessarily stop crawling your site, but it will report sitemap processing errors in Search Console, may skip URLs it cannot parse, and won't prioritise pages based on lastmod dates if the format is wrong.

What is the maximum number of URLs in a sitemap?

Google and the sitemaps.org protocol both specify a maximum of 50,000 URLs per sitemap file (and 50 MB uncompressed). If you have more URLs, split them across multiple sitemaps and reference them from a sitemap index file.

What date format should sitemap lastmod use?

Use W3C DateTime format. The simplest valid format is YYYY-MM-DD (e.g. 2026-03-28). Full datetime with timezone is also valid: 2026-03-28T10:00:00+00:00. Avoid formats like MM/DD/YYYY or natural language dates.

Should noindex pages be in my sitemap?

No. Only include pages you want indexed. Including noindex pages in your sitemap sends contradictory signals to search engines and wastes crawl budget on pages you do not want ranked.

When Should You Validate Your Sitemap?

Sitemap errors are silent — Google Search Console may flag them days or weeks after they first appear. Run a validation check whenever any of these events occur:

After a site launch or migration

A new site, domain move, or platform switch is the most common time for sitemap issues to appear. Validate before you submit to Google Search Console.

After updating your SEO plugin

WordPress plugin updates for Yoast, Rank Math, or All-in-One SEO can regenerate your sitemap with different settings. Re-validate after every major update.

When Search Console reports errors

If Google Search Console shows sitemap processing errors, paste the sitemap URL here first. This tool identifies the exact issue faster than reading GSC error descriptions.

On a regular audit schedule

Add sitemap validation to your monthly SEO audit checklist. URL formats, plugin settings, and server configurations can all change without anyone noticing.

Sitemap Validator for WordPress, Shopify & More

This validator works with sitemaps generated by any platform. Paste the sitemap URL directly — here are the default paths for popular platforms:

PlatformDefault sitemap URLCommon issues
WordPress (Yoast)/sitemap_index.xmlValidate each child sitemap individually if the index is large
WordPress (Rank Math)/sitemap_index.xmlHTTP URLs in <loc> if site switched to HTTPS without regenerating
Shopify/sitemap.xmlOccasionally includes draft product URLs — check URL count after changes
Webflow/sitemap.xmlMay include /sitemap.xml as both index and urlset — harmless but unusual
Next.js (next-sitemap)/sitemap.xmlMissing namespace if using older next-sitemap versions
HubSpot/sitemap.xmlIncludes blog tag and author pages which inflate URL count