JSON Diff
Compare two JSON values and identify added, removed, and changed properties with precise JSON paths.
JSON A
Original JSON
0 / 100,000
JSON B
New JSON
0 / 100,000
About JSON Diff
JSON Diff compares two JSON structures and identifies properties and array items that have been added, removed, or changed. It helps developers inspect API responses, review configuration updates, and debug changes in structured data.
How to use JSON Diff
- Paste the original JSON into JSON A.
- Paste the updated JSON into JSON B.
- Click Compare JSON to analyze both values.
- Review the added, removed, and changed properties.
- Use Copy Path to copy the location of a specific difference.
What is JSON Diff?
JSON Diff is a comparison tool that analyzes two JSON values and identifies differences in their structure and content. It checks object properties and array elements to show where data has been added, removed, or modified.
Types of JSON differences
Added
A property or array element exists in JSON B but not in JSON A.
Removed
A property or array element exists in JSON A but not in JSON B.
Changed
A value or data structure at a specific JSON path differs between the two inputs.
How does JSON Diff compare arrays?
Array elements are compared by their index positions. If an element is inserted or removed, subsequent elements may also be reported as changed because their positions have shifted. The tool does not automatically match array elements by their content or unique identifiers.
What is a JSON path?
A JSON path identifies the location of a value inside a JSON structure. This tool uses paths such as $.name and $.users[0].email. Property names containing special characters use bracket notation, such as $["first.name"].
When should you use JSON Diff?
JSON Diff is useful for comparing API responses between environments, reviewing configuration changes, debugging data transformations, checking JSON file revisions, and verifying whether two structured data sets are identical.
Is my JSON uploaded to a server?
No. JSON parsing and comparison are performed directly in your browser using JavaScript. Your JSON input does not need to be uploaded to a server.
What is the maximum JSON input size?
Each input panel supports up to 100,000 characters. For best performance, use reasonably sized JSON documents that your browser can process comfortably.
