JSON diff viewer
JSON Diff Viewer
Highlights added, removed, and changed fields. Good for configs and API responses.
Array diffs are compacted (no null padding). Example: [1,2,3] vs [1,2,3,4] => [4].
Differences will appear here.
How it works
Parses both JSON inputs, flattens keys, and compares values to show what is added, removed, or unchanged. Arrays are compacted so indexes stay tight without null placeholders.
- Diff summary lists counts plus a sample of keys for quick scanning.
- Both sides must be valid JSON; malformed input is flagged next to its field.
Quick examples
Load the sample, then tweak a field to see added and removed keys update live.
Mini FAQ
Why no inline diff?
This tool highlights structural differences; for text diffs use the text diff tool.
Arrays look reordered?
Array indexes stay numeric; compacting removes gaps but keeps order.
Can I compare objects with different roots?
Yes, keys are flattened, so even nested differences surface in summaries and panels.
Related tools