JSON Diff Tool
Compare two JSON files instantly. See additions, deletions, and modifications highlighted with clear visual indicators.
Compare JSON Files NowWhy Compare JSON Files?
Track Changes
See exactly what changed between different versions of your JSON configuration or data files.
Debug Issues
Quickly identify unexpected changes in API responses or data structures that cause bugs.
Verify Updates
Confirm that data migrations and transformations produce the expected results.
Code Review
Review JSON configuration changes from teammates with clear visual diff representation.
How to Compare JSON Files
Load First JSON
Add your first JSON file to the workspace using paste, drag-drop, or file upload
Load Second JSON
Add the second JSON file you want to compare against
Click Compare
Navigate to the Compare tab and select both files
Review Differences
See color-coded additions, deletions, and modifications
See the Differences Clearly
Original JSON
{
"name": "John Doe",
"email": "john@example.com",
"role": "user",
"settings": {
"theme": "light",
"notifications": true
}
}
Modified JSON
{
"name": "John Doe",
"email": "john@example.com",
"role": "admin",
"settings": {
"theme": "dark",
"notifications": true
}
}
JSON Diff Features
Side-by-Side View
View both JSON files side by side with synchronized scrolling for easy comparison.
Color-Coded Changes
Green for additions, red for deletions, yellow for modifications - instantly understand changes.
Deep Comparison
Compares nested objects and arrays at all levels, not just top-level properties.
Workspace Integration
Compare any files from your workspace. Keep multiple versions open for quick switching.
Line Numbers
Line numbers on both sides help you locate changes and communicate about specific differences.
100% Private
All comparison happens in your browser. Your data is never uploaded to any server.
Common Use Cases
API Response Debugging
Compare API responses between environments (staging vs production), different versions, or before/after a change to identify unexpected differences that cause bugs.
Configuration Changes
Review changes to package.json, tsconfig.json, or other configuration files. Ensure only intended changes are being made before committing.
Data Migration Verification
Compare data exports before and after migration to verify that data transformation scripts produce the expected output.
Pull Request Reviews
When reviewing PRs that modify JSON files, use the diff tool to understand exactly what changed and why.
Frequently Asked Questions
Does the order of keys matter when comparing?
JSON Purrser performs a semantic comparison, meaning it compares the actual structure and values regardless of key order. Two objects with the same keys and values in different orders are considered equal.
Can I compare large JSON files?
Yes, the diff tool is optimized to handle large JSON files. The comparison algorithm is efficient and runs entirely in your browser for quick results.
How are array differences shown?
Arrays are compared element by element. Added elements are shown in green, removed elements in red, and modified elements in yellow. The position in the array is preserved.
Can I compare more than two files?
The diff tool compares two files at a time. However, you can keep multiple files in your workspace and quickly switch between different comparison pairs.
Is whitespace ignored in comparison?
Yes, the comparison is based on the parsed JSON values, not the raw text. Differences in indentation, spacing, or formatting don't affect the comparison results.
Ready to Compare JSON Files?
See exactly what changed between your JSON files in seconds.
Start Comparing JSON - It's Free!