Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

JSON Diff — Compare Two JSON Documents

Find exactly what changed between two JSON documents — API responses, config versions, fixtures or exports — as a list of paths with old and new values.

Mis à jour le

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : JSON Diff

  1. Paste the original JSON on the left and the changed JSON on the right.
  2. Read the summary of added, removed and changed values.
  3. Use the path column to locate each change; tick Ignore array order for lists whose order does not matter.

Structural diff vs text diff

A text diff compares lines, so reformatting, reordered keys or a changed indentation make every line look different. A JSON diff parses both documents and compares the data: {"a":1,"b":2} and {"b":2,"a":1} are identical, and a changed nested value is reported once with its exact path.

How changes are reported

TypeMeaningExample
addedKey or array element only in the changed document$.license
removedKey or element only in the original$.private
changedDifferent value or different type at the same path$.version: "1.4.0" → "1.5.0"

Arrays

By default arrays are compared position by position, which is right for ordered data. For sets — tags, permissions, IDs — tick Ignore array order: elements are matched by content, so only genuinely added or removed items are reported.

Typical uses

  • Checking what an API change returns differently before and after a deploy.
  • Comparing package.json, Terraform state or feature-flag configs between environments.
  • Reviewing updates to translation files and test fixtures.

For plain-text comparison use the diff checker; to inspect one document, the JSON viewer.

Aussi recherché comme : json compare, compare json online, json difference, diff json, json comparison tool, compare two json objects.

Outils complémentaires : JSON Diff

  • Formateur JSON — Collez votre code JSON pour le formater, le compresser ou le valider.
  • JSON Escape & Unescape — Make any text safe to paste into a JSON string — quotes, backslashes, newlines and Unicode — or turn an escaped string back into readable text or JSON.
  • JSON to CSV — Turn a JSON array into a spreadsheet-ready CSV.
  • JSON Schema Validator — Paste a schema and some JSON to see exactly which values break which rule — or generate a starting schema from example data.

Questions fréquentes

Does key order matter?
No. JSON objects are unordered, so the same keys and values in a different order are reported as identical.
Can I compare large JSON files?
Yes, several megabytes compare quickly in your browser. Only the first 300 characters of each changed value are shown in the table.
Is my JSON uploaded?
No. The comparison runs locally.
Puis-je installer JSON Diff en tant qu’application web et l’utiliser hors ligne ?
Oui. JSON Diff est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires