Sitemap diff

Sitemap Diff Tool — Compare Two XML Sitemaps

Compare two XML sitemaps to find added, removed, and unchanged page URLs. Paste XML or choose files, review changes, and export results locally for free.

0 characters
Paste the older URL sitemap, or choose its .xml file.
0 characters
Use the newer sitemap with the same site and section scope.

Compare page URLs from two XML URL sitemaps. Files stay in this browser. Sitemap indexes and gzip files need to be opened or decompressed first. This tool does not fetch websites or check HTTP status, redirects, indexing, or lastmod changes.

Example: compare sitemaps before and after a release

The sample replaces old-guide with new-guide while keeping the homepage and about page. Reordering URLs does not create changes. Try sample above to compare the actual XML.

Before sitemap URLs

/
/old-guide
/about

After sitemap URLs

/about
/
/new-guide
Expected sitemap comparison results
ResultURLs on example.com
Removed: 1/old-guide
Added: 1/new-guide
Unchanged: 2/, /about

Paths are shortened here for readability; the tool compares complete https://example.com URLs. A removal is a review item, not proof of a broken or deindexed page.

How to compare two XML sitemaps

Save the older sitemap before a deployment, migration, or content update, then save the newer version afterward. Paste the older XML into Before and the newer XML into After, or select each XML file from your device. Choose Compare sitemaps. Start with Removed URLs, then review Added URLs and Unchanged URLs. Copy a result group or download it as TXT or CSV for your release notes or review spreadsheet.

Find removed URLs after a website update

A sitemap diff helps explain how your published URL inventory changed. For example, an old category page may be absent because it was intentionally retired, accidentally excluded, or moved to a new path. The removed list narrows your investigation. Check the affected pages in your browser, crawler, redirect map, or Search Console before deciding what to fix. This tool compares the files you supply; it does not visit pages or determine whether they are indexed.

Compare the same site and the same sitemap scope

A useful before-and-after comparison starts with equivalent inventories. Compare the same host, language, content section, and export scope. A blog sitemap and a product sitemap naturally differ even when the site is healthy. If a sitemap index links to several child files, open the corresponding URL sitemap on each side first. If the hostname changed during a migration, exact URLs will all differ; use URL list compare with an explicit replacement rule for that separate task.

Exact URL matching, independent of entry order

The comparison reads each page location from its URL entry and ignores where that entry appears in the file. XML entities such as & are decoded, surrounding whitespace is trimmed, and duplicate page URLs count once. Protocol, host, path case, query parameters, fragments, and trailing slashes remain part of the value. The tool does not silently rewrite URLs, so /guide and /guide/ stay different. Image and video location tags nested inside a page entry are not treated as additional pages.

What this sitemap comparison does and does not check

Added means a complete URL exists only in After. Removed means it exists only in Before. Unchanged means the URL is present in both files, even if its lastmod or priority changed. This version accepts XML URL sitemaps, with the standard namespace or no namespace. It does not compare sitemap metadata, follow sitemap indexes, decompress gzip files, fetch remote sitemaps, validate every sitemap protocol rule, or check HTTP status, canonical tags, redirects, and search visibility.

Export a focused URL review queue

Choose a result group and download its full list. Only the first 200 URLs in that group are shown on screen to keep the result readable; copy and export include every URL in the selected group. Add your own columns for owner, expected outcome, and follow-up status in a spreadsheet. Keep the source files and compare the next release against the same baseline when you need a repeatable change record. Large XML files depend on your browser and device memory.

Keep the work private

This tool runs in the browser tab you are using. No account is required and your text is not submitted to a server. The result exists only on this device, so copy or download it before closing the page.

Frequently asked questions

Can I compare two sitemaps without uploading them?

Yes. Paste both XML texts or choose two XML files. Parsing, comparison, and downloads happen in this browser tab; the sitemap contents are not sent to a comparison server.

Can I paste a sitemap URL instead of XML?

Use the XML content or a downloaded XML file. This tool does not fetch remote URLs. For one URL per line, use URL list compare.

Does it support sitemap indexes or .xml.gz files?

Open the relevant child URL sitemap from an index, or decompress the gzip file first. Compare its plain URL sitemap XML here. An index is reported clearly rather than treated as a list of page URLs.

Does a removed URL mean the page is broken?

No. It means the URL appears in Before but not in After. Check the actual page, redirects, crawl scope, and sitemap generation settings before taking action.

Does it detect lastmod changes or check indexing?

No. Unchanged refers to URL membership only. Metadata differences, HTTP status, canonical tags, redirects, and indexing need separate checks.

Related tools