JSON Diff
Compare two JSON documents side by side and instantly highlight what changed between keys, values, and array order. Useful for checking API responses after a deploy, reviewing config file updates, or diffing localization files, all processed locally in your browser.
Usage examples
Seeing how an API response changed after a deploy
Paste the old and new response from the same API side by side to spot exactly which fields were added, removed, or changed.
Comparing two versions of a config file
Compare a JSON config file before and after an edit to confirm only the intended part changed.
Comparing a test's expected value against the actual result
Drop in the expected JSON and the actual JSON from a test to quickly find which fields differ.
Checking what changed between two app settings exports
Compare a settings JSON backed up before and after a user changed their preferences to confirm exactly which options were affected.
Reviewing a localization file update
Compare an old and new translation JSON file to see which keys were added, removed, or had their text changed before merging.
Frequently asked questions
Is what I enter sent to a server?
No. All comparison happens entirely in your browser, and what you enter is never sent to a server.
Does key order inside an object matter?
No. Key order doesn't affect the comparison — only whether the values themselves match.
What happens if an array's order changes?
Arrays are compared index by index, so if the order of values changes, those index positions may show up as changed.
What if one of the inputs isn't valid JSON?
A specific error message appears under the invalid one, and the diff only appears once both inputs are valid JSON.
Does it tell me the difference between a number and the same value as a string?
Yes. A value of 10 and "10" are treated as different types and show up as changed, since JSON distinguishes numbers from strings even though they may look similar.
How are added and removed array items shown versus a value that simply changed?
If an item exists on only one side, it's marked as Added or Removed. If the same index has a value on both sides but it's different, it's marked as Changed, showing both the before and after values.
Can I compare deeply nested objects, not just flat ones?
Yes. The comparison walks recursively into nested objects and arrays of any depth, and each difference is reported with the full path to where it occurs.