FreeToolBench.
Private by design
← Browse all tools

Developer

JSON diff

Compare two JSON documents and list every added, removed, or changed value.

Free to use · Runs in your browser · No signup

This tool works in your browser. Enable JavaScript to select files and create your download.

How to use JSON diff

  1. Paste the original JSON.
  2. Paste the changed JSON.
  3. Review each difference with its path and before and after values.

What you need

Nothing to upload. Type or paste directly into the tool; results update as you go.

Your result

A list of differences by JSON path.

Before you start

Object key order is ignored; array items are compared by position, so inserting an item early in an array shows later items as changed.

How the comparison works

  • Objects are compared by key, so key order is ignored: {"a":1,"b":2} equals {"b":2,"a":1}.
  • Every difference is listed with its path, such as $.settings.theme, and its before and after values.
  • Types matter: 1 and "1" are reported as a change.

Arrays are compared by position

Items are matched by index, not by content. Inserting one item at the start of an array therefore shows every later item as changed:

Original: {"a":[1,2,3]}
Changed:  {"a":[0,1,2,3]}

changed  $.a[0]  1 → 0
changed  $.a[1]  2 → 1
changed  $.a[2]  3 → 2
added    $.a[3]  → 3

Tips

  • If item order in an array doesn’t matter to you, sort both arrays the same way before comparing.
  • Comparing API responses? Remove fields that always change, like timestamps and request IDs, to focus on real differences.
  • Use JSON formatter with “Sort keys” first if you want to read both documents side by side.

Questions about JSON diff

Can I compare JSON while ignoring key order?

Yes, always. Objects are compared by key name, so reordered keys never show up as differences.

Why are so many array items marked as changed?

Arrays are compared position by position. An insertion or deletion near the start shifts every later item. See the example above.

Is it safe to compare confidential data?

Yes. Both documents are compared in your browser and are never uploaded.

Is what I type sent anywhere?

No. The calculation runs in your browser, and the text or numbers you enter are not uploaded or stored.

Is it free? Do I need an account?

Yes, it’s free, and there’s no account or signup. FreeToolBench is supported by ads.