sangsen

JSON Diff

Compare two JSON documents and see exactly what was added, removed, or changed, by path.

Differences

Paste JSON into both sides to compare.

How it works

Paste JSON into the left and right boxes. Both are parsed and compared by structure, not raw text, entirely in your browser — nothing is sent to a server. Object keys are always compared in sorted order and array items by index, and each difference is reported with a stable path (e.g. $.items[0].id) plus whether it was added, removed, changed, or changed type.

Example

Changed and added property
{"name":"Alice","age":30} | {"name":"Alice","age":31,"active":true}$.active added right: true $.age changed left: 30 right: 31

FAQ

Is my JSON uploaded anywhere?
No. Comparison happens entirely in your browser — nothing you paste ever leaves your machine.
How are differences ordered?
Object keys are always compared in sorted order and array items by index, so the same two documents always produce the same difference order, regardless of how the source JSON was written.
What happens if one side is invalid JSON?
You get a clear error naming which side (left or right) failed to parse, with the parser’s own message, instead of an incorrect or partial comparison.