JSON Diff Checker

Compare two JSON structures and visually highlight added, removed, or changed keys.

Diff Results

Added
Removed
Changed

How It Works

The JSON Diff Checker parses both input texts into JavaScript objects, then recursively traverses all keys at every nesting level. For each path, it checks whether the key exists in both, only one, or in both with differing values. Added keys appear when a path exists in JSON #2 but not #1. Removed keys appear when a path exists in #1 but not #2. Changed keys are detected via strict inequality comparison on primitive values. Arrays are compared element-by-element. The results are rendered with color-coded lines showing the full dot-notation path to each difference.

Frequently Asked Questions

How do I compare two JSON files online?

Paste your first JSON into the left input and the second JSON into the right input, then click Compare. The tool will highlight keys that were added, removed, or changed between the two files.

Does JSON diff checker work with nested objects?

Yes. The JSON diff checker recursively compares nested objects and arrays at any depth, showing the full path to each changed, added, or removed key.

Is the JSON diff comparison done on my device?

Yes. All comparison logic runs entirely in your browser using JavaScript. No data is sent to any server, keeping your JSON content private and secure.

Free tools by TUNA — energy supply from vetted manufacturers