Skip to main content

XML sitemap diff

Compare two sitemaps or URL lists and identify added and removed URLs. Free local processing with no account required.

  • Clipboard

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Local analysis

Compare two URL lists or XML sitemaps to quickly identify added, removed, and unchanged URLs.

Was this tool useful?

On this page

How does this tool work?

This comparer puts two versions of an XML sitemap, or two plain URL lists, side by side and shows the added, removed and common addresses. Use it to check a migration, a redesign or a new deployment: a page that drops out of the sitemap without a redirect is often a page that will lose its traffic.

If the content contains <loc> tags, the tool extracts their URLs; otherwise it reads one URL per line. The two formats can be mixed: a sitemap on one side, a list exported from a crawl on the other.

Each address must be an absolute http or https URL. It is normalised (lower-case domain, encoded characters) and duplicates within a version are removed; unreadable lines are ignored.

The comparison is exact: https://example.com/blog and https://example.com/blog/ are two different URLs, as are http and https.

The result lists added URLs prefixed with + and removed URLs prefixed with -, and shows the counts of previous, current, added, removed and common URLs.

How to use this tool

  1. Paste the previous version

    The XML sitemap or URL list from before the change.

  2. Paste the current version

    The new sitemap or list, in the same format or not.

  3. Analyze

    The Previous URLs, Current URLs, Added, Removed and Common counters appear.

  4. Handle the differences

    Check each removed URL: 301 redirect, page intentionally retired or oversight.

Use cases

Validate a migration

Compare the old site’s sitemap with the new one to list the URLs that need redirects.

Check a deployment

Make sure a release did not accidentally remove a whole section from the sitemap.

Track a catalogue

Spot product pages added or removed between two exports.

Examples

URL list compared with an XML sitemap

The old-page URL has disappeared: it should be redirected or deliberately removed. Two pages are new and two stayed in place.

Input

Previous version :
https://example.com/
https://example.com/blog/
https://example.com/old-page
Current version :
<urlset><url><loc>https://example.com/</loc></url><url><loc>https://example.com/blog/</loc></url><url><loc>https://example.com/new-page</loc></url><url><loc>https://example.com/contact</loc></url></urlset>

Result

Previous URLs: 3 · Current URLs: 4 · Added: 2 · Removed: 1 · Common: 2
+ https://example.com/new-page
+ https://example.com/contact
- https://example.com/old-page

Tips and best practices

  • For a sitemap index, compare each child sitemap: the index only lists file addresses, not page addresses.
  • Align the trailing slash and protocol before concluding that pages were removed in bulk: these are the most common migration gaps.
  • A URL removed from the sitemap stays indexed as long as it responds: remove it from the site too or redirect it.
  • Keep a dated copy of each published sitemap so you can compare after every deployment.

Sources and references

Frequently asked questions

Can I compare an XML sitemap with a URL list?

Yes. Each field is read independently: if it contains <loc> tags, those are used; otherwise each line is a URL.

Why does a URL show as both added and removed?

Because two variants are treated as different: trailing slash, http instead of https, capital letters in the path or an extra parameter. Compare them side by side to find the gap.

Are lastmod and priority compared?

No. Only <loc> addresses are compared; a page whose lastmod date alone changed appears under Common.

Are compressed .gz sitemaps accepted?

No. Decompress the file and paste its XML content.

Are my sitemaps sent to a server?

No. The comparison runs in your browser.

Related tools

Tools similar or complementary to this one.

Works well with

Create a clear robots.txt file to guide web crawlers.

Web & SEOFeaturedUse this tool