XML Compare: Diff Two XML Documents Online
An XML compare tool shows the differences between two XML documents while ignoring meaningless formatting noise. This diff normalizes both documents first (whitespace and indentation), then compares them line by line, so you see real changes (added, removed, and modified elements) instead of indentation churn. Everything runs in your browser; nothing is uploaded.
How it works
- 1
Paste XML A (original) into the left editor and XML B (changed) into the right.
- 2
Click Compare XML: both documents are normalized, then diffed.
- 3
Review the color-coded result: green = added in B, red = removed from A, with a summary count on top.
Frequently asked questions
How does this XML diff handle formatting differences?
Both documents are normalized before comparison: whitespace between tags is collapsed and both are re-formatted with identical indentation. Two semantically identical files that differ only in formatting produce an empty diff.
Can I compare WSDL files with this tool?
Yes at the text level, but for WSDLs the dedicated WSDL Diff is better: it understands services, ports, and operations and tells you which operations were added, removed, or changed rather than which lines differ.
Is there a file size limit?
The diff runs in your browser, so the practical limit is your machine. Documents up to a few megabytes compare in under a second; beyond that the line-diff gracefully degrades to a faster block comparison.
Are my XML files uploaded anywhere?
No. Comparison is 100% client-side JavaScript; neither document leaves your browser.
Related tools
Compare two WSDL files or URLs online. See added, removed, and changed operations with breaking-change detail. The only browser-based WSDL diff. Free.
Free XML formatter: beautify, pretty-print, tidy and indent XML online, or minify it to one line. Idempotent formatting, no signup, no upload limit.
Validate XML online: well-formedness check with exact error messages and fixes, document statistics, and namespace report. Free, with nothing uploaded.
Analyze XML online: element counts, depth, namespaces, attributes, size stats and well-formedness with a structure health report. Free, in-browser.
Parse XML online into an explorable tree: elements, attributes, text and namespaces, plus parse-error diagnosis. Free and browser-based, no signup.