Compare XML

XML hides its structure from the reader, so element order, attribute order, namespaces and comments all survive a harmless reformat and a text diff reports them as changes. Comparing the nodes keeps a real value edit separate from a document that was merely rearranged — which is most of what makes an RSS or SOAP change reviewable.

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.

Is Compare XML free?

Yes. This tool is free with no trial limit, subscription, or watermark. Use it for personal and commercial projects without an account.

Are my files uploaded to your servers?

Comparison runs locally in your browser for supported formats. Your files and text stay on your device and are not stored on FileCompare servers.