Paste or type to begin

Original on the left, modified on the right.

Compare XML files online

Compare two XML files side-by-side and instantly see every difference. This free XML diff tool provides syntax highlighting, auto-formatting with Prettier, and color-coded diffs. Perfect for comparing configuration files, SOAP responses, SVG files, RSS feeds, or any XML data. viewdiff runs 100% in your browser — your XML documents are never uploaded to any server.

Features

Frequently asked questions

How do I compare two XML files online?
Paste the original XML on the left and the modified XML on the right. viewdiff instantly highlights every difference — added elements in green, removed elements in red. No buttons to click, no sign-up needed.
Does it format XML before comparing?
Yes — click Format to auto-indent and pretty-print your XML with Prettier before comparing. This normalizes formatting so you only see meaningful differences.
Can I compare SOAP responses?
Yes. Paste any valid XML including SOAP responses, WSDL files, SVG markup, RSS feeds, Maven POM files, and configuration files.
Does it handle XML namespaces?
Yes — the syntax highlighter and diff engine handle namespaced XML, namespace prefixes, and xmlns declarations correctly.
Can I compare large XML files?
Yes. viewdiff uses the Monaco editor (same engine as VS Code) which handles large documents efficiently with virtualized rendering.
Is my XML data private?
Yes — viewdiff runs 100% client-side in your browser. Your XML documents are never uploaded to any server. Safe for comparing sensitive configuration files.
Can I ignore whitespace in XML comparisons?
Yes — use the Format button to normalize indentation, or toggle "Ignore whitespace" in Settings to hide formatting-only differences.
Is this XML diff tool free?
Yes, completely free with no ads, no account required, and no usage limits. Compare as many XML files as you want.

More diff tools