JSON Diff & Patch
Local ProcessingList the paths that differ between two JSON documents or generate a JSON Patch.
How It Works & Processing Standards
List the paths that differ between two JSON documents or generate a JSON Patch.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Desktop max file size: 50MB
- Mobile max file size: 20MB
Choose changed paths or JSON Patch under "Task". See exactly, path by path, how an API response changed between versions or what changed in a config.
What You Can Do
- Changed paths
- add, remove or replace with paths like /b/c, one per line.
- JSON Patch
- An RFC 6902 patch you can apply directly.
How to Use JSON Diff & Patch
- 1Choose a taskChanged paths or JSON Patch.
- 2Enter two JSONsPaste the base and the target.
- 3Read the resultCopy the differences or the patch.
Examples
Changed paths
Input: {"a":1,"b":{"c":2}} ↔ {"a":1,"b":{"c":3},"d":4}
Result: replace /b/c
add /d
JSON Patch
Input: {"a":1,"b":{"c":2}} ↔ {"a":1,"b":{"c":3},"d":4}
Result: [{"op": "replace", "path": "/b/c", "value": 3}, {"op": "add", "path": "/d", "value": 4}]
Common Use Cases
- Seeing what changed between API versions
- Building a PATCH request body
Frequently Asked Questions (FAQ)
Does reordering an array count as a change?
Yes. Array positions matter, so a reorder shows up as replace operations at those positions.
