XML Compare
XML Compare — compare two XML inputs and highlight added or changed nodes. It runs entirely in your browser, so nothing is uploaded and it works offline.
XML Compare is a browser-based web developer tool on WebDevToolsBase. XML Compare — compare two XML inputs and highlight added or changed nodes. It runs entirely in your browser, so nothing is uploaded and it works offline. To use it, paste your input and view the result directly in your browser — no signup and nothing to install.
XML Compare is a free XML Tools utility that runs entirely in your browser — nothing you enter is uploaded.
Compares XML element and attribute names by namespace URI and local name; prefix spelling and attribute order are ignored. Attribute values stay literal, including QName-like strings. Child order and parsed text whitespace are significant; XML parsing normalizes line endings and entity references. CDATA and adjacent text are combined; comments, processing instructions and XML declarations are ignored. Paths use one-based child positions after those rules, not XPath. DTDs are unsupported. Limits: 2 MiB UTF-8 per input, 50,000 nodes and 512 element levels. This is a positional tree comparison, not schema validation, byte equality or XML canonicalization.
How to use XML Compare
- Paste the original XML on the left and the revised XML on the right.
- Read changed, added and removed nodes or attributes at the reported child positions.
- Use the stated namespace, text and ordering rules to interpret equal or different results. This report does not merge changes.
- Copy the completed difference report. Correct malformed or unsupported input before copying another result.
About this tool
There is no server behind XML Compare. XML Compare works on the XML you paste locally, keeping your markup intact while it processes it.
Your document is never uploaded. Your input never leaves the page, and no account or install is required.
Frequently asked questions
How do I use XML Compare?
Paste one XML document in each panel, review the positional difference report and copy the completed result. The comparison rules beside the output define which differences matter.
Does XML Compare cost anything?
This browser tool is free. Input size, node count, depth and unsupported-document limits are listed beside the result.
Does XML Compare upload my data?
Comparison takes place locally in this browser. Entered XML is not sent to a comparison service.
Does XML Compare preserve attribute order and namespaces?
The source text is not reformatted. Comparison ignores attribute order and prefix spelling in names, compares namespace URIs and local names, and retains literal attribute values and ordered parsed text.
Can I use XML Compare without a connection?
Once the page and its dependencies have loaded, comparison runs in the browser without contacting a comparison service.