Sitemap comparison

Compare two XML sitemap files and export the URLs added, removed and kept.

Your input is processed in this browser. Text and files are not uploaded or saved by this tool. Use up to 200,000 characters per text area.

Your input

Uncompressed UTF-8 XML, up to 1 MB and 200,000 characters.

Uncompressed UTF-8 XML, up to 1 MB and 200,000 characters.

Enter your details or load an example, then run the tool.

Your result

Enter your details or load an example, then run the tool.

What it checks

  • Both files parse as sitemaps.org XML: either two urlset sitemaps or two sitemap indexes.
  • Every loc URL, compared as an exact string, sorted into added, removed and kept.
  • Duplicate loc entries within each file.
  • Malformed input: unclosed tags, entries with no loc or more than one, and document type or entity declarations, which are refused.

How to read the results

Removed URLs left the sitemap. Confirm each one was retired on purpose and now redirects or returns 404 or 410. A CMS or plugin update can drop URLs without anyone noticing.

Added URLs should each return 200, declare themselves as canonical and carry no noindex. A sitemap should list only pages you want indexed.

Matching is exact, so https://example.com/a and https://example.com/a/ are different URLs. Long added and removed lists of near-identical URLs usually mean a trailing slash, protocol or host change.

Duplicates do not harm crawling but usually point to a bug in the sitemap generator.

Questions, answered

When should I compare two sitemaps?

Before and after a site migration, redesign, CMS or plugin update, or any change to URL structure. Compare the live sitemap with the one from staging or from the previous release.

Does the tool check whether the URLs work?

No. It compares the URLs each file declares and never fetches them. Check the status, canonical tag and robots directives of added and removed URLs separately.

Can I compare sitemap index files?

Yes, two indexes against each other. The comparison covers the child sitemap addresses, not the pages inside them, so compare each child sitemap separately to see page changes.

Are lastmod, changefreq and priority compared?

No, only loc URLs. Google uses lastmod when it is consistently accurate and ignores changefreq and priority.

How large a sitemap can I compare?

Up to 10,000 entries per file, within the 200,000-character limit for each text area. Files are read in this browser and are not uploaded.

What this tool can tell you

Compares the URLs declared in two files without fetching them. Sitemap indexes compare child sitemap addresses, not the pages inside them.

Need evidence across your website? Site Health inspects captured page evidence before you choose a fix.

Explore Site Health