XML compare

Paste two XML documents or drop the files: you get the list of structural differences (added and removed elements, attributes, text) with the XPath of each, without the noise of indentation and attribute order.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Drop an .xml file on this box (5 MB max), or
Drop an .xml file on this box (5 MB max), or

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

How to use it

  1. Paste the original XML on the left and the modified one on the right, or drop two files.
  2. Read the list: each row says what changed and where, with the XPath of the element.
  3. Keep "Ignore whitespace in text" on to avoid differences caused by indentation.

Frequently asked questions

Does attribute order matter?

No: attributes are compared by name. Child element order does matter, but the alignment recognises an element added or removed in the middle of a list, using the name and the id or name attribute.

Are comments and instructions compared?

No: the comparison covers elements, attributes and text. Comments, processing instructions and DOCTYPE are ignored.

Is my data sent to a server?

No: the comparison runs in your browser.

Privacy

The documents stay in your browser: they are not sent to any server.

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain