Sitemap URL Counter

Count URLs, sitemap index entries, and duplicate loc tags by pasting any XML sitemap.

Input

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

Understands both `<urlset>` sitemaps and `<sitemapindex>` files in one pass.
Downloads and parses the XML automatically so you do not have to copy/paste huge files.
Summarizes duplicate loc values and suggests whether you should split or compress the file.

How to Audit a Sitemap

1

Enter the public sitemap or sitemap index URL (XML or .gz).

2

Click Run Tool so we fetch and parse the XML automatically.

3

Toggle "Ignore duplicate URLs" to compare unique counts whenever needed.

4

Review the counts and details to decide whether to split the file or remove duplicates before deployment.

Common Mistakes

Letting a single sitemap exceed 50,000 URLs or 50 MB uncompressed.
Embedding staging URLs that should not be discoverable.
Forgetting to reference child sitemaps inside a `<sitemapindex>` file.

See also

  • Robots.txt GeneratorOnce you know what the sitemap contains, build a robots.txt whose Sitemap directive points crawlers straight to it.
  • HTTP Status CheckerA 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.