Sitemap URL Counter
Count URLs, sitemap index entries, and duplicate loc tags by pasting any XML sitemap.
Use this free Sitemap URL Counter to count the number of urls in your xml sitemap.
About the Sitemap URL Counter
Search engines limit each XML sitemap to 50,000 URLs or 50 MB. This counter downloads the XML behind your sitemap URL, surfaces how many `<url>` or `<sitemap>` entries exist, and highlights duplicate loc values so you can stay compliant before uploading.
How the sitemap URL counter works
You paste a sitemap URL; a same-origin proxy fetches it, refuses anything whose content type isn't XML, and caps the download at 2 MB before decoding it as UTF-8. The counting then runs in your browser. Two separate regular expressions scan the markup: one collects loc values wrapped in url elements, the other loc values wrapped in sitemap elements, so a urlset and a sitemap index yield two distinct totals. Each address is trimmed and its XML entities decoded; empty ones are dropped. Duplicates are matched exactly and collapsed only when you tick the option, and reaching 50,000 URLs triggers the protocol limit warning.
Why This Counter Helps
How to Audit a Sitemap
Enter the public sitemap or sitemap index URL (XML or .gz).
Click Run Tool so we fetch and parse the XML automatically.
Toggle "Ignore duplicate URLs" to compare unique counts whenever needed.
Review the counts and details to decide whether to split the file or remove duplicates before deployment.
Common Mistakes
See also
- Robots.txt Generator — Once you know what the sitemap contains, build a robots.txt whose Sitemap directive points crawlers straight to it.
- HTTP Status Checker — A count only tells you how many URLs are listed, so test a sample of them to confirm they answer 200 rather than 404 or a redirect.
FAQ
Can this fetch my sitemap automatically?
Yes. Enter the sitemap URL and we fetch and parse it for you through a proxy — there is no need to paste the XML by hand.
Does it support sitemap indexes?
Yes, it counts `<sitemap>` nodes separately so you know how many child files are referenced.
How are duplicates handled?
Enable the toggle to collapse repeated `<loc>` values and see the unique total side by side.
Is my data stored?
No. We fetch the sitemap through a proxy only to count it, and nothing is stored.