JSON Compare

JSON Compare

Compare two JSON objects side by side and visualize the differences. Find added, removed, and modified values instantly.

Free
No signup
Instant
Private

1. JSON Input A

Lines: 8 Characters: 150

2. JSON Input B

Lines: 8 Characters: 160

Comparison result

+ 2 Added

− 1 Removed

~ 2 Modified

= 4 Unchanged

Diff view

+ AddedRemoved~ Modified= Unchanged

What changed?

features[2]: "compare"

license: "MIT"

author: "Ada"

type: "Web Application" → "SaaS Platform"

version: "1.0.0" → "2.0.0"

features[0]: "format"

features[1]: "validate"

name: "Toolora"

private: true

3. Differences (Side by side)

1
{
2
"author": "Ada",
3
"features": [
4
"format",
5
~
"validate"
+
6
],
+
7
"name": "Toolora",
8
"private": true,
9
~
"type": "Web Application",
10
~
"version": "1.0.0"
11
}
1
{
2
"features": [
3
"format",
4
~
"validate",
5
+
"compare"
6
],
7
+
"license": "MIT",
8
"name": "Toolora",
9
"private": true,
10
~
"type": "SaaS Platform",
11
~
"version": "2.0.0"
12
}

Your data stays private

Everything is processed locally in your browser. We never upload or store your content.

Learn more about privacy →

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 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.