XML diff

Compare XML documents with formatting and attribute order normalized.

Original
Changed
Nothing is uploaded. The comparison runs on this device.

Add both texts to see the differences here.

Advertisement

Compare XML configuration, SOAP payloads, SVG files, Maven POMs or Android layouts. Diffspot pretty-prints both documents and sorts attributes before comparing, so reformatting doesn't hide the real changes.

How to compare XML

  1. Paste or drop the first XML document on the left.
  2. Add the second document on the right. Both are pretty-printed automatically.
  3. Review the differences side by side or unified, with changed attributes and text highlighted inside each line.

Why Diffspot

Advertisement

Frequently asked questions

Is whitespace inside elements preserved?

Text content is kept as written. Only indentation between elements is normalized.

Is it safe to paste confidential text or files?

Yes. Diffspot computes every comparison on your device: the page loads the engine once, then your text and files stay in the browser tab. There is no upload and no server-side storage, and ads are shown in a separate sandboxed frame that cannot read the page. How Diffspot works explains the details, and you can confirm it in your browser's network panel.

How large can the inputs be?

There is no fixed limit. Your device's memory sets it. Texts of tens of megabytes and hundreds of thousands of lines work well on a typical laptop. Phones handle smaller inputs.

More comparison tools