designwithfocus

Technical SEO

How to Check XML Sitemap Files in Search Console

By Design With Focus Team 8 min read
A Search Console sitemaps table with a status column and a URL field

Short answer

Check an XML sitemap by fetching the URL, then reading its row in Search Console's Sitemaps report. Google accepts XML, RSS, Atom, and text sitemaps. One file is limited to 50,000 URLs and 50MB uncompressed. The report shows only sitemaps you submitted there or through the API, up to 1,000 rows. Success means the file was read. It does not promise every URL will be indexed.

Last verified against the sources listed below.

Key takeaways

  • Submitting a sitemap tells Google where the file is. You do not upload the file to Google.
  • A single sitemap is limited to 50,000 URLs and 50MB uncompressed. Gzip does not raise the 50MB cap.
  • The Sitemaps report lists at most 1,000 submitted requests, and only ones sent from the report or the API.
  • Status is Success, Has errors, or Couldn't fetch. Discovered pages are not an index count.
  • Google ignores changefreq and priority. It uses lastmod when the date is consistently accurate.
  • A small site, about 500 pages or fewer and well linked, may not need a sitemap at all.

How to check xml sitemap files is a fetch plus a status, not a guess from a filename. Google reads a sitemap as a list of URLs you think matter, and Search Console tells you whether it could read the file you submitted.

Technical SEO includes that crawl path. A sitemap helps discovery. The overview says it does not guarantee that every URL in the file will be crawled or indexed.

How do you check the file?

Confirm the URL loads, confirm URL Inspection can fetch it, then submit it and read the status.

The Sitemaps report help says “submitting” means telling Google where the file is. You cannot upload the sitemap into Google. The steps on that page are:

  1. Use an owner account if you will submit in the report. Without owner rights, list the sitemap in robots.txt instead.
  2. Put the file on your site, in a format Google accepts, and follow the syntax and location rules. The help page suggests an XML generator when you want a syntax check before you submit.
  3. Test access. The file must be available to Googlebot and not stuck behind a login. Run a live URL inspection and check that Page fetch says Successful.
  4. Open the Sitemaps report, paste that URL into Add a new sitemap, and click Submit.
  5. The file should be fetched immediately. Crawling the URLs inside it can take longer, and some may never be crawled.
  6. If the status is not Success, click the row and read the error section on the details page.

Check back later. Google recrawls a successful sitemap on its own schedule, separate from the rest of the site. A big change is a reason to submit again. Otherwise you can wait.

How do you find an XML sitemap?

Look for a file the CMS already publishes, or for a Sitemap line in robots.txt.

The overview says WordPress, Wix, and Blogger often make a sitemap for you. You may not have to create one. The build guide says the same, and it tells you to search the vendor’s docs for the URL when the host is Wix or Blogger.

A robots.txt line is the other public pointer:

Sitemap: https://example.com/my_sitemap.xml

You can repeat that line. The build guide says there is no limit to how many sitemap lines robots.txt may include. Google finds them the next time it crawls robots.txt.

Those discovered files do not appear in the Sitemaps report until you submit them there or through the API. The report is a submission log, not a full inventory of every sitemap Google has seen.

Put the file at the site root if you want it to cover the whole host. You may host it deeper, but unless you submit it in Search Console, it affects only URLs under its directory. The file must be UTF-8, and URLs inside it should be absolute.

The guide’s bad example is /mypage.html. The good example is https://www.example.com/mypage.html.

How do you see an XML sitemap?

Open the URL, then open the matching property in Search Console and click the row.

A browser will show the XML if the server returns it. If you get a 404, the help page says the address is wrong or the file is missing. The report only shows sitemaps for the property you are in.

A file submitted for http://example.com will not show under https://example.com or under a host with www. Match the property to the URL.

The top table’s status for the last request is one of three values. Success means fetched and read with no errors. Couldn’t fetch means Google did not get the file. “Sitemap had errors” means the file was partly read.

Column What the help page says it means
Sitemap URL The exact URL you submitted. Redirects are not followed
Type Sitemap, sitemap index, RSS, Atom, or Unknown
Submitted When you last submitted it in this report
Last read When Google last fetched it, if a fetch worked
Status Success, Has errors, or Couldn’t fetch
Discovered pages Page URLs parsed, duplicates counted once. Not an index count

Click the row for the details. “Sitemap could not be read” is a failed fetch. “Sitemap can be read, but has errors” lists the parse problems. See index coverage opens the indexing report for URLs in that file.

The report shows at most 1,000 submitted requests. You can submit more. The extra rows are not shown, and they are not ordered by submission time.

What do the limits and tags mean?

