Compare JSON Online – Free & Private

DiffLab's JSON comparison tool highlights added, removed, and changed fields in real time. Switch between a collapsible tree view and a line-by-line text view. Your JSON is processed entirely in your browser and never sent to any server.

Drag & drop .json / .txt files
Drag & drop .json / .txt files
Cursor 1:1 Lines 0 Chars 0 Size 0 B Cursor 1:1 Lines 0 Chars 0 Size 0 B

Differences

Paste two JSON objects to compare

Why DiffLab?

🔒

No Uploads

Your JSON data is parsed and compared entirely in your browser. It is never sent to any server.

Real-time Diff

Differences appear as you type. Added fields, removed fields, and changed values are highlighted instantly.

🌳

Tree & Text Views

Switch between a collapsible tree that focuses on what changed and a line-by-line text diff.

How It Works

1

Paste Your JSON

Drop your original and compared JSON into the two boxes. Minified JSON is auto-formatted for you.

2

Compare Instantly

Green marks added fields, red marks removed fields, and orange marks modified values — in real time.

3

Copy or Download

Copy the diff summary, copy the formatted JSON, or download the result as a .json file.

Frequently Asked Questions

How do I compare two JSON objects?
Paste your original JSON in the left box and the new JSON in the right box. DiffLab highlights added fields in green, removed fields in red, and modified values in orange — all in real time.
Does it handle nested JSON?
Yes. DiffLab supports deeply nested objects and arrays. Use the Tree View to expand/collapse branches and focus on differences.
Is my JSON data uploaded?
No. Your JSON is processed entirely in your browser. It is never sent to or stored on any server.
Can I compare minified JSON?
Yes. DiffLab auto-formats minified JSON for readable comparison.