Free sitemap validator
Is my sitemap telling Google the right things?
Your sitemap is the list of pages you hand to Google. If it has broken XML, relative URLs or made-up dates, search engines may read less of it than you think. Paste your sitemap or choose the file, and this sitemap validator explains every problem in plain words, with the line it is on.
Free, no signup. What you paste or choose stays in your browser: it is not sent to Site Clinic and not stored.
Sitemap validator
The result appears here.
How to use it
- Open yoursite.com/sitemap.xml in a new browser tab (some sites use sitemap_index.xml).
- Copy everything on that page and paste it into the box, or choose the saved file (.xml, .xml.gz or .txt).
- Optionally enter the address where the sitemap is published, so the tool can check every URL is on the same site.
- Press Check. Fix errors first, then warnings.
What this measures
- Reads one sitemap file that you paste or choose: XML, gzip-compressed XML (.xml.gz), or a plain-text list of URLs (.txt). The file is processed in your browser and is not uploaded.
- Checks that the XML is well-formed and UTF-8 encoded, and points to the line and column of the first error, such as an "&" that should be written "&".
- Checks the root element (<urlset> for pages, <sitemapindex> for a list of sitemaps) and the required namespace http://www.sitemaps.org/schemas/sitemap/0.9.
- Checks that every entry has exactly one <loc> holding an absolute, correctly escaped URL of fewer than 2,048 characters.
- Checks the protocol limits: at most 50,000 URLs (or 50,000 sitemaps in an index) and at most 50 MB (52,428,800 bytes) uncompressed.
- Checks that <lastmod> values use the W3C Datetime format and are not in the future, and flags many pages sharing one generated timestamp.
- Checks that <changefreq> is one of the seven allowed values and <priority> is between 0.0 and 1.0, and finds duplicate URLs.
- Recognises the image, video, news and hreflang (xhtml:link) extensions and checks their required parts.
- If you enter the sitemap's own address, checks that each URL is on the same host and protocol and under the same folder, as the protocol requires unless the sitemap is cross-submitted.
What it cannot determine
- It does not visit your website, so it cannot tell whether the listed URLs load, redirect, return errors, are blocked by robots.txt or are marked noindex.
- It does not open the child sitemaps a sitemap index refers to. Check each of them separately.
- It cannot tell whether Google or any other search engine has read your sitemap, or whether any page is indexed or ranks.
- It cannot tell whether your <lastmod> dates match when your pages really changed. It can only spot suspicious patterns, such as many pages sharing one generation timestamp.
- It cannot see whether you cross-submitted the sitemap through robots.txt or Search Console, so a URL on another host is reported as a warning, not an error.
- It checks the format against the published protocol. It is not a guarantee that any search engine will accept or use the file.
One check is a start. Your whole site is the picture.
A sitemap is one of several things that decide whether Google can find your pages. The free health scan checks your live site's sitemap, robots.txt, titles, redirects and more in one pass.
Questions
What is a sitemap?
A sitemap is a file, usually at yoursite.com/sitemap.xml, that lists the pages you want search engines to know about. It helps Google and other search engines find pages, especially new ones or ones with few links pointing to them.
Does a valid sitemap mean my pages are on Google?
No. A sitemap is a suggestion, not a guarantee. This validator checks that the file follows the published sitemap protocol. Whether a page is indexed is shown in Google Search Console, not in the file.
Is my sitemap uploaded anywhere?
No. The file you paste or choose is read by your own browser. It is not sent to Site Clinic and it is not stored.
What should I fix first?
Errors first: they can stop a search engine from reading the file at all, or from reading a URL. Warnings are worth fixing next. Notes explain things the tool could not check.
Can it check my live website?
It checks the sitemap file, not the pages it lists. To check your live site's sitemap, robots.txt, titles and redirects together, run the free website health scan.
More free tools
- AI crawler checkerDoes my website let ChatGPT, Claude and Perplexity read it?
- Structured data readerWhat does my page tell search engines about my business?
- Color contrast checkerCan people read the text on my website?
- UTM link builderHow do I see which emails and posts bring me visitors?
- Cron explainerWhen will this scheduled job actually run?