# Sitemap validator

> Check a sitemap URL or XML, or generate a urlset from a list.

Free XML sitemap checker. Fetch a public sitemap, or paste XML, and see URL counts, lastmod problems, and a sample of HTTP statuses. Generate a urlset from a list of URLs. Private addresses are refused.

- Page: https://benchline.fabwaseem.com/t/sitemap-validator
- Runs: in the browser, plus one server fetch of the public URL you give it.
- Price: free, no account
- Input: A public sitemap URL, sitemap XML, or a list of page URLs.
- Output: URL counts, issues, a sample of HTTP statuses, and generated XML.
- Keywords: sitemap checker, sitemap generator, xml sitemap validator
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Paste a URL or XML.** A URL is fetched on the server. XML is checked in the browser.
2. **Read the notes.** Missing dates, future dates, duplicates, and private locations are listed.
3. **Or generate one.** One absolute URL per line becomes a urlset you can download.

## Use it from an AI agent

MCP tool name: `validate_sitemap`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/sitemap-validator with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Validate sitemap XML or a public sitemap URL, including a sitemap index and a sample of HTTP statuses. Or generate a urlset from a list of URLs. Private addresses are refused and responses are size-capped.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "url": {
      "description": "Public sitemap URL. Private addresses are refused.",
      "type": "string"
    },
    "xml": {
      "description": "Sitemap XML. Use this or url.",
      "type": "string"
    },
    "urls": {
      "description": "URLs to place in a generated sitemap. When set, url and xml are ignored.",
      "maxItems": 5000,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "probe": {
      "default": true,
      "description": "Request a sample of locations and report HTTP status.",
      "type": "boolean"
    }
  },
  "required": [
    "probe"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "validate_sitemap",
    "arguments": {
      "probe": true
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Does a fetch follow a sitemap index?

Yes, up to three child sitemaps. Each response is capped, and only a sample of page URLs is requested for status.

### Are private URLs fetched?

No. A location on a private or loopback address is reported and skipped.

### Can I generate a sitemap without fetching?

Yes. The Generate tab builds XML in the browser from one URL per line.

## Related tools

- [robots.txt checker](https://benchline.fabwaseem.com/t/robots-txt-checker): Read allow and disallow rules, sitemap links, and the mistakes that make a robots.txt file lie.
- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
- [JSON-LD schema generator](https://benchline.fabwaseem.com/t/schema-generator): Fill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.
- [Meta tags inspector](https://benchline.fabwaseem.com/t/meta-tags-inspector): Read title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.
