Skip to content
SentrueTools
Tools

Sitemap Diff

liveFree

Compare two XML sitemaps and see exactly which URLs were added, removed, or changed.

How to use Sitemap Diff

Why compare sitemaps?

Your XML sitemap is the list of URLs you are asking search engines to crawl and index. Comparing the sitemap from before a change with the sitemap after it is the fastest way to see what a migration, a redesign, a CMS upgrade or a plugin update actually did to your site. Release notes say what should have happened. The sitemaps show what did.

Each kind of difference calls for a different action:

  • Removed URLs were in the old sitemap and are missing from the new one. Unless the content was deleted on purpose, every one of them needs a 301 redirect, or search engines will meet a 404 and the page’s rankings and backlinks are lost.
  • Added URLs are new to the sitemap. Check that they are real pages you want indexed, not staging copies, tag archives or parameter variants that a plugin started exposing.
  • Lastmod changes show which pages were touched. A migration that rewrote every lastmod to the launch date is a hint that dates are generated rather than real, which makes them less useful to crawlers.
  • Unchanged URLs are the reassuring part: they kept their exact address.

Spotting these differences by eye is impossible on a site with thousands of pages, and spreadsheet lookups are slow and easy to get wrong. Sitemap Diff compares two sitemaps in your browser in a few seconds, with no limit on size.

How to use Sitemap Diff

  1. Add the Before sitemap. Upload the file (XML, .xml.gz or a plain list of URLs), paste URLs, or use the Fetch URL tab to download the live sitemap by its address.
  2. Add the After sitemap the same way. This is usually the staging sitemap, or the live sitemap after launch.
  3. Read the results. The comparison starts as soon as both lists are loaded. Four tabs show the Removed, Added, Lastmod changed and Unchanged URLs, each with a count.
  4. Filter, copy or export. Type in the filter box to narrow a tab, copy its URLs to the clipboard, or export every tab as one CSV file. Exports are free, with no row limit.
  5. Map the removed URLs. On the Removed tab, Map these in Redirect Mapper opens Redirect Mapper with the removed URLs as Old URLs and the After sitemap as New URLs, ready to match.

Use Swap to flip Before and After if you loaded them the wrong way round. Load sample sitemaps shows a small demo with something in every tab. Your last comparison is saved in this browser, so you can close the tab and come back to it.

What counts as the same URL?

Two URLs are treated as the same page when they have the same host, the same path and the same query string. The protocol (http or https) and any #fragment are ignored, because neither changes which page a search engine indexes.

Everything else counts, on purpose:

  • Letter case. /About and /about are different URLs to a web server and to Google.
  • Trailing slashes. /blog/ and /blog are different URLs, and a migration that changes one into the other needs redirects.
  • File extensions. /pricing.html and /pricing are different URLs.
  • Query strings. /shop?page=2 and /shop are different URLs.

This is stricter than Redirect Mapper, which deliberately loosens these differences to find likely matches. In a diff, loosening would hide exactly the changes you need to redirect. Percent-encoding is decoded before comparison, so /caf%C3%A9 and /café are the same URL.

Domain moves and staging sitemaps

When the two sitemaps use different main domains, for example www.old-brand.com before and new-brand.com after, or a staging host such as staging.example.com, comparing full URLs would report every page as removed and added. Sitemap Diff detects this and compares paths only, with a notice above the results that names both hosts. Each list’s main host is the one most of its URLs use, so a few stray links to other domains do not trigger it.

Reading lastmod dates

The <lastmod> element tells crawlers when a page last changed in a meaningful way. Sitemap Diff compares dates as points in time, so 2026-01-02 and 2026-01-02T00:00:00Z are equal, and 2026-01-02T10:00:00+02:00 equals 2026-01-02T08:00:00Z. Values that are not valid dates are compared as text. A URL that has a date in only one of the two sitemaps, or in neither, counts as unchanged: there is no evidence it changed.

The Lastmod changed tab is only meaningful when both sitemaps carry dates. If one of them has none, the tab says so instead of showing an empty list.

Google uses lastmod only when it is consistently accurate. If a diff shows every URL changed on the same day although only a handful of pages were edited, fix the sitemap generator so it reports the real modification date of each page.

Sitemap indexes and large sites

Large sites split their sitemap into a sitemap index that points to many child sitemaps. With the Fetch URL tab, Sitemap Diff follows an index automatically: up to two levels deep and up to 50 child sitemaps, fetched one after another. Every URL from every child is merged into one list, duplicates are removed, and anything that could not be fetched is listed with the reason (not found, not XML, too large, timed out).

Each fetched file can be up to 10 MB. For a bigger file, download it and upload it with the File tab, which accepts files up to 50 MB. If you upload a sitemap index file directly, Sitemap Diff tells you how many child sitemaps it lists: fetch the index by URL to load them, or upload the child sitemaps instead.

Gzipped sitemaps (.xml.gz) are decompressed in your browser, whether uploaded or fetched.

Common findings after a migration

  • Whole sections removed. Hundreds of URLs under one folder, such as /blog/, are missing because the section moved to /articles/. One wildcard rule in Redirect Mapper covers them.
  • Trailing slash or case changes. The new platform writes /products/blue-widget/ where the old one wrote /products/blue-widget. Every URL appears as both removed and added. Decide which form is canonical and redirect the other.
  • Extensions dropped. /about.html became /about. Again, every page needs a redirect.
  • Pages that should not be indexed. Search results, filtered collection pages, or thin tag pages appear in the Added tab. Remove them from the sitemap and consider blocking them in robots.txt.
  • Missing content. Pages that were not migrated at all show up as removed with no obvious new home. Recreate them, redirect them to the closest equivalent, or let them return 410 Gone if the content was retired on purpose.

A pre-launch checklist

  1. Save the live sitemap before anything changes, so you have a Before to compare against later.
  2. Compare it with the staging sitemap and work through the Removed tab until every URL has a redirect or a deliberate 410.
  3. Review the Added tab for pages that should not be indexed.
  4. After launch, compare the saved Before sitemap with the new live sitemap to confirm that production matches staging.
  5. Request a sample of removed URLs on the live site and check that each answers with a single 301 to a page that returns 200.

Privacy

Uploaded and pasted sitemaps never leave your device: parsing and comparison run in your browser. With Fetch URL, only the sitemap addresses being fetched (the one you enter and, for an index, its child sitemaps, one request each) are sent to our fetch service, which downloads each file and passes it back to your browser. The URL lists inside it are processed locally and are not stored on our servers.

Frequently asked questions

Can I compare sitemap index files?

Yes. Fetch the index by URL and its child sitemaps are followed automatically, up to two levels deep and 50 child sitemaps. Uploaded index files list their children so you can fetch or upload them.

Is Sitemap Diff free?

Yes. Comparing sitemaps and exporting the results as CSV is free with no URL limit.

Why does every URL show as removed and added?

Usually because the URL format changed: a trailing slash, letter case or file extension. Those are different URLs and need redirects. If only the domain changed, Sitemap Diff detects it and compares paths instead.

Are my sitemaps uploaded to a server?

No. Files and pasted URLs are compared in your browser. Fetch URL sends only the sitemap address to our fetch service, which returns the file to your browser.

What should I do with removed URLs?

Redirect each one to its closest equivalent with a 301, or let it return 410 if the content was retired on purpose. "Map these in Redirect Mapper" starts that work with one click.

Does Sitemap Diff support gzipped sitemaps?

Yes. .xml.gz files are decompressed in your browser, whether you upload them or fetch them by URL.