Online JSON Diff - Highlight Added, Removed, and Changed Fields
This tool uses a recursive deep-traversal algorithm to scan the structural differences of two JSON data sets, supporting infinite depth nested object and array item-by-item comparison. Results are clearly presented in a path table format, with colors distinguishing the type of change. It is an efficient assistant for API debugging, data version checking, and configuration file review. All comparisons are executed locally in the browser, and data is never uploaded to the server.
Added Fields
Fields present in the right JSON but not in the left are highlighted in green. Common in scenarios like API upgrades adding response fields or configuration file expanded parameters.
Removed Fields
Fields present in the left JSON but removed from the right are highlighted in red. Common in scenarios like deprecated API fields or simplified data models.
Changed Values
Keys present on both sides but with different values are highlighted in yellow. Common in configuration parameter modifications or before-and-after data updates.
Steps to Use
- Paste the first JSON into the Left Panel (Original)
- Paste the second JSON into the Right Panel (Target)
- Click the Execute Diff button on the toolbar
- View the diff report: Path / Status / Before / After
- Click Swap Sides for reverse comparison
Typical Scenarios
- API Debugging: Compare JSON returned by the same API in test/prod environments to quickly find field differences
- Version Upgrades: Compare API v1 and v2 response structures to assess the impact of field changes
- Config Management: Compare changes before and after modifying appsettings.json or package.json
- Data Validation: Verify if two data collection results are consistent and locate abnormal fields
Frequently Asked Questions
settings.theme represents the theme field under the settings object, and features[2] represents the third element of the array.