Youtilities

Popular

All tools

JSON Diff & Compare

Compare two JSON documents and see every added, removed, and changed value in one view.

Runs in your browser. Nothing is uploaded.

Original

Waiting for JSON

Changed

Waiting for JSON

Differences

Paste JSON on both sides.

What this does

Paste the original JSON on the left and the changed JSON on the right. You get one merged view: lines only on the right are marked added, lines only on the left removed, and a value that changed shows the old line then the new one.

How it compares

Objects are matched by key, so key order and formatting never count as a change. Arrays are matched by position. Numbers compare by value, so 5 and 5.0 are equal.

Reading a big diff

Only changes hides unchanged parts and keeps two lines of context around each change. Click a line to see its path; Copy gives you the whole comparison as text with + and − markers for a ticket or a chat.

Why does every item in my list show as changed?

Lists are compared item by item in order: the first item with the first, the second with the second. If one item was added or removed near the start, everything after it moves up or down by one and shows as changed. Sort both lists the same way before comparing, for example by id, and only the real differences will remain.

Is "5" the same as 5?

No. A number and a string that look alike are different values in JSON, so "5" against 5 shows as a change. The same goes for null against a missing key: a key set to null is still there, while a missing key shows as added or removed. These small type changes are a common reason an API client breaks after an update.

Where does the left side come from?

The Original box shares its text with the other JSON tools on this site, so JSON you formatted or viewed is already there. Swap exchanges the two sides. Both are kept in this browser only and never sent anywhere.

All json tools