Compare Tool
JSON Diff – Compare Two JSON Objects
Paste two JSON objects below and instantly see what's different — added keys, removed keys, and changed values are all highlighted with color coding. Everything runs in your browser, nothing is uploaded.
JSON A (Original)
Paste the original / old JSON here
JSON B (Modified)
Paste the modified / new JSON here
Diff Result
Added in B
Removed from A
Value changed
Unchanged
How to Use the JSON Diff Tool
- Paste your original JSON into the JSON A box
- Paste the modified JSON into the JSON B box
- Click Compare JSON to see the differences highlighted
- Green lines = added in B, Red lines = removed from A, Yellow lines = value changed
Common Use Cases
API Response Changes
Compare API responses before and after a deployment to catch unexpected changes in the data structure.
Config File Review
Diff two versions of a JSON config file to understand what changed between environments or releases.
Data Migration Validation
Verify that migrated JSON records match the original source data by comparing them side by side.
Debugging & Testing
Compare expected vs actual JSON in unit tests to quickly identify what's different in the output.
Need to format JSON before comparing?
Open JSON Formatter →
Use the JSON formatter to clean up both objects first.