Compare two JSON objects without squinting
API responses change. Config files drift between environments. A test fails and you need to know what's different between the expected payload and the real one. Eyeballing two walls of JSON is how mistakes slip through.
Paste both versions and the viewer colors every difference. Added keys, removed keys and changed values each look different, and a report you can copy sums it all up.
How the comparison works
The tool parses both inputs and walks through them key by key. A key that only exists on the right side is marked added. A key that only exists on the left is removed. A key present on both sides with different values is changed, and you see the old and new value together.
Nested objects are compared all the way down, so a single changed field deep in the structure is easy to find. You don't have to expand and collapse by hand to hunt for it.
Key order doesn't matter
In JSON, {"a":1,"b":2} and {"b":2,"a":1} are the same object. The viewer treats them that way, so reordered keys don't show up as noise. Only real differences do.
How arrays are handled
Arrays are different, because order carries meaning. Items are compared by position. Insert an item at the start of a long list and everything after it may look changed. That's worth remembering when you read the result. If your arrays hold records with IDs, sort them the same way in both inputs before comparing and the diff gets much cleaner.
Invalid JSON
If either side isn't valid JSON, the tool tells you instead of producing a half-right diff. The usual culprits are trailing commas, single quotes, unquoted keys and comments. JSON allows none of them. Fix the syntax and compare again.
What it doesn't do
There's no option to ignore specific keys. If timestamps or request IDs change on every call and drown out the real differences, delete those fields from both inputs first. It takes a moment and the diff becomes far easier to read.
Your JSON is compared in the browser and isn't sent to a server. That's useful when the payload holds customer data or internal tokens. Very large documents depend on your device, so keep an eye on speed with files in the many-megabyte range.
The copyable report
Copy the diff report into a pull request, a bug ticket or a message to a teammate. A plain list of what changed beats a screenshot, since people can search it and quote it.
Good moments to reach for this: checking a staging response against production, reviewing a changed config, confirming an API upgrade didn't break the shape of the data, or writing a clear bug report.