XML Diff Checker

Paste two XML documents to compare them line by line, or switch to word mode for fine-grained attribute-level changes.

Advertisement

Comparing XML files

XML documents — config files, SOAP payloads, Android layouts, RSS/Atom feeds — are often edited by hand or generated by different tools, which makes small unintended changes easy to miss. This tool does a straightforward line-by-line comparison, which works well for spotting added or removed tags, attribute changes, and reordered elements.

For best results, keep the indentation style consistent between the two versions you're comparing — differences in whitespace alone will show up as line changes.

Frequently asked questions

Does this validate my XML?
No, this is a text comparison tool, not a validator. It will happily diff invalid XML too.
Will it ignore whitespace-only differences?
Not automatically. If whitespace or indentation differs between the two documents, those lines will be flagged as changed.
Can I use this for HTML too?
Yes, the same line-by-line comparison works for HTML, SVG, or any other markup.

Related tools