Compare two JSON documents
Paste the original and updated JSON to see which values changed.
How to use JSON Compare
Paste the original JSON on the left and the updated JSON on the right, choose the object key order rule, then compare. Each difference shows its path and before and after values.
JSON Compare rules and limits
Whitespace outside strings is ignored. Object key order is ignored by default; array order always matters and items are compared by index. Numeric spelling is significant: 1 and 1.0 differ. Results are capped at 1,000 differences. Paths use JSON Pointer escaping (~0 for ~, ~1 for /); a whole-document change is displayed at /.
Each input is limited to 20 MiB of UTF-8 text and 128 nesting levels. Processing runs in your browser with a 30-second timeout and no cloud fallback. A recent browser with Web Workers is required. Files and pasted text are never uploaded or saved to browser storage.
Example
{"id":1} compared with {"id":2,"active":true} → Changed /id and Added /active.JSON Compare FAQ
Is JSON diff the same tool as JSON compare?
Yes. This page compares parsed JSON values and lists structural differences rather than comparing text line by line.
Does array order matter?
Yes. Array items are compared by index. Reordering records can produce several differences; this tool does not match records by an ID field.
Why are 1 and 1.0 shown as different?
The comparison preserves exact numeric spelling rather than converting numbers to floating point. This also avoids rounding large integer IDs.