Sitemap XML Inspector
Inspect sitemap XML for duplicates, invalid dates, non-absolute URLs, and protocol mixing issues
Enter your sitemap XML content to inspect for duplicates, invalid dates, and protocol issues
Inspecting XML Sitemaps for Technical SEO Quality
XML sitemaps tell search engines which pages exist on your site, when they were last modified, and their relative priority. A well-structured sitemap accelerates indexing of new content, helps crawlers discover pages not reachable through internal linking, and provides change frequency hints that influence recrawl scheduling. However, sitemaps with duplicate URLs, invalid dates, non-absolute URLs, or protocol mixing create confusion for crawlers and can waste your crawl budget on error pages or redirect chains.
The Sitemap XML Inspector parses your sitemap files using the browser's native DOMParser API, counting URLs, detecting duplicates, validating lastmod dates against W3C format requirements, identifying non-absolute URLs, and flagging HTTP/HTTPS protocol inconsistencies. All analysis runs entirely in your browser — your sitemap content never leaves your device.
Duplicate URL Detection
Duplicate URLs in sitemaps waste crawl budget and can confuse search engines about which version of a URL is canonical. The inspector detects several forms of duplication:
- Exact duplicates: The same URL appearing multiple times in the sitemap
- Trailing slash variants:
/productsand/products/both listed - Protocol variants: HTTP and HTTPS versions of the same URL
- www variants:
www.example.comandexample.comversions - Parameter variants: Same path with different query parameter orderings
Each duplicate represents a page that crawlers may attempt to index twice, potentially creating duplicate content issues. The inspector reports the total duplicate count and lists specific URLs that appear more than once for easy cleanup.
Date Format Validation (W3C Datetime)
The <lastmod> element must use W3C Datetime format (a subset of ISO 8601).
Search engines use these dates to prioritize recrawling recently modified pages. Invalid dates
are silently ignored, meaning your freshness signals are lost:
2024-03-15— Valid: date only (YYYY-MM-DD)2024-03-15T10:30:00+00:00— Valid: full datetime with timezone2024-03-15T10:30:00Z— Valid: UTC datetime03/15/2024— Invalid: US date format not accepted2024-3-15— Invalid: month must be zero-paddedMarch 15, 2024— Invalid: human-readable format not accepted
The inspector validates every lastmod entry and reports dates that do not conform to the W3C specification, including future dates that indicate generation errors and dates older than the domain registration (likely placeholder values).
URL Quality and Protocol Consistency
Sitemap URLs must be absolute and use a consistent protocol. The inspector checks for:
-
Relative URLs: Paths like
/products/widgetwithout domain are invalid in sitemaps and will be rejected by search engines. - Protocol mixing: HTTPS sites listing HTTP URLs create redirect chains that waste crawl budget and signal configuration issues.
- Non-canonical URLs: URLs that redirect to other locations should not be in the sitemap — only final destination URLs belong there.
- URL count limits: Individual sitemap files should not exceed 50,000 URLs or 50MB uncompressed. The inspector reports when these limits are approached.
Code Examples
Sitemap XML with Common Issues
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/products</loc>
<lastmod>2024-03-15</lastmod>
</url>
<url>
<loc>https://example.com/products/</loc> <!-- Duplicate: trailing slash -->
<lastmod>2024-03-15</lastmod>
</url>
<url>
<loc>http://example.com/about</loc> <!-- Protocol mismatch: HTTP -->
<lastmod>03/15/2024</lastmod> <!-- Invalid date format -->
</url>
<url>
<loc>/contact</loc> <!-- Relative URL: invalid -->
<lastmod>2030-01-01</lastmod> <!-- Future date: suspicious -->
</url>
</urlset>
<!-- Inspector findings:
- WARN: Duplicate URL detected (trailing slash variant): /products vs /products/
- ERROR: Protocol mismatch: http://example.com/about (site uses HTTPS)
- ERROR: Invalid lastmod format: "03/15/2024" (expected W3C datetime)
- ERROR: Relative URL detected: /contact (must be absolute)
- WARN: Future lastmod date: 2030-01-01 (likely a placeholder)
- INFO: Total URLs: 4, Unique: 3, Duplicates: 1
-->Standards & Specifications
- Sitemaps XML Protocol — Defines the XML schema, URL limits, and format requirements for sitemap files
- W3C Datetime Format — Specifies the date-time format required for lastmod elements in sitemaps
Frequently Asked Questions
What does the Sitemap XML Inspector detect?
The inspector counts all URLs in your sitemap, detects duplicate entries, validates lastmod dates against W3C Datetime format (ISO 8601), identifies non-absolute URLs that search engines cannot process, detects HTTP/HTTPS protocol mixing, and validates changefreq and priority values.
Why are duplicate URLs in a sitemap a problem?
Duplicate URLs waste crawl budget — search engines allocate a limited number of requests to crawl your site. When the same URL appears multiple times, crawlers spend resources re-fetching the same page instead of discovering new content. Remove duplicates to ensure efficient crawling.
What format should lastmod dates use?
Lastmod dates must use W3C Datetime format (a subset of ISO 8601). Valid formats include: YYYY (2024), YYYY-MM (2024-03), YYYY-MM-DD (2024-03-15), and full datetime with timezone like 2024-03-15T10:30:00Z or 2024-03-15T10:30:00+02:00. Invalid dates are ignored by search engines.
Why must sitemap URLs be absolute?
The Sitemap protocol specification requires all URLs to be fully qualified (absolute), starting with http:// or https://. Relative URLs like /page or ../page are invalid and will be ignored by search engine crawlers. Always include the full domain in each URL entry.
What is HTTP/HTTPS protocol mixing?
Protocol mixing occurs when a sitemap contains both http:// and https:// URLs. Search engines treat these as different pages, which can cause duplicate content issues and split link equity. If your site uses HTTPS (recommended), all sitemap URLs should also use HTTPS.
Does this tool support sitemap index files?
Yes. The inspector supports both standard sitemaps (<urlset>) and sitemap index files (<sitemapindex>). For sitemap indexes, it extracts and validates the referenced sitemap URLs including their lastmod dates.
Is my sitemap data sent to any server?
No. All inspection happens entirely in your browser using the native DOMParser API. Your sitemap content — which reveals your site structure and all indexed URLs — never leaves your device. No data is stored, logged, or transmitted.
What is the maximum sitemap size I can inspect?
The inspector can handle sitemaps with thousands of URLs. However, very large sitemaps (over 50,000 URLs or 50MB) may cause the browser to slow down. The Sitemap protocol itself limits individual sitemap files to 50,000 URLs and 50MB uncompressed. Consider splitting large sitemaps using a sitemap index.