Sitemap Checker
Find a website's XML sitemap, confirm it loads and parses, count its entries and flag malformed URLs.
Share on Social Media:
The Sitemap Checker finds a website's XML sitemap and checks that search engines can read it. Enter a site address such as https://example.com, or the direct address of a sitemap ending in .xml, and press Check Sitemap.
The tool reports where it found the sitemap, the HTTP status code, whether the file is valid XML, and whether it's a regular sitemap or a sitemap index (a list of other sitemaps). It also counts the entries and checks the first 20 for properly formed URLs, with a sample of entries and their last-modified dates.
How the sitemap is found
If you enter a URL ending in .xml, that file is checked directly. Otherwise the tool reads the site's robots.txt and uses the first Sitemap: line it finds, which is the same place search engines look. If robots.txt doesn't declare one, it tries the conventional address, /sitemap.xml. The result tells you which of these was used. If it had to guess, consider adding a Sitemap: line to robots.txt so every crawler can find it.
How to read the result
- Status code: it should be 200. A 404 means there's nothing at that address, and a 403 or 5xx means the server is refusing or failing, sometimes because a security plugin blocks automated requests.
- Valid XML: if the file exists but doesn't parse, search engines can't use it. The usual culprits are a PHP warning or blank line printed before
<?xml, an unescaped&in a URL, or an HTML error page served with a 200 status. - Sitemap index: large sites split their URLs across several sitemaps and list them in an index. The count then refers to the number of child sitemaps, not pages. Check a child sitemap's address directly to see its URLs.
- Malformed entries: any of the first 20
<loc>values that is empty or not a valid absolute URL is flagged. Every URL in a sitemap must be absolute, starting withhttps://.
What makes a good sitemap
- List only pages you want indexed: canonical, live (200) URLs. Leave out redirects, 404s,
noindexpages and duplicate URL variants. - Keep
lastmodhonest. Google uses it only if it's consistently accurate, and ignorespriorityandchangefreq. - Stay within the limits: 50,000 URLs and 50 MB uncompressed per file. Above that, split the URLs and use an index.
- Submit it in Google Search Console and Bing Webmaster Tools, as well as listing it in robots.txt, so you can see how many of its URLs are actually indexed.
The sitemap is fetched live by our server. The format check covers the first 20 entries; the tool doesn't request each listed URL, so use the URL Redirect Checker to test individual pages. Private and internal addresses can't be checked.