Compare XML files online

XML Compare is a free XML diff tool. Paste two XML documents into the editors, upload two files or drop them onto the editors, and press Compare to see the differences side by side. No sign-up, no installation.

Compared as XML, not as lines

The documents are compared as XML trees. Indentation, line breaks, the order of attributes and <b/> versus <b></b> are not differences. Renamed elements are recognised, and identifying attributes such as id keep the right elements together.

Broken XML is repaired

Copied XML is often incomplete. Unclosed elements, a bare &, missing quotes and similar mistakes are repaired before comparing, and every repair is listed. Snippets without a common root element work too.

Choose what counts

In the settings, choose which kinds of differences count: for example ignore comments, or only check that the right document still contains everything in the left one.

Private

Documents up to 5 MB each are compared in memory and never stored. The site sets no tracking cookies.

How the comparison works: matching rules, settings, repairs, limits and privacy.

An unhandled error has occurred. Reload 🗙