Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

XML Sitemap Validator

Paste your XML sitemap and get an instant check for parse errors, missing loc tags, bad URLs, duplicates and the 50,000 URL limit, all in your browser with no signup.

Home / Tools / XML Sitemap Validator
Result
Waiting
Root type
-
Entries found
-

    This checks XML structure and the sitemap protocol rules in your browser. Nothing you paste is uploaded anywhere.

    Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

    An XML sitemap validator parses the sitemap file you paste in and checks it against the rules search engines expect: well formed XML, the correct root element, and a valid absolute URL in every entry. A sitemap with a silent error can quietly stop search engines from trusting any of the URLs it lists, so catching the mistake before you submit it saves real crawl time.

    What this validator checks

    The tool runs several layers of checks in order. First it parses your input as XML, so a stray unclosed tag or bad character is caught immediately with the parser's own error message. Second it confirms the root element is either urlset for a normal sitemap or sitemapindex for a sitemap index file, since anything else is not a valid sitemap at all. Third, for a urlset, it walks every url entry and checks for a loc tag, confirms the loc is an absolute URL starting with http or https, flags duplicate URLs, and warns if the file is approaching the 50,000 URL per file limit.

    Urlset versus sitemapindex

    A urlset file lists individual pages directly, one loc per url entry, and is what most small to mid sized sites use. A sitemapindex file does not list pages at all: it lists other sitemap files, each with its own loc, which is how larger sites split their full URL list once a single file would exceed the size or count limit. Getting the root element right matters because search engines read the two formats differently, and a urlset validator run against a sitemapindex, or the reverse, will flag it as invalid immediately.

    Fixing the issues it finds

    Relative or malformed URLs are the most common failure, since a loc value must be a complete absolute URL rather than a path fragment. Duplicate URLs usually creep in when a sitemap is generated from more than one source and merged without deduplication. Stale entries, URLs that used to exist but have since been deleted or redirected, do not break the file but do waste crawl attention on pages that no longer matter. Cleaning these issues up across a large site, and keeping the sitemap in sync as pages change, is exactly the kind of ongoing technical hygiene technical SEO work covers.

    Related articles

    FAQ

    XML Sitemap Validator: questions, answered

    What does an XML sitemap validator check?
    It parses your sitemap as XML and checks three things: that the file is well formed, that the root element is urlset for a regular sitemap or sitemapindex for a sitemap index, and that every entry has a valid absolute loc URL. It also flags duplicate URLs and warns if you are near Google's 50,000 URL per file limit.
    Does this tool fetch my live sitemap URL?
    No. You paste the sitemap content directly and everything runs in your browser. Nothing is uploaded or sent anywhere. If you want to check a live URL without downloading it first, open the sitemap in your browser, view the page source, and paste that into the tool.
    What is the difference between urlset and sitemapindex?
    A file with urlset as its root is a regular sitemap listing individual page URLs in url tags. A file with sitemapindex as its root is a sitemap index that lists other sitemap files rather than pages directly, which is how large sites split their sitemap once it would otherwise exceed the URL limit for one file.
    How many URLs can one sitemap file hold?
    Up to 50,000 URLs, and the uncompressed file should stay under 50MB, per the sitemap protocol search engines follow. If you have more URLs than that, split them across multiple sitemap files and list all of them in a sitemap index file.
    Why would a URL be missing from what Google indexes even if it is in my sitemap?
    A sitemap is a hint, not a guarantee. Google still applies its own crawling and indexing decisions on top of it, and a URL can be skipped if it is blocked by robots.txt, marked noindex, or judged low value. Listing a URL in a valid sitemap does not force indexing, but a broken or invalid sitemap can stop Google from trusting any of the URLs it contains.
    What is the most common sitemap mistake?
    Listing relative or malformed URLs instead of full absolute URLs starting with http or https is the most common issue, followed by leaving stale URLs in the sitemap after pages are deleted or redirected. Both make crawlers waste time on URLs that no longer matter and can water down trust in the rest of the file.

    More free tools

    Let's grow

    Ready to own page one?

    Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

    Book your free audit Explore services
    Get in touch

    Tell us about your project

    Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

    Or copy our email and write to us directly: contact@rankite.com