JSON Compare
Compare two JSON objects side by side and visualize the differences. Find added, removed, and modified values instantly.
1. JSON Input A
2. JSON Input B
Comparison result
+ 2 Added
− 1 Removed
~ 2 Modified
= 4 Unchanged
Diff view
What changed?
author: "Ada"
features[0]: "format"
features[1]: "validate"
name: "Toolora"
private: true
3. Differences (Side by side)
Your data stays private
Everything is processed locally in your browser. We never upload or store your content.
About comparing JSON documents locally
JSON Compare diffs two JSON documents in this tab: side by side, unified, or tree, with added / removed / modified counts. Paste or open A and B. The diff updates as you type when both sides parse — there is no Run button. Swap sides anytime. Invalid JSON on either side shows an error instead of a guessed tree. Nothing is uploaded.
This is a structural JSON diff, not a git line diff of pretty-printed text (Text Diff is that sibling). Key order in objects may be normalized in the tree view. Arrays are compared by index unless the UI says otherwise. It is not a three-way merge and not a schema diff.
Related: JSON Validator to fix syntax first. JSON Formatter to pretty-print one document. Text Diff for prose. YAML ↔ JSON if you needed to convert before comparing. Fake JSON to invent a right-hand side for a demo.
How to use
Paste JSON A
Paste or open the first JSON document on the left.
Paste JSON B
Paste the second document on the right. Swap the two sides anytime.
Review the diff
Counts, the change list, and the diff update as you type.
Copy or download
Copy the unified diff or download it as a file. Nothing is uploaded.
Related JSON tools
JSON Formatter
Pretty-print JSON with indentation, optional key sorting, and minify. The result updates as you type.
JSON Minifier
Remove whitespace from valid JSON. Type or paste below — the result updates as you type.
JSON Validator
Validate and format your JSON. Check for syntax errors and view detailed error information. The result updates as you type — nothing is uploaded.
YAML ↔ JSON Converter
Convert YAML documents to JSON, or JSON values to YAML. The result updates as you type.
JSON Compare FAQ
Paste or open JSON A and JSON B. Side by side, unified, and tree views update as you type when both sides parse — there is no Run button. Swap sides anytime. Nothing is uploaded.
No. This is a structural JSON diff with added/removed/modified counts. Text Diff is a line diff of prose. Invalid JSON on either side shows an error instead of a guessed tree.
Arrays are compared by index unless the UI says otherwise. It is not a three-way merge or a schema diff. Validate syntax first in JSON Validator if a side will not parse.