XML Diff
Compare two XML documents element by element.
Your data never leaves your browser
This tool runs entirely on your computer. What you paste or drop is never uploaded, never stored and never seen by us — close the tab and it's gone. How we know
Sign up to run — no credit card required.
Press Run to see the output. Sign up takes ten seconds — no credit card required.
Worked example
<a><b>1</b></a>
---
<a><b>1</b></a>✓ No differencesThis example is one of XML Diff's test cases — if the tool stopped producing this output, the build would fail.
Questions
- Does formatting count as a difference?
- No — that's the point. It compares structure, so re-indented or minified XML with the same content shows no differences. A text diff would drown you in whitespace noise.
- How do I supply the two documents?
- First document, a line containing only ---, then the second.