Sitemap Validator

XML sitemaps serve as the primary discovery roadmap for Googlebot and Bingbot, guiding crawlers to your most important canonical URLs. Even a single syntax mistake—such as an unescaped ampersand in a query parameter, an invalid timestamp, or a relative URL—can lead to silent crawl failures and missing search rankings. This free, client-side Sitemap Validator inspects your XML sitemaps and sitemap index files against official sitemaps.org and Google Search Central specifications in real time. It calculates an instant health score, flags critical errors and warnings with specific line references, inspects URL metadata, and can automatically generate cleaned, duplicate-free, entity-escaped XML ready for production.

Free client-side tool · 100% private · no server uploads

Validate your XML sitemap

Instantly scan XML sitemaps and sitemap index files for syntax errors, protocol violations, invalid dates, and Google Search Console indexing blockers.

  • XML Syntax & Namespaces
  • URL & Protocol Rules
  • Lastmod & Metadata Rules
  • Index & Extension Support

Paste or upload XML sitemap

Standard <urlset> or <sitemapindex>
Lines: 0 Size: 0 B Entries: 0
Load sample:

Health Score & Diagnostics

Paste an XML sitemap or load a sample on the left to inspect health score, crawl compliance, and diagnosed issues.

Issues & Recommendations

  • Ready for validation INFO

    Paste an XML sitemap above to inspect protocol rules, namespaces, and URL structures.

Parsed URL Sample Inspector

# URL Location (<loc>) Lastmod Changefreq Priority Status
No URLs parsed yet. Enter an XML sitemap above to inspect individual entries.

What Is an XML Sitemap and Why Is It Essential for SEO?

An XML sitemap is a machine-readable document hosted on your web server that lists all canonical URLs you want search engine crawlers to discover, understand, and index. Established as an open web protocol in 2005 by Google and subsequently adopted by Bing, Yahoo, and Yandex under the sitemaps.org specification, the XML sitemap standard remains the most reliable mechanism for communicating your site architecture directly to search bots.

While search engine spiders can theoretically crawl a website solely by following hyperlinks, relying exclusively on organic internal linking leaves critical indexing gaps. This is especially true for:

  • Large websites and e-commerce stores: Catalogs containing tens of thousands of products often feature deep directory paths that crawlers deprioritize or abandon due to crawl budget constraints.
  • Brand new domains: New websites with minimal incoming external backlinks depend on sitemaps submitted in Google Search Console to jumpstart discovery.
  • Dynamic content repositories: Media publications, SaaS knowledge bases, and job boards that publish or revise articles daily benefit from timestamped sitemaps that alert bots to fresh updates.
  • Rich media assets: Specialized XML sitemap extensions supply search engines with image metadata (captions, license tags), video runtimes, and multilingual hreflang alternate versions that standard HTML scrapers frequently miss.

Anatomy of a Compliant XML Sitemap

To be accepted by search engine ingestion pipelines without warnings or parsing failures, an XML sitemap must adhere to strict structural constraints. Below is a breakdown of the core elements and their schema requirements:

