JSONHack
Validator · Formatter · Base64
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

  1. Paste your original JSON into the JSON A box
  2. Paste the modified JSON into the JSON B box
  3. Click Compare JSON to see the differences highlighted
  4. 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?

Use the JSON formatter to clean up both objects first.

Open JSON Formatter →