Jsonic's JSON Diff tool compares two JSON objects using structural comparison, not text diff. Key order and whitespace differences are ignored — only actual value changes are shown. Added properties appear in green, removed in red, unchanged in grey. Array element order does matter: reordered items are shown as changes.
How to diff two JSON objects
- Paste the first JSON into the left panel.
- Paste the second JSON into the right panel.
- Click Compare.
- Added lines are highlighted in green, removed lines in red.
- Unchanged lines are shown in grey.
FAQ
What does the diff highlight?
Added keys are shown in green, removed keys in red, and modified values in yellow with inline character-level highlighting.
Does the order of keys matter?
No. JSON objects are compared by key, not by order. Only structural and value differences are flagged.
Is my JSON sent to a server?
No. Comparison runs entirely in your browser.
What does "Show all lines" do?
By default, unchanged lines are hidden to focus on differences. Click "Show all lines" to see the full document with differences highlighted in context.
Can I share a diff with someone?
Yes. Click Share to copy a URL that encodes both the Original and Modified JSON in the fragment. Opening the link pre-loads both sides. No data is sent to a server.
How does it handle arrays?
Array elements are compared by index. If element [0] changes, that specific index is highlighted. Reordered arrays will show many differences even if the same items are present.
Can I compare non-object JSON?
Yes. The tool accepts any valid JSON — arrays, primitives, or objects.