JSON Compare — Diff Two JSON Objects
Compare two JSON documents and see additions, removals, and changes highlighted. Runs entirely in your browser.
Paste two JSON documents to see the diff.
How JSON diffing works
JSON Mint performs a deep structural comparison. Keys that exist in the right document but not the left are marked as added; keys only in the left are removed; keys in both with different values are marked as changed. Order of object keys is ignored — two objects are equal if they contain the same keys and values, regardless of their textual ordering.
Array elements are compared by index. Diffing is purely local: your JSON is never sent anywhere, so you can safely compare production configuration, API snapshots, or sensitive payloads.
Frequently Asked Questions
Does the order of object keys matter?+
No. JSON Mint compares objects by key, so {a:1,b:2} and {b:2,a:1} are considered equal.
How are arrays compared?+
Element by element at the same index. If one array is longer, the extra elements are reported as added or removed.
Can I compare huge JSON files?+
Yes, but performance depends on your browser. Diffing tens of megabytes client-side may be slow; for smaller payloads it is instant.
Is my JSON sent to a server?+
Never. All comparison runs in your browser. JSON Mint has no backend for tool data.