XML Sitemap Merger

Merge two XML urlsets, keeping the first full entry for each exact loc URL and retaining its metadata.

Your workspace

Server processing

Review the example values, then run the tool.

This utility combines two separate XML urlsets into a single file, prioritizing the first entry encountered for each unique location URL while preserving its associated metadata.

Merging your sitemaps

  1. Paste the primary XML urlset content into the Input field.
  2. Paste the secondary XML urlset content into the Second XML urlset field.
  3. Download the generated sitemap.xml file, which contains the merged entries from both inputs.

Understanding the merge logic

The tool processes the first input entirely, then iterates through the second input. If a URL from the second input is already present in the first, the second entry is discarded to prevent duplicates. If the URL is new, the entire entry, including all child tags like lastmod or changefreq, is appended to the final set.

Processing limits and data handling

Each input field accepts up to 5000 URL entries. The operation runs entirely on this server, meaning no data is sent to external services or search engines. Because processed jobs expire after 15 minutes, ensure you download your merged file immediately after the operation completes.

Merging two sitemaps

Two XML snippets, each containing a unique URL and one shared URL.

A single XML file containing all three unique URLs, with the shared URL represented by the entry from the first input.

Frequently asked questions

Does this tool handle sitemap index files?

No, this utility is designed specifically for individual urlset files containing url entries.

What happens if the two sitemaps have different metadata for the same URL?

The tool keeps the metadata from the first occurrence of the URL found in the primary input field.

Continue your workflow