You published a new blog post on Monday and shared it on LinkedIn and Instagram. A week later Google still does not show it. You open Search Console and your sitemap says "Couldn't fetch." This tool reads the sitemap and tells you the line where it breaks.
How to use the validator
- Open your sitemap in a new tab. It is often at yoursite.com/sitemap.xml. Copy all the text.
- Paste it in the box. You can also choose the file or drop it on the box. A .xml.gz file works too.
- Read the result. Every problem has a line number. Tap the line number to jump to that line in the box.
- Tap the fix button next to a problem, or Fix all for me. Then press Download fixed file.
- Put the fixed file on your site and send the sitemap to Search Console again.
Do you have a sitemap index, a file that lists other sitemaps? Choose the index and the sitemaps it lists in one go. The tool matches them by file name and shows the result for each one.
Where sitemap problems come from
A sitemap is a list of your pages for search engines. A plugin or your website builder usually writes it, so nobody reads it. It breaks when something changes: a plugin update, a new page with an & in the address, a date copied from a spreadsheet.
Why one small mistake matters
The classic one is a lone & in an address. In a sitemap, shop?color=blue&size=m must be written shop?color=blue&size=m. With a bare & the file is no longer valid XML, and Search Console can show a status like Has errors or Couldn't fetch.
Others are easy to miss. A date written 23/11/2026 instead of 2026-11-23. A page listed as /blog/post with no https:// and no domain. The same address twice. A file with more than 50,000 URLs or more than 50 MB before compression, which is the limit for one sitemap.
What it checks, and what it does not
It reads the file with its own small XML reader, one character at a time, so it can tell you the line. Then it checks the rules from sitemaps.org: the top element and its xmlns, one loc in each entry, a full http or https address under 2,048 characters, dates in the W3C form, the seven changefreq words, a priority from 0.0 to 1.0, repeated addresses, mixed hosts, and the limits of 50,000 URLs and 50 MB. An index may list up to 50,000 sitemaps. A DOCTYPE line is reported and never read.
It does not open your website. A page in your browser cannot fetch other sites, so you paste the text or choose the file. It does not check that your pages load, that they redirect, or that robots.txt lets search engines in. It lets image, video and news tags pass without reading them. And a valid sitemap does not promise indexing: each search engine decides that on its own.
On social media
No social network reads your sitemap. When someone shares a link, apps like Facebook, LinkedIn and X read the page behind it, and they use its Open Graph tags for the preview card. Check that with the Open Graph preview. A sitemap is for search engines. It matters for the pages your posts send people to: your blog, your shop and your link in bio page. If a page is in the sitemap, Google has a way to find it. No social size or limit applies here.
FAQ
How do I check my sitemap.xml?
Open yoursite.com/sitemap.xml in a browser, copy the text and paste it in the box above. The result shows as you paste. If that address is empty, look in your robots.txt file. It can list the sitemap on a line that starts with Sitemap. You can write that line with the robots.txt generator.
Does a valid sitemap mean my pages will be indexed?
No. A valid sitemap helps search engines find your pages. Whether they index them is their own choice, based on the page itself.
What is a valid lastmod date?
Use the W3C form: 2026-11-23, or with a time like 2026-11-23T10:00:00+00:00. A year alone and a year with a month also work. Slashes, spaces and words like Monday do not. Google reads lastmod only when it has been accurate before, so set it to the day the page really changed.
Do changefreq and priority do anything?
Google ignores both, so you can remove them. The tool still checks their values, because the format has rules for them.
Can I check a .gz sitemap?
Yes. Choose the .xml.gz file and the tool unpacks it in your browser. If your browser cannot unpack gzip files, unzip the file first and choose the .xml file.
How many URLs can one sitemap have?
Up to 50,000 URLs, and up to 50 MB before compression. If you have more, split them into several sitemaps and list those in a sitemap index.