JSON Diff
Paste two JSON objects or arrays and see exactly what changed between them. Both inputs are normalised to consistent formatting before diffing, so pure whitespace differences are ignored and only real value changes are highlighted.
Last updated: May 28, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is JSON Diff?
JSON Diff compares two JSON documents and highlights the differences line by line. It first parses and pretty-prints both inputs with consistent two-space indentation, so the comparison focuses on actual data differences rather than formatting noise.
This is useful when debugging API response changes, comparing configuration file versions, reviewing data migration outputs, or verifying that a transformation preserved all expected fields.
How to Use JSON Diff
Paste the original JSON into the left panel
Paste the modified or new JSON into the right panel
Click "Compare JSON" to see the diff
Green lines are additions, red lines are removals, grey lines are unchanged
Common Use Cases
- API developers comparing response payloads before and after a backend change to spot unexpected field changes.
- DevOps engineers diffing Kubernetes manifest JSON exports between deployment versions.
- QA testers verifying that a data transformation or migration produced the expected JSON output.
- Frontend developers comparing Redux state snapshots to debug unexpected state mutations.
- Backend engineers checking that a refactored serialiser produces identical JSON to the original.
Example Input and Output
Spotting a changed field value and a new field added between two API response versions.
{"id":1,"status":"active","role":"user"}Changed: "status": "active" → "inactive"
Added: "lastLogin": "2026-05-28"Key ordering
If two JSON objects have the same data but keys in a different order, the diff may show false differences. Sort keys in both inputs first using the JSON Formatter tool if you need order-insensitive comparison.
Browser-side only
All diffing runs locally in your browser. Your JSON is never transmitted.

