XML Diff
Compare two XML documents and see exactly what changed. Each difference is listed with its XPath, whether it was added, removed, or changed, and the old and new values. Everything runs in your browser, nothing is uploaded.
Original
Modified
Ready. Press Compare.
How to use the XML Diff
- Paste the original XML on the left.
- Paste the modified XML on the right.
- Press Compare and read the differences.
Example
Two catalogs that differ in one price and one author.
<catalog><book id="1"><title>JSON Basics</title><author>Ada</author><empty/><price>9.99</price></book><book id="2"><title>XML Guide</title></book></catalog>
Frequently asked questions
How are differences shown?
Each difference names its XPath, like /catalog/book[1]/price, and shows the old and new values. Added and removed elements are listed the same way.
Does element order matter?
Yes. The comparison is structural, so a reordered element shows up as a change at its position. Attribute order does not matter.
Are the documents uploaded?
No. The comparison runs entirely in your browser.