Homeโ€บValidatorsโ€บDataโ€บSitemap Validator

Sitemap Validator

Data

Paste your sitemap XML or enter a URL to fetch and validate it. Checks syntax, counts URLs, and reports missing or malformed entries. Free, no signup.

What is a Sitemap?

A sitemap validator checks whether an XML sitemap file conforms to the Sitemaps.org protocol โ€” the open standard jointly developed by Google, Yahoo, and Microsoft. The protocol defines a precise XML structure that search engines use to discover and prioritise pages on a website. Any deviation from the format, whether a missing <loc> element, an invalid <changefreq> value, or malformed XML, can prevent search engines from reading or trusting your sitemap.

An XML sitemap is, at its core, a machine-readable list of URLs. It tells search engine crawlers which pages exist on your site, when they were last updated, how often they typically change, and how they rank in importance relative to each other. A valid sitemap does not guarantee indexing, but a malformed one is silently ignored โ€” often without any visible error in Search Console for days or weeks.

This sitemap validator accepts either a direct paste of the XML or a URL to fetch it from your server. It checks two fundamental things: whether the file is well-formed XML (using the browser's own parser โ€” the same engine that every browser uses to render web pages), and whether the XML structure matches the sitemap protocol. Specifically, it confirms that the root element is <urlset> or <sitemapindex>, that every <url> entry has a <loc>, and that optional metadata fields like <changefreq> and <priority> use only protocol-valid values.

For sites with thousands of pages, sitemap errors are surprisingly common. A missed encoding issue, a template rendering a wrong value, or a deployment script that mangles the XML structure โ€” these bugs can silently break search engine discovery for the affected pages. Running your sitemap through validation after every deployment takes seconds and surfaces these problems before they cost you organic traffic.

If you need to verify the raw XML structure of a non-sitemap file, our XML Validator covers general well-formedness checks without sitemap-specific rules.

How to use this Sitemap calculator

  1. Choose your input method โ€” select Paste XML if you have the sitemap file on your computer or can copy its contents from a browser, or select Fetch from URL if the sitemap is live on your server.

  2. Provide the sitemap โ€” in Paste XML mode, paste the full XML into the text area. You can use the Load example button to see what a valid two-URL sitemap looks like. In Fetch from URL mode, type or paste the full sitemap URL (for example, https://yoursite.com/sitemap.xml or https://yoursite.com/sitemap_index.xml) and click Fetch & Validate.

  3. Read the result โ€” the result panel shows a green Valid or red Invalid status, followed by the sitemap type, URL count, and any coverage or error details. Errors are listed in red; coverage details (lastmod, changefreq, priority) appear in grey below the main stats.

  4. Fix any errors โ€” if the result is invalid, the error list tells you exactly what is wrong: which element is missing, how many entries are affected, or what value is out of range. Return to your sitemap generator or CMS settings, fix the issue, regenerate the file, and re-validate.

  5. Submit to Search Console โ€” once the sitemap validates cleanly, submit its URL in Google Search Console under Sitemaps and in Bing Webmaster Tools. Both platforms will then crawl and report on the sitemap on their own schedule.

Frequently Asked Questions

An XML sitemap is a file that lists the pages, videos, and other files on your website along with metadata about each โ€” when it was last updated, how often it changes, and how important it is relative to other pages. Search engines like Google and Bing read this file to discover and crawl your content more efficiently. Without a properly formatted sitemap, important pages may be missed or indexed with a significant delay.
A sitemap validator checks that your sitemap file is well-formed XML, that the root element is either <urlset> or <sitemapindex>, and that every <url> entry contains a <loc> element pointing to an absolute URL. It also validates optional fields: <lastmod> must be a valid ISO 8601 date, <changefreq> must be one of the seven accepted values, and <priority> must fall in the range 0.0 to 1.0. Structural errors in any of these fields can prevent search engines from processing your sitemap correctly.
A <urlset> sitemap lists individual page URLs directly โ€” this is the most common format, used when a website has up to 50,000 URLs that fit in one file. A <sitemapindex> file is a sitemap of sitemaps: instead of listing page URLs, it lists the locations of multiple child sitemap files, each of which is its own <urlset> file. Large websites with hundreds of thousands of pages split their URLs across multiple sitemap files and tie them together with a sitemap index.
The Sitemaps protocol specifies a maximum of 50,000 URLs per sitemap file and a maximum compressed file size of 50 MB. If your website has more than 50,000 pages, you must split the URLs across multiple sitemap files and reference them all from a sitemap index file. This validator flags it as an error if your <urlset> contains more than 50,000 <url> entries.
The <changefreq> element accepts exactly seven values: always, hourly, daily, weekly, monthly, yearly, and never. Any other value โ€” including variations like 'bi-weekly' or 'quarterly' โ€” is invalid and may cause search engines to ignore or reject the sitemap entry. This validator checks every <changefreq> value and flags any that fall outside the accepted set.
The <priority> field accepts a decimal number from 0.0 to 1.0, where 1.0 is the highest priority. The default value is 0.5, and it represents the page's importance relative to other pages on your own site โ€” not relative to pages on other websites. In practice, most search engines treat this as a soft hint rather than a strict instruction. Reserve priority 1.0 for your homepage and most critical category pages, and use values between 0.3 and 0.8 for the rest.
Yes โ€” use the Fetch from URL tab, paste your sitemap URL (for example, https://yoursite.com/sitemap.xml), and click Fetch & Validate. The tool fetches the XML from your server via a proxy and runs the same validation checks as the paste mode. This is useful after deploying a new sitemap to confirm it is accessible and well-formed without downloading and pasting the file manually.
Google Search Console may reject a syntactically valid sitemap for several reasons beyond XML well-formedness: the file might not be served with the correct Content-Type header, the URLs inside may not be in the same site as the sitemap location, the file might exceed the 50 MB size limit, or individual URLs might return 4xx or 5xx HTTP status codes when crawled. This validator confirms structural correctness; for a complete picture, also submit your sitemap in Search Console and review any crawl errors it surfaces.
A sitemap index file (root element <sitemapindex>) is a directory of individual sitemap files rather than a list of page URLs. Use one when your site has more than 50,000 pages, when it makes organisational sense to group URLs by type or section (for example, product pages, blog posts, and category pages in separate files), or when different teams manage different sections of a large website. Each child sitemap referenced in the index must itself be a valid <urlset> sitemap.
The <lastmod> element is a hint to search engines about when a page was last meaningfully updated, and it can influence crawl frequency. Google has stated that it uses <lastmod> to schedule recrawls when the dates are accurate and consistent. If you populate <lastmod> with today's date on every page regardless of whether the content changed, Google will quickly learn to ignore the field. Accurate <lastmod> values โ€” especially on high-priority pages โ€” are genuinely useful for large sites where not every page can be recrawled frequently.
Most content management systems generate sitemaps automatically: WordPress sites can use plugins like Yoast SEO or Rank Math, while platforms like Shopify, Squarespace, and Wix generate sitemaps out of the box. For custom-built sites, libraries like next-sitemap (Next.js), sitemap (Node.js), or django-sitemap (Django) can generate sitemap XML programmatically at build time or on-the-fly. After generating, validate the file here and then submit the sitemap URL in Google Search Console and Bing Webmaster Tools.
Yes โ€” paste or fetch any sitemap file and this validator automatically detects whether it is a <urlset> or a <sitemapindex>. For index files it reports the number of child sitemaps listed and flags any entries missing a <loc> element. It does not recursively fetch and validate each child sitemap (that would require network access for each one), so for a full audit you would need to validate each child sitemap URL individually.
Also known as
check sitemapvalidate sitemap xmlsitemap syntax checkerxml sitemap validatorsitemap url countsitemap index validatorrobots.txt sitemap checker