⚡
usefultools.dev
{≠}

JSON Diff Checker – Compare JSON Online

NOUVEAU

JSON diff checker that lists added, removed, changed and type-changed paths between two JSON documents, with a highlighted side-by-side view. Free and private.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

2 added1 removed5 changed1 type change
ChangePathValue
Changed$.version"1.4.0" → "1.5.0"
Type$.portnumber 8080 → string "8080"
Removed$.debugtrue
Added$.tags[2]"v1"
Changed$.owners[0].id1 → 2
Changed$.owners[0].name"Ana" → "Ben"
Changed$.owners[1].id2 → 1
Changed$.owners[1].name"Ben" → "Ana Lopez"
Added$.timeout30
Original (keys sorted)
1{
2 "debug": true,
3 "name": "orders-api",
4 "owners": [
5 {
6 "id": 1,
7 "name": "Ana"
8 },
9 {
10 "id": 2,
11 "name": "Ben"
12 }
13 ],
14 "port": 8080,
15 "tags": [
16 "api",
17 "orders"
18 ],
19 "version": "1.4.0"
20}
Changed (keys sorted)
1{
2 "name": "orders-api",
3 "owners": [
4 {
5 "id": 2,
6 "name": "Ben"
7 },
8 {
9 "id": 1,
10 "name": "Ana Lopez"
11 }
12 ],
13 "port": "8080",
14 "tags": [
15 "api",
16 "orders",
17 "v1"
18 ],
19 "timeout": 30,
20 "version": "1.5.0"
21}
⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Type
{"port":8080} / {"port":"8080"}
Type $.port number → string
Added
{"a":1} / {"a":1,"b":2}
Added $.b 2
Array
{"tags":["x","y"]} / ["x"]
Removed $.tags[1] "y"
By key
users by key id=7: dev / lead
$.users[?(@.id==7)].role
📖

Présentation

A JSON diff checker compares two JSON documents by structure rather than by text. Reformatting, indentation and key order do not create noise: you get a list of paths (like $.owners[1].name) that were added, removed, changed, or switched type — for example a number that became a string.

It is handy for comparing API responses between environments, reviewing config changes, or checking a fixture after a refactor. Arrays are compared by position, or matched by a key field such as "id" when the order of items is not meaningful. A side-by-side pretty-printed view highlights the same changes in context.

Both documents are parsed and compared in your browser; nothing is uploaded. Parse errors point to the line and column.

Pourquoi utiliser cet outil ?

  • Ignores formatting and key-order noise
  • Catches silent type changes like 8080 → "8080"
  • Match array items by id, not position
  • Exact line and column for JSON errors
  • Runs locally, data stays private
⭐

Fonctionnalités

🧭

Path list

Every difference is listed with a JSONPath-style location.

🔤

Type changes

Reports when a value changes type, e.g. number to string or object to array.

🔑

Array match by key

Pair array items by a key field such as id instead of by index.

↕️

Key order option

Ignore key order, or report objects whose keys were reordered.

🖍️

Side-by-side view

Pretty-printed documents with removed and added lines highlighted.

⚠️

Parse errors

Invalid JSON shows the message with its line and column.

🛠️

Mode d'emploi

1

Paste two JSON documents

Original JSON on the left, Changed JSON on the right.

2

Choose options

Keep "Ignore key order" on, or tick "Match array items by key" and set the key field.

3

Review the changes

Read the change table and the highlighted side-by-side view.

4

Copy the list

Click "Copy change list" to paste the differences into a ticket or review.

🤔

Questions fréquentes