Addition, removal and date
One URL is added, one removed, one date changes and one URL stays unchanged. The total remains three: a global count alone would hide the migration.
In-depth practical guides
Find added or removed URLs, duplicates and lastmod or hreflang changes, then check their consequences on the pages.
Updated :

A sitemap describes URLs proposed for crawling. Comparing files checks a publication scope, but does not measure indexing or rankings. Separate the change observed in the file from the checks still needed on the pages.
Keep before and after files, their origin and coverage. Compare the same type: an index describes child sitemaps; a urlset describes pages. Identify partial extracts.
Compare exact loc values after XML decoding. Keep differences in scheme, host, case, trailing slash and parameters. Similar addresses suggest a migration to investigate, not a proven redirect.
Inspect duplicates and invalid loc values before interpreting totals. For lastmod, identify a significant content change: regeneration alone does not justify a new date. Compare declared hreflang destinations, then check reciprocity on the pages.
Check HTTP responses, canonicals and indexing exclusions for affected URLs. Record the reason for intentional removal and an equivalent replacement if one exists. Log each anomaly and chosen action, then repeat the comparison after correction.
Paste two UTF-8 XML documents of the same type: urlset or sitemapindex. Tool limits: 2 MiB UTF-8 and 2,000 entries per document. The profile accepts HTTP(S) URLs with ASCII hostnames, including punycode, without fragments or login credentials. Images and other extensions are not compared.
One URL is added, one removed, one date changes and one URL stays unchanged. The total remains three: a global count alone would hide the migration.
The address remains; lastmod changes. Identify the content change before retaining the new date. The tool does not turn a declaration into verified editorial history.
The main URL remains, but its Finnish hreflang link is removed. The difference appears in metadata with no added or removed URL. The affected pages still need checking.
Before contains the same URL twice and a relative address. The repeated URL is ambiguous and the relative address is excluded. Correct these entries before drawing a complete conclusion.
Entries and alternate links change order without changing values. The result remains unchanged. Parameter order within a URL is preserved, however.
Both child sitemap references remain; only one date changes. The page URLs inside those files remain unknown to this comparison.
From observation to decision
In this fictional example, A to E represent five distinct absolute URLs within the same scope. Each file contains five entries and four unique URLs. Letters abbreviate the lists; these are not XML snippets for publication.
Fictional learning case: counts and dates illustrate the method and do not describe a real assignment.
| Observation | Useful check | Next action |
|---|---|---|
| Before: [A, A, B, C, D] | Five entries, four unique URLs; A occurs twice. | Count entries and distinct URLs separately. |
| After: [A, B, C, E, E] | Five entries, four unique URLs; E occurs twice. | Do not infer stability from the two totals. |
| Retained: [A, B, C] | Three URLs belong to both sets. | Check metadata too; a retained address can have changed content. |
| D removed; E added | One URL disappeared and another appeared. | Record why, then check relevant pages, redirects and canonicals. The file alone does not establish removal from an index. |
| Repetitions: A before, E after | Each version has one extra occurrence. | Fix duplicate production without hiding the replacement of D by E. |
No. The sets become [A, B, C, D] and [A, B, C, E]: D and E still differ. Investigate that change and check destinations; deduplication proves neither a redirect nor preservation of content.
Reference documentation for declared URLs and metadata; the lists and calculations above are educational. Google Search Central · Build and submit a sitemap
Typical situations for preparing a check. They do not describe completed assignments or actual observations.
Fictional example: before contains A and B; after contains only B because extraction stopped early. The comparator finds A absent from the second extract; this does not establish removal from the complete sitemap. Record coverage and complete extraction before classifying a deletion.
Fictional example: /article becomes /article/. Exact comparison gives one removed and one added URL. It establishes neither equivalence nor a 301 redirect: check HTTP responses and canonical destinations separately.
Worked exercise
Fictional example: the values and documents teach the method and do not describe a real organisation.
Both guides initially exist in six languages. Compare URL categories rather than totals alone.
If the table exceeds the screen, scroll horizontally; arrow keys work when the region is focused.
| Item | Before | After |
|---|---|---|
| Guide A in Finnish | 1 | 0 |
| Guide B in Finnish | 1 | 0 |
| Other guide URLs | 10 | 10 |
| Added filtered searches | 0 | 2 |
Ten URLs remain, two are removed and two added. Filtered searches do not replace the Finnish versions' purpose. Restore their URLs if the pages exist and remain indexable; assess additions using their canonical. Equal counts hide a coverage loss.
If only lastmod dates change, check actual editorial changes; do not count them as new content.
Keep before/after sets, per-language differences and a justified decision for each change.
Documentation reference : Sitemaps — Protocol, lastmod · Consulted on
Removal from the file does not establish removal from the index. Check content, HTTP response and served directives, then the state observable in available tools.
Different forms may serve different pages or redirects. Automatic merging would hide a difference needing investigation.
Check the limits of the format and chosen tool. If files are split, retain their index and comparison scope. Label a partial analysis as partial; a processing ceiling is not the actual URL count.
TOOLS / REGISTERS
Two uncompressed UTF-8 XML files, at most 5 MiB and 20,000 entries each. No page or child-sitemap download, no image/video extension comparison and no complete protocol validation. Invalid loc values are reported and excluded from matching. The export contains complete URLs.