Skip to main content

Sitemap validator

Check your XML sitemap for errors, URL availability, and robots.txt conflicts.
Enter a sitemap
Enter a URL or paste the XML code directly

The robots.txt file is checked automatically.

Validation result
Start the validation

Enter a sitemap URL or paste XML code

How to check your XML sitemap

  1. Enter the URL of your sitemap, for example https://www.example.com/sitemap.xml, or paste the XML code directly.
  2. Start the validation.
  3. Look at the overview, the URLs, and the issues.
  4. If you want, check whether the URLs respond.

If you enter a URL, the tool loads the file for you. It also fetches the robots.txt of the same domain and compares the URLs with it. With pasted XML code, this comparison is skipped.

What the validation finds

The tool checks the structure of the file and every single URL. It rates each problem as an error, a warning, or a note.

  • XML tags that are nested incorrectly or never closed (a simple well-formedness check).
  • A missing XML declaration, a missing urlset element, and a missing namespace.
  • URLs without a loc element, with an invalid format, or with more than 2,048 characters.
  • URLs that use HTTP instead of HTTPS.
  • Invalid values for lastmod, changefreq, and priority.
  • Duplicate URLs and missing lastmod dates.
  • More than 50,000 URLs or a file larger than 50 MB (only for pasted XML code, because by URL the tool loads at most 500 KB).
  • URLs that robots.txt blocks for all crawlers (Allow, Disallow, * and $ are evaluated).

Checking whether URLs respond

With the URL check, the tool requests the addresses one by one and shows the status code. That way you find 404 errors and URLs that don't respond. For a redirect, the tool shows the first status (for example 301) with the target and counts it as a redirect. It checks the first 50 URLs of the sitemap, one after the other.

If our service reaches its request limit (status 429), the check pauses, shows the wait time, and then continues. The tool waits at most 60 seconds per request. After that, it stops and reports that the limit is still active.

What the validator can't do

  • When loading by URL, the tool reads at most the first 500 KB of the file. For larger sitemaps, it shows a notice that only the beginning was checked, and it doesn't count the missing end as an error. Paste the code directly or check the child sitemaps of a sitemap index one by one.
  • It expects a normal sitemap with a urlset element. It reports a sitemap index that points to other sitemaps as an error. Check the child sitemaps one by one instead.
  • It doesn't read compressed files with the .gz extension.
  • For the robots.txt comparison, it uses only the group for all crawlers (User-agent: *). It doesn't check rules for individual crawlers such as Googlebot.

Whether Google accepts a sitemap and indexes the URLs is something you only see in Search Console. The validator checks the file, not the decision of the search engine.

Frequently asked questions

