XML Sitemap Validator & Checker (sitemaps.org rules)
Pricing
from $0.20 / 1,000 url entry validateds
XML Sitemap Validator & Checker (sitemaps.org rules)
Validates XML sitemaps and sitemap indexes against the sitemaps.org protocol: namespace, 50,000-URL and 50 MB limits, absolute same-host locs, lastmod dates, changefreq and priority. Optionally checks each URL's HTTP status and redirects. Obeys robots.txt.
Pricing
from $0.20 / 1,000 url entry validateds
Rating
0.0
(0)
Developer
WrenTools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Sitemap Validator (sitemaps.org rules + optional URL status)
Find out whether your XML sitemaps are actually valid before a search engine tells you they are not. Give it a
sitemap, a sitemap index, or just your site (it reads the Sitemap: lines in robots.txt), and it checks every file
and every <url> entry against the sitemaps.org protocol. Optionally it requests each listed URL once and reports
the ones that are broken or redirect.
Broken links in a scheduled job: our Python and Node example checks every page your sitemap lists, writes the problems to a CSV, and exits with 1 when there is any.
The written version: our post Check a sitemap for broken links in Python: five traps that hide them
walks through the namespace that finds zero URLs, the index read as pages, .xml.gz, HEAD and redirects, and rate
limits, with the code.
For the pages themselves (titles, meta descriptions, headings, image alt text), run Own-Site SEO Audit.
What it checks
Each sitemap file
- Well-formed XML with a
urlsetorsitemapindexroot in thehttp://www.sitemaps.org/schemas/sitemap/0.9namespace - At most 50,000 entries and 50 MB uncompressed;
.gzsitemaps are decompressed with a size guard - An index that lists another index (not allowed by the protocol)
- Fetch failures, and files that robots.txt blocks, including a sitemap that redirects to a URL its site's robots.txt
blocks (
redirect-blocked-by-robots-txt)
Each <url> entry
<loc>present, absolute http(s), at most 2,048 characters, properly escaped, not duplicated<loc>on the same host as the sitemap<lastmod>in W3C datetime format, and not in the future<changefreq>one of the seven allowed values;<priority>between 0.0 and 1.0- With status checking on: 4xx/5xx answers, network errors and redirects (a sitemap should list final URLs). A URL
that redirects to one its site's robots.txt blocks is not followed there (
url-redirect-blocked-by-robots-txt)
Robots.txt is obeyed for every request, redirects included (each one is checked against the robots.txt of the site it leads to), and requests are spaced (500 ms by default). Only public internet addresses are fetched: a URL or redirect into a private, loopback or link-local network is refused.
Input
| Field | Type | Default | Notes |
|---|---|---|---|
sitemapUrls | array | - | Sitemap or index URLs. |
siteUrl | string | - | Used when sitemapUrls is empty: robots.txt Sitemap: lines, else /sitemap.xml. |
checkUrlStatus | boolean | false | Request each listed URL once. |
maxUrls | integer | 5000 | Across all files. |
maxSitemapFiles | integer | 50 | Including children of an index. |
requestDelayMs | integer | 500 | Pause between requests. |
Output
Dataset items of two types. Here is a run with status checking on, for a sitemap listing two pages: the home page,
and /old, which has an impossible <lastmod> and answers with a 301 redirect to /new.
{"type": "sitemap-file", "url": "https://www.example.com/sitemap-pages.xml", "kind": "urlset","httpStatus": 200, "gzipped": false, "sizeBytes": 260, "entryCount": 2, "errors": [], "warnings": [],"valid": false, "entriesWithIssues": 1}
{"type": "url-entry", "sitemap": "https://www.example.com/sitemap-pages.xml","loc": "https://www.example.com/old", "lastmod": "2026-13-01", "issues": ["invalid-lastmod", "url-redirects"],"changefreq": null, "priority": null, "statusChecked": true, "httpStatus": 200,"redirectedTo": "https://www.example.com/new"}
Redirects are followed, so httpStatus is the answer at the end of them (here /new's 200), and a URL that redirects
is reported with url-redirects and where it ended up in redirectedTo.
A file's valid and entriesWithIssues count the sitemaps.org rules only: they are decided when the file is read,
before any page is requested. A broken or redirecting page is reported in its own url-entry item and counted in
SUMMARY.urlEntriesWithIssues.
Key-value store record SUMMARY: sitemaps checked, how many are valid, URL entries and how many have issues.
Pricing
Pay per event, no start fee:
| Event | Price | Per 1,000 |
|---|---|---|
sitemap-file-validated | $0.002 | $2.00 |
url-validated (rules only) | $0.0002 | $0.20 |
url-validated-with-status (rules + one HTTP request) | $0.0006 | $0.60 |
With status checking on, only an entry whose URL was requested ("statusChecked": true) is charged
url-validated-with-status. An entry that is not requested is charged url-validated: one robots.txt blocks, or one
whose <loc> is missing, not an absolute http(s) URL, or on another host.
Limits
- Image, video and news sitemap extensions are read as ordinary entries; their extra tags are not validated yet.
- Sitemaps with a DOCTYPE or XML entities are rejected (sitemaps never need them, and they are a parser risk).
- Memory: 1,024 MB by default, 2,048 MB at most. A sitemap file is read as a stream, so checking the largest the
protocol allows (50 MB of short entries, about 936,000 of them) and returning 200,000 entries holds about 280 MB
(measured locally); the default leaves room for every file. A file that would need more than the run's memory to
check is reported with the error
memory-too-small, which names the memory that would do, and is not charged; the run goes on to the next file. Status checks wait on your server, so for a status-check run of a small sitemap 256 MB is enough. - A run stops early, with the entries checked so far saved and the reason in
SUMMARY.stoppedReason, when its timeout is near or when status checks answer very slowly (on average over about 4 s per URL at 1,024 MB, 17 s at 256 MB). Every entry it returns from a status-check run was checked. - A sitemap file whose whole reply takes longer than 157 s (the 50 MiB limit at 333 kB/s), or than the time left
before the run stops to save its results, gets an error starting
fetch-failed: deadline-exceeded. A status check gets 60 s on the same terms, and one that takes longer isurl-not-okwith astatusErrorstartingdeadline-exceeded. So a server that sends very slowly cannot hold the run.
Support
Report problems in the Issues tab. We aim to respond within a few days.