Sitemap Checker: Validate Your XML Sitemap Free

Check that your XML sitemap is valid, count its URLs and find problems: bad lastmod dates, duplicates, URLs on other hosts, and listed pages that redirect or fail.

Free, no sign-up Checks the live page for you No account, results not kept Updated

Enter just a domain to check /sitemap.xml. Don't know where your sitemap is? Use the sitemap finder.

Enter a sitemap URL to validate the XML, count its URLs and test a sample of them.

Sitemap indexes: up to 20 child sitemaps are read. Up to 1.5 MB of each file is read. A sample of up to 50 listed URLs is status-checked. To get every URL in a plain list, use the sitemap to URL list tool.

How to use the sitemap checker

One URL in, a full health check of the sitemap out.

Enter your sitemap

Paste the sitemap URL, or just your domain to check /sitemap.xml. Sitemap indexes are read too.

Read the checks

See whether the XML is valid, how many URLs it lists and which entries break the sitemap rules.

Fix the listed pages

The sample check shows listed URLs that redirect, return errors or carry noindex. Export everything as CSV.

XML sitemap rules this tool checks

These limits and formats come from the sitemaps.org protocol, which Google, Bing and other search engines follow.

RuleThe limit or formatWhat the tool flags
Valid XMLThe file must be well-formed XML, UTF-8 encoded, with a <urlset> or <sitemapindex> root.Parse errors, HTML pages served instead of XML, wrong root element, missing namespace.
File sizeAt most 50,000 URLs and 50 MB (uncompressed) per sitemap file.Files over either limit. Split them and list the parts in a sitemap index.
Sitemap indexLists other sitemap files, up to 50,000. An index can't list another index.Child sitemaps that fail, are invalid or are themselves indexes.
<loc>A full URL, on the same host and protocol as the sitemap file.Relative URLs and URLs on another host or protocol (http vs https, www vs non-www).
<lastmod>W3C date format, such as 2026-03-15 or 2026-03-15T09:30:00+00:00.Other date formats and dates in the future.
Listed URLsShould be the final, indexable version of each page.Duplicates, plus sample URLs that redirect, return errors or send a noindex header.

What an XML sitemap does

An XML sitemap is a file that lists the pages on your site you want search engines to find. Search engines still find most pages by following links, but a sitemap helps with new pages, large sites and pages that have few internal links pointing to them.

A sitemap only helps if search engines can read it and trust it. A file with XML errors may be rejected outright. A file full of redirects, errors and duplicates teaches search engines that the list can't be relied on.

What this sitemap checker tests

The file itself

The tool downloads your sitemap and reads it as XML. If the file has a syntax error, you see the parser's message, which usually points straight at the problem, such as an unescaped ampersand in a URL. It also checks that the root element is a urlset or a sitemapindex, that the sitemaps.org namespace is set, and that the file stays within 50,000 URLs and 50 MB.

Sitemap indexes

Large sites split their URLs across several sitemaps and list them in an index file. When you enter an index, the tool reads up to 20 of the child sitemaps, checks each one and adds up their URLs. A child that fails to load or contains invalid XML is flagged in its own row.

The entries

Every listed URL is checked against the protocol. It must be a full URL on the same host and protocol as the sitemap, so an https sitemap listing http URLs, or a www sitemap listing non-www URLs, gets flagged. Lastmod values must use the W3C date format. Any URL listed more than once counts as a duplicate.

The pages behind the URLs

Finally, up to 50 URLs are picked evenly from across the sitemap and requested live. Any that redirect, return an error or send a noindex X-Robots-Tag header are listed, so you can see whether the sitemap is in step with the site.

How to fix common sitemap problems

  • Invalid XML. Escape special characters in URLs (& becomes &amp;), and make sure nothing is output before the XML declaration, such as a blank line or a PHP warning.
  • An HTML page instead of XML. Either the URL is wrong or a plugin serves a page at that address. Find the real address in robots.txt.
  • Redirecting URLs. Usually caused by a protocol or trailing slash mismatch. Make the sitemap output the final URLs.
  • Errors. Remove deleted pages from the sitemap, or find out why live pages are failing.
  • Wrong lastmod dates. Use the date the content last changed, in YYYY-MM-DD format or as a full timestamp with a time zone.
  • Duplicates. Often caused by the same page appearing in two sitemaps, or by URL parameters. List each canonical URL only once.

After fixing your sitemap

Submit the sitemap URL in the Sitemaps report of Google Search Console and Bing Webmaster Tools, and add a Sitemap line to your robots.txt so other search engines can find it too. Check back on the report after a few days: it shows how many URLs were found and whether the file could be read.

Sitemap checker: questions

Short answers about how this tool works. Something missing? Ask us.

Where is my sitemap?

Most sites use /sitemap.xml or /sitemap_index.xml. WordPress has a built-in sitemap at /wp-sitemap.xml, and SEO plugins often move it. The address is usually listed in your robots.txt file. Our sitemap finder checks these places for you.

Does Google use lastmod, changefreq and priority?

Google says it uses lastmod when it is consistently accurate, and ignores changefreq and priority. Only update lastmod when the page content really changes.

Should redirected or noindex pages be in my sitemap?

No. A sitemap should list the final, canonical URL of each page you want indexed. Redirects, error pages and noindexed pages send mixed signals and waste crawling.

Why only a sample of 50 URLs?

Checking every URL in a large sitemap would take too long online. The sample is spread evenly across the file, so patterns show up. To check every page your site links to, crawl it with the free Crawlfree desktop app.

Can it read .xml.gz sitemaps?

No, gzip-compressed sitemap files can't be unpacked here. Check the uncompressed version, or the sitemap index that lists them. Sitemaps your server compresses on the fly (with gzip content encoding) are read normally.

My sitemap is valid. Will all its pages be indexed?

Not necessarily. A sitemap helps search engines find pages, but they still decide what to index based on quality and duplication. The Pages report in Google Search Console shows which submitted URLs are indexed.

Compare your sitemap with a full crawl

Crawlfree audits every page in one crawl. Free for Windows, no sign-up, unlimited URLs.