What this JSON compare tool checks
The tool parses each box with JSON.parse, then walks the two values. Objects are compared by key. Arrays are compared by index, so order in an array is a real change. Added paths are green, removed paths are red, and modified paths are yellow.
Ignore key order is on by default. {"a":1,"b":2} and {"b":2,"a":1} match. Uncheck the box when the order of keys itself matters. A very large document stops after 400 reported changes so the page stays responsive. Nothing is uploaded.
When to use another tool
Use the JSON formatter to repair syntax before comparing. Use the JSON viewer when you want a tree instead of a change list. Use JSON to TypeScript when you want types from one of the documents.
Frequently Asked Questions
Does this JSON diff upload my files?
No. Both JSON values are parsed and compared in your browser. Nothing is sent to a server.
What does Ignore key order do?
When it is checked, two objects with the same keys and values match even if the keys were written in a different order. Array order still matters. Uncheck it to report a key-order change.
How are added, removed, and modified values shown?
Added paths are green, removed paths are red, and modified paths are yellow. Each row names the path, such as $.user.city or $.tags[0].
Can I compare two JSON files that use different key order?
Yes. Leave Ignore key order checked. The comparison then reports added, removed, and changed values, and it does not treat a reordered object as a change by itself.
Where does the JSON go if I open another tool?
A next-step link stores the modified JSON, or the original JSON if the modified box is empty, in this browser tab. The next tool reads that tab storage. It is not uploaded.