XML Diff
XML Diff — diff two XML documents and list changes by element path. It runs entirely in your browser, so nothing is uploaded and it works fully offline.
XML Diff is a browser-based web developer tool on WebDevToolsBase. XML Diff — diff two XML documents and list changes by element path. It runs entirely in your browser, so nothing is uploaded and it works fully offline. To use it, paste your input and view the result directly in your browser — no signup and nothing to install.
XML Diff 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 Diff
- 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 Diff. XML Diff works on the XML you paste locally, keeping your markup intact while it processes it.
Your document is never uploaded. No data is sent anywhere, so it stays fast and private by default.
Frequently asked questions
What does XML Diff do?
Use XML Diff to compare your input without installing anything; everything happens client-side.
Does XML Diff cost anything?
This browser tool is free. Input size, node count, depth and unsupported-document limits are listed beside the result.
Does XML Diff upload my data?
Comparison takes place locally in this browser. Entered XML is not sent to a comparison service.
Does XML Diff 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.
Does XML Diff work on mobile?
Yes — XML Diff is just a web page and runs on any modern browser, including phones and tablets.