Element Requirement Standard Format / Values Crawler Ingestion Impact
<urlset> Mandatory (Root) xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" Defines the XML document root and official namespace. Without this namespace, crawlers reject the entire document.
<url> Mandatory Encloses individual page metadata Each page record must be nested inside its own <url> parent tag. Maximum 50,000 entries per file.
<loc> Mandatory Fully qualified absolute URL (e.g., https://example.com/page) Must begin with the exact protocol (http:// or https://). Relative paths (/page) cause fatal errors. Maximum 2,048 characters.
<lastmod> Recommended W3C Datetime: YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD Crucial for Googlebot's crawl budget efficiency. Google uses accurate lastmod dates to prioritize recrawling stale vs. recently updated pages.
<changefreq> Optional always, hourly, daily, weekly, monthly, yearly, never Hint for expected modification frequency. Modern search engines largely disregard this tag in favor of empirical crawl history and lastmod data.
<priority> Optional Decimal between 0.0 and 1.0 (e.g., 0.8) Relative importance of a page within your own site. Google Search Central documentation confirms that priority does not impact rankings against other domains.

Sitemap Index Files: Managing Sites with Over 50,000 URLs

The sitemaps.org specification imposes two hard protocol limits on any individual sitemap file:

  1. Maximum 50,000 URLs: An individual sitemap file cannot list more than 50,000 <url> entries.
  2. Maximum 50 MB uncompressed size: The file size before gzip compression must not exceed 52,428,800 bytes.

When your website expands beyond either limit, you must partition your URLs across multiple sitemap files and organize them under a parent Sitemap Index file. A sitemap index uses the root tag <sitemapindex> and contains multiple child <sitemap> blocks:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemaps/posts-1.xml.gz</loc>
    <lastmod>2024-03-15T12:00:00+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemaps/products-1.xml.gz</loc>
    <lastmod>2024-03-14T10:30:00+00:00</lastmod>
  </sitemap>
</sitemapindex>

A single sitemap index can list up to 50,000 child sitemaps, enabling web platforms to systematically index millions of pages. However, sitemap index files cannot be nested within other sitemap index files.

Top 8 Most Common Sitemap Errors Caught by Search Engines

Through our technical audits of hundreds of SaaS platforms, e-commerce stores, and enterprise blogs, we repeatedly encounter the same eight pitfalls that trigger Google Search Console errors and impede crawl efficiency:

1. Unescaped Ampersands in URL Query Strings

In standard XML, the ampersand character (&) is reserved for declaring entities. When a tracking parameter or filter string contains an unencoded ampersand (such as https://example.com/shop?cat=shoes&brand=nike written as ?cat=shoes&brand=nike without escaping), XML parsers encounter a fatal entity parsing syntax error and stop processing the document. In XML sitemaps, every ampersand in a URL must be encoded as &amp;.

2. Relative or Malformed URLs

Unlike HTML anchor tags where relative paths like /about resolve against the current window, XML sitemaps require fully qualified absolute URLs including the transfer protocol (https://) and fully verified host name. Entries omitting the scheme or using relative paths are flagged as invalid and rejected.

3. Listing Non-Canonical or Redirecting URLs

An XML sitemap should represent your definitive canonical inventory. Including URLs that return 301/302 redirects, 404 Not Found errors, or pages containing a <link rel="canonical"> pointing to a different destination wastes crawl budget and sends contradictory indexing signals to search engines.

4. Invalid <lastmod> Timestamps and Formats

Dates must follow W3C Datetime formatting: either YYYY-MM-DD or a complete ISO 8601 string including timezone offset (e.g., 2024-03-15T09:30:00+00:00). Using colloquial date formats such as 15/03/2024 or March 15, 2024 will cause search engines to ignore the timestamp entirely.

5. Monolithic Bulk Timestamps

When an automated content management plugin re-generates an XML sitemap and applies the identical timestamp down to the second across all 15,000 URLs, search engine crawlers detect that the timestamps are synthetic. Google's Search Advocate John Mueller has repeatedly noted that Googlebot ignores lastmod data when it detects mass artificial date updates without corresponding content changes.

6. Duplicate URL Entries

Specifying the exact same <loc> address across multiple <url> blocks inside a sitemap adds no discovery value and unnecessarily inflates file size. Clean sitemaps enforce a 1:1 ratio between published canonical pages and sitemap entries.

7. Mixed HTTP and HTTPS URLs

If your website has migrated to HTTPS, your sitemap must not retain legacy http:// links. Listing unencrypted URLs forces search engine bots through unnecessary redirect hops and risks triggering duplicate indexing issues.

8. Out-of-Bounds Priority and Changefreq casing

Setting <priority>10</priority> or <priority>High</priority> violates XML schema constraints, which dictate a floating decimal between 0.0 and 1.0. Similarly, changefreq values must be strictly lowercase (e.g., daily, not Daily or DAILY).

Comparison: XML Sitemap vs. Sitemap Index vs. RSS/Atom vs. HTML Sitemap

Different discovery formats fulfill complementary roles in modern search engine optimization and user experience. The table below illustrates how XML sitemaps compare against alternative syndication and navigation mechanisms:

Format Target Audience Capacity Limit Primary Purpose Best Suited For
XML Sitemap Search engine crawlers 50,000 URLs / 50 MB Comprehensive catalog of all canonical pages and media assets Every website seeking complete and accurate search indexation
Sitemap Index Search engine crawlers 50,000 child sitemaps Hierarchical directory organizing modular sitemaps Websites with > 50,000 URLs or multi-section architectures (e-commerce, news)
RSS / Atom Feed Crawlers & feed readers Typically 20–50 latest items Real-time notification of newly published or modified content Fast crawl indexing for blogs, breaking news, and active podcasts
HTML Sitemap Human visitors & crawlers Human readability threshold (~100 links) User-accessible navigation page outlining top categories High-level site navigation and internal link equity distribution

Step-by-Step Guide: Submitting Your Sitemap to Google and Bing

Once your XML sitemap has been validated and confirmed error-free, follow these steps to connect your sitemap with major search engines:

  1. Upload the XML file to your server root: Host the file at the root of your domain (e.g., https://example.com/sitemap.xml) so that its crawl path covers all subdirectories.
  2. Declare your sitemap in robots.txt: Add a directive line at the bottom of your robots.txt file:
    Sitemap: https://example.com/sitemap.xml
    This allows all compliant web spiders (including Google, Bing, DuckDuckGo, and Yandex) to locate your sitemap autonomously during their routine crawl.
  3. Submit to Google Search Console: Navigate to your verified property in Google Search Console, click Indexing → Sitemaps in the left sidebar, enter your sitemap slug (e.g., sitemap.xml), and click Submit. Monitor the status column for "Success" or specific error notifications.
  4. Submit to Bing Webmaster Tools: Log in to Bing Webmaster Tools, select your domain, navigate to Sitemaps → Submit sitemap, enter your full sitemap URL, and submit. Bing will crawl the file and report submitted vs. indexed URL counts.

Tool Methodology & Honest Limitations

This Sitemap Validator runs 100% client-side inside your web browser. No sitemap code, proprietary URL structures, or server credentials are ever transmitted to or stored on external servers, ensuring complete privacy for pre-production or staging environments.

However, users should understand what client-side validation can and cannot assess:

  • What this tool validates: XML syntax well-formedness, root and namespace compliance (sitemaps.org 0.9), maximum URL and file size limits, absolute URL formatting, unescaped entity detection, duplicate URL detection, W3C Datetime calendar validity, future timestamp checks, changefreq casing and enum rules, and priority value bounds.
  • What requires server-side network crawling: Because web browsers enforce Cross-Origin Resource Sharing (CORS) security restrictions, this client-side tool cannot make live HTTP requests to verify whether the URLs listed inside your sitemap return a 200 OK status code, whether they execute a 301 Redirect, or whether target pages contain noindex robots meta directives. To verify server status codes across your URL catalog, pair this tool with a desktop crawler or server-side auditor.

Frequently Asked Questions (FAQ)

Does Google still read changefreq and priority tags?

Google Search Central representatives have stated that Googlebot largely ignores both <changefreq> and <priority> values when scheduling crawl frequency. Google prioritizes its own historical observations and reliable <lastmod> timestamps. However, the sitemaps.org protocol still defines these fields, and smaller search engines or regional crawlers may still reference them. If you choose to include them, ensure they adhere strictly to schema rules to prevent XML validation errors.

Can an XML sitemap contain URLs from multiple subdomains or external domains?

By default, the sitemaps protocol enforces a "same-origin" restriction: a sitemap hosted at https://example.com/sitemap.xml can only validate URLs residing on https://example.com/. If you list URLs from a subdomain (e.g., https://blog.example.com/) or a separate domain, Google will reject those entries unless you prove ownership of all involved domains within a single Google Search Console Domain Property, or specify cross-sitemap declarations in the target domain's robots.txt.

Why does Google Search Console show "Couldn't fetch" for my sitemap?

The "Couldn't fetch" status in Google Search Console is often misleading. It can indicate a genuine connectivity issue (such as a 404 error, a 500 server error, a firewall blocking Googlebot, or a crawl timeout), but it can also simply mean that Googlebot has queued the sitemap for processing but has not yet executed the fetch request. Verify that the URL returns a clean 200 OK header, that your robots.txt does not disallow the sitemap URL, and allow 48 to 72 hours for Google's queue to update.

Should I gzip compress my XML sitemap?

Yes. Gzip compression (saving as sitemap.xml.gz) typically reduces XML file size by 70% to 90%, significantly cutting server bandwidth and allowing search engine bots to download large catalogs much faster. Both Google and Bing fully support gzip-compressed sitemaps. Ensure your server sends the appropriate Content-Type: application/x-gzip or Content-Encoding: gzip HTTP response headers.

Should non-indexable or noindex pages be included in a sitemap?

No. Your XML sitemap should only contain 200 OK canonical URLs that you actively want indexed in search results. Listing pages tagged with <meta name="robots" content="noindex">, password-protected admin pages, internal search results, or utility pages sends conflicting signals to crawlers and degrades crawl budget efficiency.

How often should an XML sitemap be updated?

Your XML sitemap should update dynamically whenever meaningful content changes occur—such as publishing a new blog post, launching a product, or revising existing documentation. If you run a modern CMS like WordPress, Shopify, or Webflow, automated sitemap generators handle updates in real time. Avoid scheduled cron jobs that update the <lastmod> timestamp on every URL simultaneously without actual content revisions, as search engines will learn to distrust synthetic dates.

Explore More Free SEO & Technical Marketing Tools

Pair this Sitemap Validator with our suite of free, browser-based optimization utilities to maintain a high-performing, technically sound website:

  • Meta Title & Description Generator — Craft CTR-optimized meta tags with live pixel length truncation previews.
  • SERP Snippet Preview — Simulate desktop and mobile Google search result cards before publishing.
  • On-Page SEO Auditor — Audit DOM structure, heading hierarchies, images, and content signals directly in your browser.
  • Internal Link Planner — Map topical cluster links to distribute PageRank throughout your sitemap.
  • Schema Markup Generator — Generate Google-compliant JSON-LD structured data for FAQ, Article, and Local Business rich snippets.
  • Robots.txt Generator — Build crawl directives and link your validated XML sitemaps to direct search engine spiders.
  • SaaS Promotion & SEO Services — Discover how our data-driven growth strategies scale organic visibility and pipeline for high-growth tech companies.