XML Sitemap Validator
Enter a domain or a sitemap URL. We find it, check it against the sitemap rules and test a few of its URLs.
How the sitemap validator finds your sitemap
Enter a domain or a sitemap URL. If you give a domain, the validator first reads the site's robots.txt and uses the sitemap listed there; if none is listed, it tries the default /sitemap.xml. The result says where the sitemap was found, so you know whether search engines can discover it the same way.
What it checks
It confirms the address returns a sitemap (not an HTML page or an error) with a <urlset> or <sitemapindex>, and checks the rules from sitemaps.org: the XML declaration, the sitemaps.org namespace, the 50,000-entry and 50 MB limits, entries without a <loc>, URLs that aren't full addresses, URLs on a different host than the sitemap, http:// URLs on an https site, duplicate URLs, and <lastmod> dates that aren't in W3C format. It also warns when the file is served with a content type other than XML.
Sitemap indexes and spot checks
For a sitemap index, it reads the first three child sitemaps and reports their status and how many URLs each contains. For a regular sitemap, it spot-checks that the first five URLs load with a 200 status and flags any that redirect or fail — sitemaps should list only final, working, indexable URLs. You also see the total number of entries, the file size, the newest lastmod date and how many entries have one.
Reading the result
Errors (red) can stop search engines using the sitemap: a missing namespace, an HTML page instead of XML, or relative URLs. Warnings (amber) are worth fixing but won't break it: duplicates, http:// URLs, redirects in the list, or odd lastmod formats. A clean sitemap with honest lastmod dates helps search engines find new and updated pages sooner.
How to check your sitemap, step by step
Checking an XML sitemap takes three steps:
- Enter your domain (example.com) to check the sitemap search engines will find, or paste the full address of one sitemap file.
- Read the result: where the sitemap was found, how many URLs it lists, and every error and warning with the entry it applies to.
- Fix the errors in your CMS or sitemap plugin, then run the sitemap checker again and resubmit the sitemap in Google Search Console.
Common XML sitemap errors and how to fix them
The problems this sitemap checker finds most often:
- The address returns an HTML page or a 404 instead of XML: the sitemap URL is wrong or your plugin is switched off. Fix the URL in robots.txt.
- Missing sitemaps.org namespace: add xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" to the <urlset> tag.
- Relative or wrong-host URLs: every <loc> must be a full address on the same site (https://example.com/page).
- Redirecting or broken URLs: list only the final address of each page, and remove pages that return errors.
- lastmod set to today on every page: use the date the content really changed, or leave lastmod out.
Sitemap checker vs Google Search Console
Search Console's Sitemaps report tells you whether Google could read a sitemap you submitted and how many URLs it found, but only for sites you've verified, and only after Google fetches it. This XML sitemap checker works on any site straight away, explains each problem in plain words and spot-checks that listed URLs load — use it before submitting, then confirm in Search Console.
Related tools
Use the robots.txt tester to make sure the URLs in your sitemap aren't blocked, the Google index checker to see whether a page is in Google, and the website SEO checker for a full one-page audit. Skyfliq's Site Health crawls the whole site and finds broken and redirected URLs for you.
How to use it
Type your domain (for example example.com) to check the sitemap search engines would find, or paste the full address of a specific sitemap file, such as a child sitemap from an index. Fix the errors first, then the warnings, and run it again — the result updates straight away.
Questions
Where should my sitemap be?
Usually at /sitemap.xml, and listed in robots.txt with a line like "Sitemap: https://example.com/sitemap.xml". You can also submit it in Google Search Console.
How many URLs can a sitemap have?
Up to 50,000 URLs and 50 MB uncompressed per file. Larger sites split it into several files and list them in a sitemap index.
Should every URL be in the sitemap?
Only canonical pages you want in search results that return 200. Leave out redirects, error pages, noindex pages and duplicates.
Does lastmod matter?
Search engines use it when it's accurate. Set it to when the page's content really changed — not today's date on every page.
Is the sitemap checker free?
Yes. The XML sitemap checker is free and needs no signup.
How do I check if my sitemap is working?
Run it through this sitemap checker: it should return XML with a <urlset> or <sitemapindex>, have no errors, and its URLs should load with a 200 status. Then submit it in Google Search Console → Sitemaps and check the status says Success.
Can I check a sitemap index?
Yes. Enter the index address; the checker reads the first three child sitemaps and reports each one's status and URL count.