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.
More XML Tools
View AllPrettify XML
Free XML formatter and prettifier. Beautify messy XML with 2-space, 4-...
Generate XML Art
Convert an image into a valid ASCII-art-like XML document — every row ...
Flatten an XML
Extract all keys and values of an XML document as a flat key=value lis...
Truncate XML
Loop over an XML document and truncate long element names, attribute v...
Highlight XML Syntax
Free XML syntax highlighter that tokenises and colorises tags, attribu...