XML Sitemap Validator
Find and validate a site's XML sitemap: format, URL count, addresses, lastmod dates and sitemap indexes, with the problems search engines care about.
This site's server fetches the address you enter, like a search engine would. It sends no cookies, only reaches public websites, and keeps nothing.
How to validate an XML sitemap
- Enter your site (to find the sitemap automatically) or the sitemap's full address.
- Choose Validate sitemap.
- Read the problems first, then browse the addresses it lists. For a sitemap index, select a child sitemap to check it.
What is checked
- The file is a real sitemap (
<urlset>or<sitemapindex>), well-formed XML with the sitemaps.org namespace. Gzipped sitemaps (.xml.gz) and plain-text sitemaps are read too. - Every entry has a complete
<loc>address on the sitemap's own host, with no duplicates. lastmoddates are in W3C format and not in the future;changefreqandpriorityvalues are valid.- The limits search engines enforce: 50,000 URLs and 50 MB per file.
- Whether robots.txt points to the sitemap.
The first 1 MB of a sitemap is read, which covers about 5,000–10,000 URLs; for larger files the counts cover that part.
Frequently asked questions
How do I find my sitemap?
Enter just your domain. The validator looks for Sitemap lines in your robots.txt, then tries /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml (WordPress). If yours is elsewhere, enter its full address.
What makes a sitemap invalid?
XML that is not well-formed, a wrong or missing namespace, relative addresses, addresses on another domain, more than 50,000 URLs or more than 50 MB. Any of these can make search engines ignore part or all of the file.
Does Google use lastmod, changefreq and priority?
Google uses lastmod when it is consistently accurate, and ignores changefreq and priority. Only update lastmod when the page really changes.
What is a sitemap index?
A sitemap that lists other sitemaps. Large sites split their URLs into several files of up to 50,000 URLs each and list them in one index. The validator shows the child sitemaps; select one to validate it.
Should every page be in my sitemap?
Only pages you want in search results: canonical, indexable pages that answer 200 OK. Leave out redirects, noindex pages and duplicates.
How do I submit my sitemap to Google?
Add a "Sitemap:" line to your robots.txt, and submit it in Google Search Console under Sitemaps. Bing Webmaster Tools has the same option.
Related tools
Browse all tools- Robots.txt Tester Read a site's robots.txt, check it for mistakes and test whether Googlebot, Bingbot, GPTBot or any crawler may fetch a URL.
- Indexability Checker Find out whether Google (or another search engine) can index a page: robots.txt, noindex tags and headers, status codes, redirects and canonical.
- SEO Checker Audit any web page for SEO: title, meta description, headings, indexing, canonical, speed, mobile, structured data and social tags, with a score and fixes.
- Broken Link Checker Check every link on a page and find the broken ones: 404s, server errors, dead domains and redirect chains, with optional image checks.
- Open Graph Checker Preview how a link looks when shared on Facebook, X, LinkedIn and WhatsApp, and check its Open Graph and Twitter card tags and image.
- Keyword Density Checker Count the most used words and phrases in a page or your own text, with density, and whether they appear in the title, description and headings.