JSON Comparator
Deep compare two JSON responses and highlight differences
About JSON Comparator
JSON Comparator is a free online tool that performs a deep, recursive comparison of two JSON objects or arrays and shows you every difference — added keys, removed keys, changed values, and type mismatches — with the exact dot-notation path to each difference.
Unlike a plain text diff, this tool understands JSON structure. It does not matter how the two JSONs are formatted or indented. The comparison is purely semantic: it parses both inputs, walks every key and index recursively, and reports only meaningful data differences. This makes it ideal for comparing API responses, configuration files, feature flags, database records exported as JSON, or any two structured JSON payloads.
How to Use JSON Comparator
- 1Paste JSON A (original or left side) into the first textarea.
- 2Paste JSON B (modified or right side) into the second textarea.
- 3Click "Compare JSON" to run the deep diff.
- 4Review the summary counts (Added, Removed, Changed, Type Mismatch) and the detailed diff list below.
- 5Each difference shows the full dot-notation path and the before/after values.
- 6Click the copy button to copy the full diff report to your clipboard.
Frequently Asked Questions
A plain text diff compares line by line, so whitespace or indentation changes produce false positives. JSON Comparator parses both inputs and compares the actual data structure recursively, so only real data differences are reported — not formatting differences.
Yes. The comparison is fully recursive. Nested objects are compared key by key, and arrays are compared index by index, no matter how deeply they are nested.
A type mismatch is reported when the same path holds a different JavaScript type in each JSON — for example, a string in A but a number in B, or an object in A but null in B.
"Added" means a key or array index exists in JSON B but not in JSON A. "Removed" means it exists in JSON A but not in JSON B.
No. The entire comparison runs in your browser using JavaScript. Your data never leaves your device.
You might also like
Try next