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.
Waiting for JSON
Waiting for JSON
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.
Related tools
All json tools- JSON FormatterFormat, minify, and validate JSON. Shows the exact line of any error.
- JSON Viewer & Path FinderExplore JSON as a tree or a graph. Click any value to copy its path in JS, jq, JSONPath, or Python.
- JWT DecoderDecode a JSON Web Token, read its claims and expiry, and verify HS256 signatures with a secret.
- JSON to CSV ConverterTurn a JSON array into CSV for Excel or Google Sheets. Nested objects flattened, table preview.
- CSV to JSON ConverterTurn CSV or TSV into a JSON array of objects. Numbers and booleans detected, dotted columns nested.
- JSON to TypeScriptTurn any JSON into TypeScript interfaces. Nested types named, optional keys detected.
- JSON to Go StructGenerate Go structs with json tags from any JSON. Nested structs named, pointers for nullable values.
- JSON to Kotlin Data ClassGenerate Kotlin data classes from JSON, for kotlinx.serialization, Gson, or plain Kotlin.