One file holds at most 50,000 URLs and 50MB uncompressed, and two common tags are ignored.

The build guide applies that pair of limits to XML, RSS, Atom, and text. Gzip is allowed, and the 50MB limit is the uncompressed size. Split a larger set and list the pieces in a sitemap index.

sitemaps.org states the same caps and writes 50MB as 52,428,800 bytes. An index file may not list more than 50,000 sitemaps, and it has the same size cap.

Google ignores changefreq and priority. It uses lastmod when the date is consistently accurate, such as when it matches the page’s real last change. A copyright-date bump is the guide’s example of an edit that is not significant.

The help page’s valid samples are 2005-02-21 and 2005-02-21T18:00:15+00:00. Time defaults to midnight UTC if you omit it, and if you include a time you include a zone. The W3C datetime note is the profile behind those formats: a four-digit year, and a literal T before the time.

An XML sitemap can also describe images, video, and news. A text sitemap cannot: it is one URL per line, nothing else, and the name must end in .txt. An HTML page of links can help people navigate, and it is not a file you submit in the report.

You might not need any of this. The overview calls a site small at about 500 pages or fewer, counting pages you want in Search, when those pages are linked from the home page and you are not trying to surface lots of video, images, or news.

What do you fix when the row is red?

Read the named error, fix that cause, and submit the file again.

Error the help page names What it tells you to change
Blocked by robots.txt Remove the rule that stops Google fetching the sitemap
Manual action Fix the action, then resubmit. Sitemaps are not read while it stands
HTTP 404 Visit the URL. The file is not at that address
File size Over 50MB uncompressed. Split it and submit an index
Empty sitemap The file has no URLs
URLs not allowed A URL is on another host, or above the sitemap’s directory
Invalid date Use W3C Datetime. Add a zone if you add a time
Too many tags A tag such as loc is repeated inside one url entry
Compression error Gzip the file again and resubmit

Fetch debugging is its own short path. Click the sitemap, click the error, paste the URL into URL Inspection, run Live test, and open Page availability. You want Crawl allowed set to Yes and Page fetch set to Successful.

If fetches keep failing, Google retries for a few days and then stops. A later success does not make Google forget URLs it already read. New information about a URL replaces older information about that same URL.

How search engines work is the reason a clean file still is not a ranking. Crawlers discover URLs, then choose what to keep.

Search Console is the product that holds this report. The report is the check. The overview is the decision about whether you need the file.

Image URLs inside a sitemap still point at files. An image compressor shrinks those files. It does not write the XML, and the report will not show image counts even after you submit them.

Frequently asked questions

How do you find an XML sitemap?

Start with the content management system. Google's sitemap overview says WordPress, Wix, and Blogger often publish a sitemap already. If you need the address, look in robots.txt for a Sitemap line. The build guide's example uses a full URL on example.com, and it says there is no limit to how many sitemap lines that file may contain. Search Console lists only sitemaps submitted in the report or through the API. A file at the site root can cover the whole host.

How do you see an XML sitemap?

Open the sitemap URL in a browser. The help page's 404 note says to visit the address and see if the file is there. Then open the Sitemaps report for the matching property, including the right http or https and the right www or non-www host. Click the row. A readable file shows discovered page URLs, and video URLs if the file had them. Duplicate page URLs are counted once. The report does not currently show data for image, video, or news URLs even if you submitted them.

What does Success mean?

Success means Google fetched and read the sitemap with no errors, and that the URLs will be queued for crawling. It does not mean every URL is indexed. The overview says a sitemap does not guarantee crawling or indexing, and that dropping a URL from the file does not keep Google from indexing it if other links point there. Use noindex to keep a page out. Couldn't fetch means the file was not retrieved. Has errors means some of it parsed and the clean URLs can still be queued.

What are the size limits?

Google's build guide limits one sitemap to 50MB uncompressed or 50,000 URLs, for every supported format. Gzip is optional, and the 50MB cap still applies after you uncompress. Past either limit, split the file and submit a sitemap index. The sitemaps.org protocol states the same caps and writes 50MB as 52,428,800 bytes. An index file has the same size cap and may not list more than 50,000 sitemaps. The Search Console report itself shows at most 1,000 submitted requests.

Which dates are valid in lastmod?

The help page says dates use W3C Datetime, and that you may omit the time. Its examples are 2005-02-21 and 2005-02-21T18:00:15+00:00. If you include a time, you must include a time zone. The W3C note requires a four-digit year. Google uses lastmod when the value is consistently accurate, such as when it matches a real content change, and it ignores changefreq and priority. A copyright-date edit is the guide's example of a change that is not significant.

Sources