JSON Comparer and Diff Tool
Compare two JSON documents and inspect highlighted additions, removals and changes with before and after values.
Runs in your browser. Your input stays on this device.
What this tool does
Compare parsed values and highlight added, removed or changed paths in two JSON documents.
When to use it
Use it to check a fixture before and after a migration without counting whitespace and reordered object keys as data changes.
How to use it
- Paste the baseline into Original JSON and the new version into Updated JSON.
- Select Compare JSON and choose a change filter if needed.
- Read the JSON Pointer and before/after values. Use Edit inputs to make another comparison.
Worked example
Use {"items":[{"name":"draft"}],"enabled":false} as the original and {"items":[{"name":"published"}],"enabled":true,"version":2} as the updated document. Compare them and select the changed filter. The result includes /items/0/name and /enabled, with before and after values. Switch to added to see /version. This workflow is useful when reviewing a saved configuration after a migration. If you need to see only values removed from the original, select the removed filter. Keep the older document on the left so the labels match the direction of the change.
Original: {"mode":"test"}
Updated: {"mode":"live","retries":2}Changed /mode: "test" → "live"
Added /retries: 2Supported features and limitations
Object key order and whitespace are ignored. Array items are compared by position, so reordering an array may show multiple changes. An entirely added or removed object counts once at its path.
Common mistakes and edge cases
Object property order and formatting whitespace do not count as changes. Array elements are compared at their indexes. Inserting an item at the beginning of a list can make later elements appear changed even if their identifiers still match. A string such as "2" differs from the number 2, even when the same characters appear in both displays. When reviewing an array of records with stable IDs, consider sorting both sets consistently before comparing if position is irrelevant to your application. For a type migration, compare a small document with just one nested field before reviewing a production-sized fixture. Confirm how a field moving from missing to null appears, since downstream clients can interpret those cases differently.
Frequently asked questions
- What does /items/0/name mean?
- It is a JSON Pointer. Open items, select its first element, then read name. In a pointer segment, ~1 encodes a slash inside the key and ~0 encodes a literal tilde.
- How are whole objects counted?
- An object added or removed as a whole counts once at its own path. For example, a new settings object containing five properties is one addition at /settings. Expand or inspect the value to review everything inside that object.