Hoglet

Compare JSON

Differences

Paste a JSON document on each side, or drop two files on the window. Keys may be in any order.

Nothing to compare yet

Compare JSON: Private JSON Diff by Path

See what differs between two JSON documents.

Paste one JSON document on each side and every difference is listed by its path (user.tags[2]), as added, removed or changed, with the values before and after, and marked in the two texts themselves. Keys are matched by name, so the same data with its keys in another order is the same. Lists are compared item by item; in Options their order can be ignored, so that an item equal to one anywhere in the other list counts as no change. A text that isn’t JSON says on its own side where it stops being JSON. API responses and configuration files often hold keys and personal data, so both documents stay on your device.

How to use Compare JSON

  1. Paste one JSON document in First and the other in Second, or drop two files on the window.
  2. Read the Differences, listed by path as changed, added or removed, and marked in both texts.
  3. Press Copy to copy the list of differences.

Compare JSON: common questions

Is it safe to compare JSON API responses online?

In this JSON compare tool it is: both documents are compared in your browser, on your device, and nothing is uploaded, so keys and personal data in API responses and configuration stay with you.

Does the JSON diff care about the order of keys?

No. Compare JSON matches keys by name, so the same data with its keys in another order shows no difference. Lists are compared item by item, unless Ignore the order of items in lists is turned on in Options.

Can the JSON diff compare very long numbers exactly?

Not always. Compare JSON reads numbers as JavaScript numbers, so two that differ only after about the fifteenth digit are read as the same, and it warns when such numbers appear. Compare text compares them as written.

Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.