JSON & Data

JSON Diff

Find meaningful changes between two JSON documents without whitespace differences obscuring the result.

Differences
Your result will appear here.
Processed locally in this browser. Your input is not sent to DevKitly.

What is JSON Diff?

JSON Diff formats both documents with the same indentation and then compares them line by line, so whitespace differences disappear and only real changes remain. Lines starting with - exist only in the first document; lines starting with + exist only in the second.

How to use JSON Diff

  1. Paste your input into the editor above, or select Sample to load an example.
  2. Select Compare JSON. If the input cannot be processed, a message explains what to fix.
  3. Use Copy or Download to take the result with you, and Clear to start again.

Example

Input

{"plan":"free","seats":1}
---
{"plan":"pro","seats":1}

Output

  {
-   "plan": "free",
+   "plan": "pro",
    "seats": 1
  }

Practical use cases

  • Review configuration changes
  • Compare API responses
  • Debug changed fixtures

Common problems

  • Comparing invalid JSON
  • Expecting array order to be ignored
  • Leaving out the --- separator

Frequently asked questions

Does key order matter?

Yes. The comparison is line-based, so the same keys in a different order show as changes. Keep both documents in the same order for the cleanest diff.

Is JSON Diff free to use?

Yes. JSON Diff is free and does not require an account.

Does my input leave the browser?

No. This tool performs its processing locally in your browser and does not need to upload your input.