Compare Two XML Files
Diff two XML documents line by line and see exactly what changed. Color-coded output shows added, removed and modified lines instantly.
Document A
Document B
Diff
About Compare Two XML Files
Compare Two XML Files performs a line-based diff of two XML documents. It pretty-prints both sides first so whitespace-only differences are ignored, then highlights added, removed and context lines in color. The plain diff output can be copied or downloaded.
Features
How to Use
Examples
The sample adds a third product and changes the stock of p2 — the diff shows the inserted block as added lines.
Benefits
Frequently Asked Questions
Is my XML sent to a server?
No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
Can I download the result?
Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.