XML sitemap diff
Compare two sitemaps or URL lists and identify added and removed URLs. Free local processing with no account required.
- Clipboard
Local analysis
Compare two URL lists or XML sitemaps to quickly identify added, removed, and unchanged URLs.
Local analysis: verify the result in the target environment before using it in production.
Result
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
Paste the previous version
The XML sitemap or URL list from before the change.
Paste the current version
The new sitemap or list, in the same format or not.
Analyze
The Previous URLs, Current URLs, Added, Removed and Common counters appear.
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-pageTips 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
- Sitemaps XML Protocol (opens in a new tab), sitemaps.orgPage in English
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
Keep going with these tools
Tools similar or complementary to this one.
Works well with
Create an XML sitemap from a list of URLs.
Create a clear robots.txt file to guide web crawlers.
Create hreflang tags from localized page versions.
Read next
SEO pre-publish audit: sitemap, links, redirects and structured data
A practical workflow to review SEO changes before publishing: sitemap, link relationships, redirects, keyword usage and structured data.
Technical SEO checklist before publishing a Web page
Check metadata, canonical, robots, structured data, URL, internal links and images before a page goes live.
Technical SEO: how search engines crawl and interpret a page
Understand crawling, indexing, canonicals, metadata, structured data, performance and internal linking without confusing optimization with ranking.
robots.txt: understand crawling, indexing and mistakes to avoid
Use robots.txt correctly, understand what it can and cannot block, and avoid confusing crawl control with deindexing.