JSONHint

Preparing your workspace…

XML Diff

Compare XML as text with optional formatting. Inspect changes to tags, attributes and text, with documented comparison limits.

The interactive workspace loads with JavaScript. Instructions and limitations follow below.

Choose textual or formatted comparison

Compare <item id="1">Pen</item> with <item id="1">Pencil</item>. Check diff highlights the text change. Optional formatting can make compact documents easier to review.

What to check before using the result

This is a line comparison, not XML canonicalization or namespace-aware semantic equivalence. Whitespace and attribute ordering may produce changes.

Input privacy and troubleshooting

Tool input is processed in your browser. Optional URL imports, downloaded libraries and advertising may make network requests. Use non-sensitive samples on shared devices. If an operation fails, reduce the input to the smallest example that reproduces the issue and report the tool URL and expected result.

Read the related practical guide →