JSON Diff Checker Online
Compare two JSON documents side by side and instantly see additions, removals, and modifications
Paste two JSON documents, hit Compare, and every added key, removed field, or changed value gets color-coded in seconds. The diff engine walks nested objects and arrays recursively, so nothing buried five levels deep slips through. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool parses both inputs into JavaScript objects, then walks every key and index recursively. It compares values by type and content — so "42" (string) and 42 (number) show as a type change, not a match. Results are color-coded: green for additions, red for removals, yellow for modifications.
Examples
Spotting a renamed field after a schema migration
Your backend team renamed a field and you need to confirm the old key is gone and the new one is present.
{
"userName": "alice",
"email": "[email protected]"
}
{
"username": "alice",
"email": "[email protected]"
}
Catching a type change in an API response
A price field switched from string to number after a deploy. The frontend broke because it called .toUpperCase() on what used to be a string.
{
"product": "Widget",
"price": "19.99",
"inStock": true
}
{
"product": "Widget",
"price": 19.99,
"inStock": true
}
Verifying config changes across environments
You're comparing staging and production configs. Three nested values differ — timeout, retry count, and a new logging flag that only exists in staging.
{
"server": {
"timeout": 30,
"retries": 3
},
"database": {
"host": "db.prod.internal"
}
}
{
"server": {
"timeout": 60,
"retries": 5,
"verboseLogging": true
},
"database": {
"host": "db.staging.internal"
}
}
Who Uses This
Compare API responses before and after a deploy to catch breaking changes before QA does.
Diff Terraform state files or Kubernetes manifests across environments to verify what actually changed.
Paste expected vs. actual test output and get a precise list of mismatches instead of reading line by line.
Check homework output against the reference answer — the color-coded diff shows exactly where your data diverges.
Common Mistakes
A trailing comma or unquoted key will cause a parse error before the comparison even starts. Run your JSON through a validator first if you get an unexpected error.
Arrays are compared position-by-position. If you insert an item at index 0, every subsequent element shifts and shows as "modified." That is correct behavior — it is not a bug.
Two objects with identical keys and values in a different order will show zero differences when this option is on (the default). Turn it off if key order matters to your use case — for example, when testing serialization output.
Technical Details
- Processing: 100% client-side — nothing is uploaded or stored
- Browser Support: Chrome, Firefox, Safari, Edge
- Comparison Depth: Unlimited recursive traversal
- Live Mode: Debounced at 300ms to keep typing smooth on large documents
- Views: Tree, Side-by-Side, and Flat path list
Frequently Asked Questions
What types of differences does the JSON Diff Checker find?
Three kinds: additions (keys that only exist in the second JSON), removals (keys only in the first), and modifications (same key, different value or different type). Type changes — like a string becoming a number — count as modifications, not removals plus additions.
Does it compare nested objects and arrays?
Yes, recursively with no depth limit. A change at data.users[0].address.zip gets flagged with its full path. Arrays are matched by index, so inserting an element shifts everything after it.
Is my JSON data sent to a server?
No. Parsing and comparison happen entirely in your browser with JavaScript. Nothing is transmitted, logged, or stored anywhere. Close the tab and your data is gone.
What does the "Ignore key order" option do?
When it's on (the default), {"a":1,"b":2} and {"b":2,"a":1} are treated as identical. Turn it off if you care about serialization order — for instance, when testing that your encoder outputs keys alphabetically.
Can it handle large JSON files?
Documents with thousands of keys work fine. For multi-megabyte files, the comparison might take a second or two depending on your machine. Live mode uses a 300ms debounce so typing stays responsive even with big inputs.