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
- Paste or drop the first XML document on the left.
- Add the second document on the right. Both are pretty-printed automatically.
- Review the differences side by side or unified, with changed attributes and text highlighted inside each line.
Why Diffspot
- Attribute order ignoredAttributes are sorted, so reordering them never counts as a change.
- Pretty-printedMinified XML is indented consistently on both sides before comparing.
- Precise highlightsChanged attribute values and text are highlighted inside the line.
- Nothing is uploadedThe comparison runs in this browser tab, in WebAssembly. Your text and files are never sent to a server, not even ours, and nothing is saved.
- Fast on big inputsThe diff engine is written in Rust and runs in a background thread, so typing stays smooth. Files with hundreds of thousands of lines compare in about a second.
- Free, no accountEvery feature is free with no sign-up and no size paywall. Ads pay for the site, and they run in an isolated frame that can't read the page.
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.