XML Diff Checker

Compare two XML documents side by side. Paste or upload your original and modified XML to see exactly what changed.

Why Use the XML Diff Checker?

When working with XML config files, API responses, or data feeds, you often need to see exactly what changed between two versions. This tool normalizes formatting and highlights additions, removals, and modifications line by line — making it easy to review changes, track regressions, or verify updates.

For best results, run both documents through the XML Formatter first to normalize indentation before comparing. You can also validate both documents to make sure they are well-formed XML. Learn about XML document structure in our XML tutorial.

Example Input

Paste your original XML in the first panel:

<config>
  <database host="localhost" port="3306" />
  <cache enabled="true" ttl="3600" />
</config>

And the modified XML in the second panel:

<config>
  <database host="db.example.com" port="5432" />
  <cache enabled="true" ttl="7200" />
  <logging level="info" />
</config>

Example Output

The diff highlights changes with color-coded lines:

- <database host="localhost" port="3306" />
+ <database host="db.example.com" port="5432" />
  <cache enabled="true" ttl="3600" />         → ttl="7200"
+ <logging level="info" />