Sitemap validator
Validate sitemap XML: structure, absolute URLs, dates, changefreq, priority, duplicates and the 50,000 URL limit.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/sitemap-validate \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>"}}'
import json, urllib.request
body = {'input': {'text': '<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>'}}
request = urllib.request.Request("https://setget.net/v1/tools/sitemap-validate", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/sitemap-validate", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "sitemap-validate",
"input": {
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>"
}
}
{
"input": {
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>"
}
}
Endpoint: POST /v1/tools/sitemap-validate. Over MCP: run_tool with slug: "sitemap-validate".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The sitemap XML (a urlset or a sitemapindex). |
Examples
Input
{
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <url><loc>https://example.com/</loc><lastmod>2026-01-15</lastmod><priority>0.8</priority></url>\n <url><loc>/about</loc><changefreq>sometimes</changefreq></url>\n</urlset>"
}Result
{
"valid": false,
"type": "urlset",
"entries": 2,
"with_lastmod": 1,
"problem_count": 2,
"problems": [
{
"line": 4,
"message": "The address \"/about\" is not absolute. It must start with http:// or https://."
},
{
"line": 4,
"message": "changefreq \"sometimes\" is not allowed. Use always, hourly, daily, weekly, monthly, yearly or never."
}
]
}A sitemap index
Input
{
"text": "<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"><sitemap><loc>https://example.com/sitemap-1.xml</loc></sitemap></sitemapindex>"
}Result
{
"valid": true,
"type": "sitemapindex",
"entries": 1,
"with_lastmod": 0,
"problem_count": 0,
"problems": []
}Questions
- Are the listed pages checked?
- No. Only the XML you paste is examined. No address is requested.
- Why is a DOCTYPE rejected?
- Sitemaps do not need one, and DOCTYPE and entity declarations are a known way to attack XML readers, so this tool refuses them.
- Which date formats are accepted for lastmod?
- The W3C formats: 2026-01-15, 2026-01, 2026, or a full time such as 2026-01-15T09:30:00+00:00.
- How many problems are listed?
- The first 100. problem_count gives the total.
Related tools
- robots.txt testerCheck which URL paths a robots.txt file allows for a crawler, and which rule decided, following RFC 9309.
robots-test - XML formatterPretty-print XML with consistent indentation, or collapse it to a single line.
xml-format - URL normaliserClean a URL into a standard form: lowercase host, no default port, resolved dots, optional tracking removal.
url-normalize - .gitignore testerCheck which paths a .gitignore file ignores and which line decided each one, using real Git matching rules.
gitignore-test - Cache-Control explainerExplain a Cache-Control header directive by directive and how browsers and CDNs will treat the response.
cache-control-explain - Card number (Luhn) and IBAN validatorCheck a card number with the Luhn checksum and name its network, or check an IBAN by length and mod-97.
luhn-iban-validate