JSON Compare
Diff two JSON documents by key path and type, not line by line.
What it finds
- Only in left / only in right: keys that exist on one side, like
user.phone. - Type mismatch: the same key with different types, like
"42"(string) vs42(number). - Null vs missing:
"email": nullon one side and noemailkey on the other, reported separately from missing keys. - Value changed: optional. Turn on Compare values to also see the same key and type with a different value.
Arrays
Schema merge (default) merges every element of an array into one shape and reports differences at
items[], so different lengths are not a difference and mixed-type arrays are compared as type unions.
By index compares items[0] with items[0] and reports length differences.
Why not a text diff?
Key order, whitespace and formatting never show up as differences. Numbers are compared by exact value, so
1.0 equals 1 while two large integers that differ in their last digit are still told apart.
Privacy
Everything runs in your browser. The JSON you paste is never uploaded to a server. It is kept only in this browser's local storage, so it is still there after a reload; Clear removes it.