Everything about sitemap validation
What does the sitemap validator check?
It checks the XML structure, the validity of the URLs, and the format of lastmod, changefreq, and priority. It also checks limits and practices such as the maximum number of URLs, the length of each URL, duplicates, and the use of HTTPS.
How does the URL availability check work?
The tool requests the first 50 URLs of your sitemap one after the other and shows the HTTP status code. For a redirect, it shows the first status (for example 301) together with the target and counts it as a redirect, not as a success. You get an overview of 200 successes, 3xx redirects, and 4xx/5xx errors.
What does the robots.txt comparison do?
When you enter a sitemap URL, the tool loads the robots.txt of the same domain and checks whether Disallow rules block any sitemap URL. It uses the rules for all crawlers (User-agent: *), evaluates Allow and Disallow (the longest matching path wins, and Allow wins a tie), and understands * and $. robots.txt controls crawling, not indexing. A blocked URL can still show up in the index, but Google can't read it. A URL you list in your sitemap shouldn't be blocked.
Which problems count as errors?
Errors are XML tags that are nested incorrectly or never closed (the tool uses a simple well-formedness check, not a full XML parser), a missing urlset element, a missing loc element, an invalid URL format, an invalid changefreq or priority value, more than 50,000 URLs, a file over 50 MB, and a sitemap without URLs. Warnings, such as an invalid lastmod format or a URL with HTTP, are less serious but worth fixing.
What is the correct lastmod format?
Use the W3C datetime format: YYYY, YYYY-MM, or YYYY-MM-DD (for example 2025-12-17). With a time, always include the time zone, for example YYYY-MM-DDTHH:MM+01:00 or YYYY-MM-DDTHH:MM:SS+00:00. Fractions of a second are allowed (10:30:00.123Z). A time without a time zone is invalid. The tool also checks that the date exists, so 2025-13-45 is invalid. The tool flags other formats with a warning.
Which changefreq values are valid?
Valid values are always, hourly, daily, weekly, monthly, yearly, and never. The tool marks any other value as an error.
Can I check a sitemap URL directly?
Yes. Enter the URL of your sitemap (for example https://example.com/sitemap.xml), and the tool loads and validates it. By URL, the tool loads at most the first 500 KB of the file. If the sitemap is larger, the tool tells you that only the beginning was checked.
What happens with a very large sitemap?
By URL, the tool loads only the first 500 KB. The result then shows a clear notice and applies to that part of the file only. In that case, paste the sitemap as XML code or check the child sitemaps of a sitemap index one by one. The tool checks the limits of 50,000 URLs and 50 MB only for pasted XML code.

Related tools

All tools

Changelog

Latest updates and improvements to the Sitemap validator
v1.4.0

November 20, 2026

English version

  • • Added this English version of the tool
  • • Issue messages, status notices, and error texts are available in English
  • • Fixed: For a URL with a redirect, the URL check reported the status of the target (200). Now the first status (for example 301) appears with the target, and the "Redirect (3xx)" count is correct
  • • Fixed: The robots.txt comparison ignored Allow rules and the end marker $, and with several User-agent lines it read only the last one. Now, as at Google, the longest matching path wins, Allow wins a tie, and grouped User-agent lines apply together
  • • Fixed: lastmod with fractions of a second (for example 10:30:00.123Z) was rejected, and dates that don't exist, such as 2025-13-45, were accepted. Both are corrected
  • • Fixed: lastmod now fully follows the W3C format. Valid are YYYY, YYYY-MM, YYYY-MM-DD, and a date with a time and time zone (Z or +hh:mm). A time without a time zone is invalid
  • • Fixed: The robots.txt patterns are matched without regular expressions. Patterns with many wildcards (*) no longer slow down the comparison, even for long paths
  • • New: XML tags that are nested incorrectly or never closed now report an error. It is a simple check, not a full XML parser
  • • Corrected: The FAQ claimed that every URL is checked, but it is the first 50. It also now says that robots.txt controls crawling, not indexing
v1.3.1

November 18, 2026

robots.txt is loaded and compared

  • • Fixed: When loading by URL, the tool now actually fetches the domain's robots.txt. Before, the comparison of sitemap URLs with robots.txt blocks stayed empty because the request rejected the text file
v1.3.0

November 17, 2026

Notice for truncated sitemaps

  • • Added: A notice when a sitemap loaded by URL was larger than 500 KB and only the beginning was checked
  • • A truncated end of the file no longer counts as an error
  • • Fixed: The limits of 50,000 URLs and 50 MB apply only to pasted XML code, and the texts now say so
  • • Added a guide with instructions and use cases directly below the tool
  • • Added related tools at the end of the page
Show older versions
v1.2.0

December 28, 2025

Extended validation and size limit check

  • • Added: Sitemap size check (50 MB limit)
  • • Added: Recommendation to split the sitemap when it exceeds the limit
  • • Added: Filter for URLs with errors and warnings
  • • Added: Detailed size information (KB/MB)
  • • Added: Quick statistics on URLs with problems
  • • Improved the URL display with color coding
v1.1.0

December 20, 2025

URL check and robots.txt comparison

  • • Added: URL availability check (HTTP status)
  • • Added: robots.txt comparison
  • • Added: Display of blocked URLs
  • • Added: Status code statistics (200, 301, 404, and others)
  • • Improved the display of errors
v1.0.0

December 17, 2025

Launch

  • • XML structure validation
  • • URL format check
  • • Validation of lastmod, changefreq, and priority
  • • Check against SEO best practices
  • • Loading a sitemap from a URL
  • • Detailed error messages