Tip: Keep Sort object keys on for stable results. JSON Patch is best with array order intact.
JSON A (original)
JSON B (updated)
Diff output
Legend: + added, - removed, ~ changed. Paths are JSON Pointer style (e.g. /meta/active).
How to use
Paste JSON A and JSON B, then run the diff.
- Paste the original JSON into JSON A and the updated JSON into JSON B.
- Keep Sort object keys on for more stable output.
- Click Diff to get a change list (or select JSON Patch for patch output).
- Use Pretty/Minify to normalize inputs, and Copy output to share.
FAQ
What does this JSON diff formatter output?
A compact list of changes by JSON Pointer path: added (+), removed (-), and changed (~). You can also export as JSON Patch (RFC 6902).
Is my JSON sent to a server?
No. The comparison runs in your browser and does not make network requests.
Why enable “Sort object keys”?
It makes output more stable and easier to scan by keeping object keys in consistent order.
How are arrays compared?
By default, arrays are compared by index. If you enable “Ignore array order”, the tool shows a summary of items added/removed (not a positional diff).
Can I generate a JSON Patch from two JSON documents?
Yes—choose JSON Patch output. For best results, keep array order comparison enabled.
What path format is used in the diff?
JSON Pointer style paths like /a/b/0, with proper escaping for ~ and / in keys.
Why do long values look truncated?
Truncation keeps the diff readable. Turn on No value truncation to show full values.