JSON Diff
Compare two JSON objects side by side with deep diff highlighting: added, removed and changed keys with color coding. Free online JSON diff tool.
Why Use a JSON Diff Tool?
When working with JSON configuration files, API responses, or data migrations, you need to see exactly what changed between two versions. Our JSON Diff tool performs deep recursive comparison, highlighting added, removed, and changed values with intuitive color coding, plus merge options for each difference.
Key Features
- Deep recursive diff: compares nested objects and arrays
- Color-coded highlights: green for added, red for removed, yellow for changed
- Diff summary with added/removed/changed counts
- Merge options: keep theirs or keep yours for each diff
- Path notation showing exact location of each difference
How It Works
- Paste your left JSON in the first editor
- Paste your right JSON in the second editor
- View all differences highlighted with color coding and paths
- Choose keep-left or keep-right for each diff to merge
Technical Details
This tool implements a recursive diff algorithm that traverses both JSON structures simultaneously. For objects, it compares by key; for arrays, by index. Each difference is categorized as 'added' (key exists only in right), 'removed' (key exists only in left), or 'changed' (different values at the same path). All processing is client-side.
Frequently Asked Questions
How deep does the diff go?
The diff is fully recursive — it compares all nested objects and arrays at any depth. Each difference shows the full path (e.g., 'settings.features.favorites') so you know exactly where the change occurred.
Can I merge the two JSON objects?
Yes! For each difference, you can click 'Keep left' or 'Keep right' to choose which value to use in the merged result. The merged JSON is generated automatically and can be copied to clipboard.
Related tools
JSON Formatter & Validator
Format, beautify, validate, and minify JSON data with tree view
XML Formatter & Beautifier
Format, beautify, minify, and validate XML documents
CSV to JSON Converter
Convert CSV data to JSON array format with customizable delimiters
JSON to CSV Converter
Convert JSON array data to CSV format with auto-detected columns
JSON to YAML Converter
Convert JSON data to YAML format with proper indentation
YAML to JSON Converter
Convert YAML data to JSON format with support for nested structures