JSON Diff
Compare two JSON documents with line, word, character, or unified patch diff modes. Normalize JSON before comparison to focus on structural changes instead of whitespace and key-order noise.
Complete Guide: JSON Diff
Everything you need to know about using this tool effectively
The JSON Diff tool compares two JSON documents and highlights what changed between them. It supports a normalized comparison mode that parses both inputs and reformats them before diffing, so differences in key order and whitespace are ignored. You can choose between line-level, word-level, character-level, and unified patch output formats. All processing happens in the browser.
This tool takes two JSON inputs, optionally parses and reformats them to a canonical form, then runs a diff algorithm to identify additions, removals, and modifications. Normalized mode reduces noise from formatting differences. Raw mode compares the text as-is. The output shows added and removed counts and displays the diff with color coding.
Reviewing API payload changes
Compare two API request or response payloads to see exactly what fields changed between versions.
Auditing configuration file changes
Diff two JSON config files to identify settings that were added, removed, or modified.
Comparing test fixtures
Check differences between expected and actual JSON outputs in test results.
Filtering out formatting noise
Use normalized mode to ignore whitespace and key order differences and focus on real data changes.
Paste both JSON documents
Enter the original JSON on the left and the updated JSON on the right.
Choose comparison mode
Select raw (literal text comparison) or normalized (parse, reformat, then compare).
Select diff format
Pick line, word, character, or unified patch output.
View the diff
The tool shows the differences with color coding and a summary of changes.
Use normalized mode when you want to ignore whitespace and key order differences.
Line diff is the most readable format for reviewing API or config changes.
Sort keys during normalization for a more stable comparison.
Unified patch mode produces output similar to git diff.
What is normalized JSON diff?
Normalized diff parses both JSON documents and reformats them to a consistent style before comparing. This filters out noise from key reordering and whitespace differences so the diff focuses on actual data changes.
When should I use raw text diff?
Use raw text diff when formatting itself matters, or when you want to see every literal character-level difference exactly as pasted.
What diff modes are available?
The tool supports line diff, word diff, character diff, and unified patch output. Line diff is the best default for most review workflows.
Is my JSON uploaded to a server?
No. All comparison happens in your browser using JavaScript. The JSON never leaves your device.
Can I compare JSON with reordered keys?
Yes. Use normalized comparison with key sorting to ignore key order differences and focus on the actual data.