Sitemap checker and XML validator: format, URLs, status
The sitemap checker reads your XML sitemap as plain XML – the same file a search engine crawler fetches – and checks the format and the date of every entry. Give it a website or the URL of a sitemap: the free tool finds the sitemap through robots.txt, validates the XML, counts the entries, checks each lastmod date and opens up to 50 URLs to find redirects, errors, noindex and canonical tags that point elsewhere. Each issue in the list links to the URL that causes it.
Your recent checks are kept only in this browser.
Enter a website or sitemap URL
You can enter a domain such as example.com or the full address of a sitemap, such as https://example.com/sitemap.xml. With a domain, the tool looks for a Sitemap line in robots.txt first and falls back to /sitemap.xml. With a full address, the tool checks exactly that XML sitemap. A sitemap index, a compressed .xml.gz sitemap and a plain text sitemap with one address per line are all accepted, whatever their path.
What the sitemap checker can validate
The checks follow the sitemap protocol and the rules Google documents. The tool groups them into two parts: the sitemap itself and the entries listed in it.
XML format and sitemap index checks
- Whether the sitemap can parse as a
urlsetwith alocfor each entry, a sitemap index or a text sitemap, and not an HTML page. This XML structure detection is what a sitemap validator does first. - Broken XML structure, for example a
urlsetorlocelement that is not closed, which stops the parse and the reading of the remaining entries. - The limits of the protocol: at most 50 000 URLs and 50 MB uncompressed per sitemap.
- Every
lastmodvalue: the W3C date and no date in the future. - For an index: the list of child sitemap files, of which the first three are opened and counted.
Page status and indexability checks
- Entries on another host and entries in the list more than once.
- A sample of up to 50 pages on the same site: the HTTP response without following a redirect.
noindexin the HTML or in theX-Robots-Tagheader, and a canonical tag that points to another URL.- Sampled pages that the robots file blocks for crawlers.
Find your sitemap and understand its location
Most sites publish the sitemap at the root, but it can be anywhere: a CMS or an SEO plugin may use /sitemap_index.xml or a path in another folder. The reliable way to tell crawlers where it is: a Sitemap: line with the full URL in robots.txt, and a submission in Google’s console. If the tool says that the robots file does not declare the sitemap, add the line and check it with the robots.txt tester.
The location also matters for what a sitemap can include. Under the protocol, a sitemap placed in a folder should only include addresses from that folder path and below, and a sitemap on one host only URLs on the same host. A sitemap at the root of the site can include every URL of that site.
Read the sitemap report, review results and prioritize fixes
Review the results of the sitemap validator by level. Fix the red findings first: they stop crawlers from reading the sitemap or send them to URLs that will never be indexed. Warnings come next, information last.
Fix common sitemap issues: file access and XML errors
- Sitemap file not found or an HTTP code other than 200: publish it at the address in the robots file and make sure the server returns it without a login.
- HTML instead of XML: the URL shows a 404 template or another HTML document; point the robots file to the real sitemap.
- Broken XML: regenerate the file with your CMS or SEO plugin instead of editing it by hand, then validate it again with the tool and validate the sitemap index too.
- Invalid
lastmod: write the date as2026-11-04or with a time and zone, and change it only when the content changes.
Resolve redirects and unsuitable URLs
- Redirected entries: replace each one with its final address; the redirect checker shows where a link ends.
- Errors (4xx, 5xx): remove the entry or restore the content.
- Entries with
noindexor with a canonical tag to another address: remove them – a sitemap should only contain canonical URLs you want indexed. - Duplicates and entries on another host: keep one entry per URL, on the site the sitemap belongs to.
What a valid sitemap means for SEO
A valid sitemap helps search engines find and crawl your pages, especially new content with few internal links. It does not make them rank and it does not force indexing: Google still decides what to index. A sitemap full of redirects and noindex entries sends crawlers to addresses that are not meant for search results, which does not help SEO; keep only final URLs that can be indexed. The guide to pages that are not indexed shows how sitemap problems appear in Google’s reports.
Google ignores the priority and changefreq values, so the tool does not report them. lastmod is used when it is consistently accurate.
- Google Search Central: Build and submit a sitemap
Related free tools: choose the right tool and continue your audit
This XML sitemap validator reads one XML sitemap and a sample of its entries; for duplicate detection and the urlset structure it reads the whole sitemap. To check one entry in depth, use the indexability checker tool. To compare the sitemap with every crawled page, run the full audit, which also reports orphan pages and crawl errors across the whole site.
Your data
We run the check ourselves. Results stay 7 days for the share link and are not indexed. For the limits we log each check with the tool, the checked site and a keyed hash of your IP address (never the address itself), and we delete these records after 31 days. Recent checks stay only in your browser.
Frequently asked questions
- How do I check a website’s sitemap?
- Enter the domain above. The tool finds the sitemap through the robots file or at the root, validates it and opens up to 50 addresses from it; the report shows the count.
- Does every website have a sitemap?
- No. Small sites with good internal links can be crawled without one, but a sitemap helps search engines find new and deep pages, so most CMS platforms create one.
- What is the difference between a sitemap and a sitemap index?
- A sitemap contains the URLs to list. An index contains other sitemaps; large sites use one when they pass 50 000 URLs or 50 MB per sitemap.
- Does a valid sitemap mean my pages are indexed?
- No. It helps Google discover the URLs, but indexing depends on the content itself. Check the indexing report in Search Console for the real state.
- Are lastmod, priority and changefreq required?
- No. Only
locis required, and a missinglastmodis not an error. Google ignorespriorityandchangefreqand useslastmodwhen it is accurate. - Does sitemap placement affect which URLs it can include?
- Yes. A sitemap should contain URLs from its own folder and below, on the same host. A sitemap at the root can cover the whole site.
- How do I extract all URLs from a sitemap?
- Open the sitemap in a browser: each
locelement is one URL. The tool counts them and shows the 50 sampled URLs with a result for each. - Is this sitemap checker free?
- Yes, the sitemap validator is free, without registration. Why only 50 URLs? To keep the load on your server low; the full audit tool checks every URL it crawls.
Related guides
The guide Pages not indexed: why Google skips them and how to fix it explains the background. Related free tools: Indexability checker and robots.txt tester.
- Pages not indexed: why Google skips them and how to fix it
- How to run a technical SEO audit and prioritize the fixes
- SEO checklist: what to check on a website, in order
Read how to fix it in the guide “Pages not indexed” and on the check page “Sitemap errors”.
More free tools
- All free tools
- robots.txt tester
- Indexability checker
- Redirect checker
- Broken link checker
- hreflang checker
- Title and description
- Heading checker
- Structured data test
- Open Graph checker
- SEO content checker
- Website speed test
- Mobile friendly test
- AI bots in robots.txt
- llms.txt checker
- AI visibility checker
- Keyword rank checker
- Backlink checker
Want to check the whole site?
The free validator reads one file. The full audit checks every address in the sitemap against the live site, so it shows addresses in the file that redirect or return errors and noindex pages listed there, each with the evidence and a suggested fix, alongside every other check in the report.
Start the free pre-check