WSDL Analyzer

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. 1

    Paste XML A (original) into the left editor and XML B (changed) into the right.

  2. 2

    Click Compare XML: both documents are normalized, then diffed.

  3. 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