Where is this site's sitemap?

Enter a domain or any page of the site. You get every sitemap it has, how many URLs each one lists, and what is wrong with it, with the line that shows it.

A domain or any URL of the site. The tool reads robots.txt, then tries ten common locations.

What it checks

  • robots.txt. Every Sitemap: line in it is opened first. This is where a site tells crawlers where its sitemaps are.
  • Ten common locations. /sitemap.xml, /sitemap_index.xml, /sitemap-index.xml, /wp-sitemap.xml, /sitemap.xml.gz, /sitemap/sitemap.xml, /sitemaps.xml, /sitemap.txt, /post-sitemap.xml and /page-sitemap.xml. Two addresses that end at the same file after redirects count once.
  • What each file is. A sitemap index, a list of URLs in XML, a plain text list, or not a sitemap at all, which is what you have when an HTML page answers with status 200. Gzip files are unpacked.
  • How many URLs. For a sitemap index, up to 20 of its sitemaps are opened and counted, and you are told how many were not.
  • The rules of the sitemap protocol. The namespace on the root tag, at most 50,000 entries in one file, every <loc> a full URL on the same host and protocol as the sitemap, no URL listed twice, and <lastmod> written as a W3C date.
  • Whether crawlers can reach it. A status other than 200, a sitemap that robots.txt does not name, and a sitemap whose own address robots.txt blocks.

What it can't see

A sitemap with an unusual name that is only submitted in Search Console. Nothing on the site points to it, so no outside tool can find it. If you know its address, add it to robots.txt and run the check again.

Anything past the first 750 KB of a file. For a larger sitemap you get "at least" a number of URLs, never a total, and problems further down the file are not seen.

The pages themselves. It counts the URLs in a sitemap and does not open them, so it cannot tell you that one of them is a 404 or a noindex page. For that, paste them into the noindex checker.

RSS and Atom feeds, and the image, video and news extensions. A feed is shown as a feed and its URLs are not counted.

Some sites refuse automated visitors. When a sitemap answers 403 here, a search engine may still get in.

Questions

Where should a sitemap live?

Google recommends the root of the site, such as https://example.com/sitemap.xml. Unless you submit it in Search Console, a sitemap only affects the URLs in its own folder and below, so a file in /blog/ cannot speak for the rest of the site.

Does a sitemap have to be in robots.txt?

No. You can also submit it in Search Console. A Sitemap: line with the full URL is still worth adding, because every crawler that reads robots.txt finds it there. You can add as many of these lines as you have sitemaps.

How big can a sitemap be?

50,000 URLs or 50 MB uncompressed, whichever comes first. Past that, split it into several files and list them in a sitemap index, which can itself name up to 50,000 sitemaps.

Does Google use lastmod, priority and changefreq?

Google says it ignores <priority> and <changefreq>. It uses <lastmod> when the dates prove to be accurate over time, so only change a date when the page really changed.