0 characters · 0 bytes
JSON Compare Online
See exactly what changed between two JSON documents
Compare structure and values, inspect precise paths, and move through every difference without uploading either document. Your JSON is never sent to a server.
0 characters · 0 bytes
Structural differences
Comparison results
- Added
- 0
- Removed
- 0
- Changed
- 0
- Total
- 0
Add two JSON documents and select Compare JSON.
Unified differences appear after comparison.
Comparison runs entirely in this browser.
Technical guide
Structural comparison, not a text-only diff
JSON Compare parses both documents and walks their objects and arrays. Whitespace and formatting do not create differences. Objects are matched by property name, while array values are compared by index.
Added, removed and changed
Every result includes a classification, the value before and after, JSONPath, and RFC 6901 JSON Pointer. Type changes are reported as changed values rather than misleading remove-and-add pairs.
Object key order
Object key order is ignored by default because JSON objects are unordered collections. Enable key-order reporting when insertion order matters to a downstream system. Array order is always significant.
Diagnostics and limits
Validate each side independently
Invalid documents receive separate syntax diagnostics with line and column details where the browser parser exposes a source position. Comparison starts only after both sides contain valid JSON.
Large documents
Work runs in a dedicated Web Worker so the page remains interactive. Processing stops after eight seconds, and file loading is capped at 20 MB. Browser memory and CPU still set practical limits.
Privacy safeguards
Documents, file names, keys, values, paths and results are not placed in URLs, logs, analytics or requests. Clearing removes both editor values from the current page.
FAQs
JSON comparison questions
Does JSON Compare upload my documents?
No. Parsing, comparison, diagnostics and rendering happen inside your browser.
Are differently formatted documents considered changed?
No. Whitespace and indentation are discarded by parsing before the structural comparison runs.
How are arrays compared?
Arrays are index-sensitive. Moving an item can therefore produce multiple differences, because array order carries meaning in JSON.