Skip to main content
SlapMyWeb
Skip to tool
Free tool

Sitemap.xml validator

Paste your sitemap XML and get instant validation against the sitemaps.org spec. Catches namespace issues, duplicate URLs, http:// links and oversized files.

Invalid
0 URLs
issues
  • errorFailed to parse XML

What is Sitemap.xml Validator?

A sitemap.xml validator checks whether your XML sitemap conforms to the sitemaps.org protocol specification that search engines like Google, Bing, and Yandex rely on to discover and crawl your website pages. An XML sitemap is essentially a roadmap of your website that lists every URL you want search engines to index, along with optional metadata like last modification date, change frequency, and priority. A malformed sitemap -- with invalid XML syntax, wrong namespaces, duplicate URLs, or exceeding the 50,000 URL / 50MB size limits -- can prevent search engines from discovering your content entirely. Common issues include missing the required xmlns namespace declaration, using http:// instead of https:// URLs, including duplicate entries that waste crawl budget, and exceeding Google's size limits. This validator parses your sitemap XML using a standards-compliant parser, checks the root element type (urlset or sitemapindex), validates every URL, and reports errors, warnings, and statistics in a clear, categorized format.

How to Use Sitemap.xml Validator

  1. 1

    Paste your sitemap XML content

    Copy the full contents of your sitemap.xml file and paste it into the editor. The tool handles both regular <urlset> sitemaps and <sitemapindex> files that reference multiple sub-sitemaps.

  2. 2

    Review the validation results

    The validator instantly parses the XML and reports errors (invalid XML, missing loc tags, exceeded limits), warnings (http:// URLs, duplicates, wrong namespace), and info (total URL count, file size).

  3. 3

    Fix issues and re-validate

    Edit your sitemap XML directly in the editor or fix it in your CMS/generator, then re-paste to verify. Once the status shows Valid with no errors, your sitemap is ready to submit to Google Search Console.

Features

  • Full XML parsing validation that catches syntax errors, unclosed tags, and malformed attributes
  • Checks the xmlns namespace matches the official sitemaps.org/schemas/sitemap/0.9 specification
  • Detects duplicate URLs that waste crawl budget and can confuse search engine indexing
  • Warns about insecure http:// URLs that should be upgraded to https:// for modern SEO
  • Enforces the 50,000 URL per-sitemap limit and approximate 50MB file size maximum
  • Supports both regular <urlset> sitemaps and <sitemapindex> files with sub-sitemap references

Related Tools

Frequently Asked Questions

What is the maximum number of URLs allowed in a single sitemap?+
The sitemaps.org protocol limits each sitemap file to 50,000 URLs and 50MB uncompressed. If your site has more URLs, create multiple sitemap files and reference them from a sitemap index file. Most CMS platforms handle this automatically.
Do I need a sitemap if my site is small?+
Even small sites benefit from a sitemap. While Google can discover pages through internal links, a sitemap ensures every page is known to search engines, provides last-modified dates for efficient re-crawling, and is required for features like Google News inclusion.
What is a sitemap index file?+
A sitemap index file (root element <sitemapindex>) is a master sitemap that references multiple child sitemaps. Each child sitemap can contain up to 50,000 URLs. This structure is how large sites with millions of pages organize their sitemaps into manageable chunks.
Should I include all URLs in my sitemap?+
Include only canonical, indexable URLs. Do not include pages blocked by robots.txt, pages with noindex tags, redirect URLs, paginated pages (use rel=next/prev instead), or duplicate content. Including non-indexable URLs wastes crawl budget and sends mixed signals.
How often should I update my sitemap?+
Update your sitemap whenever you add, remove, or significantly modify pages. The <lastmod> tag should reflect the actual last meaningful content change date -- do not artificially update it to trick search engines, as Google may ignore lastmod if it detects gaming.
Where should I submit my sitemap?+
Submit your sitemap URL in Google Search Console (Sitemaps section) and Bing Webmaster Tools. Also reference it in your robots.txt file with a Sitemap: directive. Google will periodically re-fetch the sitemap URL to discover new and updated content.