How to Diff JSON Online

Compare two JSON objects side by side and instantly see additions, deletions, and changes. Free online JSON diff tool — no signup required.

Open JSON Diff →

Step-by-Step Guide

1

Paste the original JSON

Paste or type your first JSON object into the left panel. This is your baseline — the "before" version. The tool accepts any valid JSON: objects, arrays, or nested structures of any depth.

2

Paste the modified JSON

Paste the second JSON into the right panel. This is the version you want to compare against the original. Both inputs are validated in real time, so you will see an error instantly if the JSON is malformed.

3

Review the differences

Click Compare. The tool highlights additions in green, deletions in red, and changes in yellow. Nested differences are shown at the exact path where they occur, making it easy to pinpoint what changed.

4

Copy or export the diff

Copy the diff summary to your clipboard for code reviews, documentation, or debugging. The structured output shows the JSON path, old value, and new value for every change detected.

Try It Now — Free

No signup, no download. Runs entirely in your browser.

Open JSON Diff

Frequently Asked Questions

Does it handle deeply nested JSON?
Yes. The diff algorithm recursively compares all levels of nesting. Whether your JSON is 2 levels deep or 20, every changed value is detected and reported with its full path.
How are array differences handled?
Arrays are compared element by element by index. If an element is added, removed, or modified at a specific position, the tool highlights it. For reordered arrays, each positional change is shown as a modification.
Does formatting matter?
No. The tool parses both JSON inputs before comparing, so differences in whitespace, indentation, or key ordering are ignored. Only actual data differences are reported.
Related Reference

JavaScript Cheat Sheet

View Cheat Sheet →

More Guides