Compare XML

Compare XML online to instantly find differences, merge changes, and validate structure. This free XML diff tool helps developers and analysts ensure data accuracy fast.

XML A
Characters: 0
Elements: 0
Lines: 0
XML B
Characters: 0
Elements: 0
Lines: 0
Files never leave your device. Privacy & limits
Embed tool Add this tool to your website Get embed code

Add this comparison tool to a related page with a visible FileCompare source link.

Frequently Asked Questions About Online Calculators

Does a changed attribute count as a change?

Yes, and it is reported apart from element text. Attributes moving between two same-named elements is what the ordering options are there to settle.

Will it validate my XML?

No. It compares two documents against each other; it does not check either against a schema or DTD, so a well-formedness problem present on both sides goes unreported.

Will my original file be changed?

The result is downloaded as a separate file. Keep your original until you have checked the Node, attribute and value diff.

What should I check before using the result?

Open the Node, attribute and value diff in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.

Will the tool validate my XML structure?

No. The tool compares two documents against each other; it does not perform schema or DTD validation. A well-formedness problem that exists on both sides will not be flagged by the diff engine.

Will my original file be changed during the process?

No. The result is downloaded as a separate file or copied to your clipboard. Your original file remains untouched on your device. It is recommended to keep your original until you have verified the node, attribute, and value diff.