Start a project

Tool 04 of 194 · Indexing

XML Sitemap Validator

Paste, open or fetch a sitemap and get every error with its line number, a tree of child sitemaps, a lastmod chart and every URL as a CSV.

XML Sitemap Validator at a glanceIllustration: 1, sitemap.xml; 2, processed in your browser; 3, Every problem by line.XML Sitemap Validator</>1sitemap.xml3Every problem by line2In yourbrowser
1 sitemap.xml 2 processed on your device 3 Every problem by line

XML Sitemap Validator

Sitemap

Fetch sends this address to leej.uk, which reads the sitemap (and up to 10 child sitemaps of an index) once as LeejTools/1.0 and keeps only a count. Or paste below: pasted text never leaves your device.

Result

FileLineLevelProblem

Files

    FileTypeEntriesSizeErrors

    URLs by lastmod month

    Every URL (CSV)

    Want the AI crawler view of your whole site? Run PingAI, which scores how well ChatGPT, Claude, Perplexity, Gemini and Copilot can reach and read it.

    01

    What it does

    Checks sitemaps and sitemap indexes against sitemaps.org rules with line numbers, including extensions, limits, hosts and lastmod dates.

    • sitemaps.org rules with line numbers
    • Sitemap index recursion: 10 children, 3 levels
    • .xml.gz files unzipped in the browser
    • image, video, news and xhtml:link checks

    02

    Private by design

    Everything you paste or upload stays in your browser. Only when you press Fetch does leej.uk read the address you give, once, as LeejTools/1.0, keeping nothing but a daily count.

    03

    What you get

    An error list and a CSV of URLs, with a Copy and a Download button on every result.

    • Sitemap
    • XML
    • Indexing
    • SEO

    Why it matters

    A sitemap is the list of URLs you want search engines and AI crawlers to find. When it's broken, it usually fails quietly: an unescaped & stops the parser halfway, a CMS serves an HTML error page at /sitemap.xml, or URLs on another host are ignored. Search Console reports some of this days later and without line numbers.

    This validator reads the file the way a strict XML parser does and checks each entry against the sitemaps.org protocol and the extensions Google documents for images, video, news and hreflang. It follows sitemap indexes to their children, unzips .gz files in your browser, charts lastmod dates by month so stale sections stand out, and exports every URL for checking elsewhere.

    How it works

    1. InputA sitemap or index, pasted or fetched
    2. In your browserChecked against the sitemaps.org protocol
    3. OutputErrors by line, child sitemaps and a fixed file

    Where it fits in a designer's workflow

    1. Plan
    2. Design
    3. Build
    4. Test
    5. Launch
    Before submitting a sitemap to Search Console or Bing.

    By the numbers

    Problems found in the sample sitemapErrors: 4; Warnings: 3Errors4Warnings3
    Found by this tool's parser in its sample sitemap. The limits it checks against come from the protocol: 50,000 URLs and 50 MB uncompressed per file, one host per sitemap, W3C dates for lastmod. Source: sitemaps.org protocol; Google: build a sitemap.
    Show the numbers as a table
    LineLevelProblem
    10errorUnescaped & (write &amp;). Parsers stop at this line.
    9warninglastmod has a time but no time zone; add Z or +01:00.
    14errorchangefreq “sometimes” isn't one of always, hourly, daily, weekly, monthly, yearly, never.
    14errorpriority “1.5” must be between 0.0 and 1.0.
    27errorshop.example.com isn't the sitemap's host (www.example.co.uk). Sitemaps can only list URLs on their own host unless you prove ownership of both.
    27warninglastmod 2027-03-01 is in the future. Google ignores lastmod values it can't trust.
    24warningDuplicate URL (first on line 20): https://www.example.co.uk/guides/oak-care

    How to use it

    1. Paste the XML, open a .xml or .xml.gz file, or fetch the sitemap's address.
    2. Fix errors from the top: an XML error early in the file hides everything after it.
    3. Check the lastmod chart for sections that never change.
    4. Download the URL list as CSV.

    FAQ

    How many URLs can a sitemap hold?

    50,000 URLs and 50 MB uncompressed per file. Bigger sites split into several files listed in a sitemap index.

    Do changefreq and priority matter?

    Google ignores both. Bing reads them loosely. lastmod matters, as long as it's accurate.

    Can a sitemap list URLs on another domain?

    Only if you've proved you own both sites (for example in Search Console, or through robots.txt on the other site). Otherwise they're ignored.

    Is my sitemap uploaded?

    Pasted or opened files are read on your device. A fetched sitemap is read once by leej.uk's fetcher, which keeps no content.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk