JSON Diff

Compare two JSON values by path. Key order can be ignored, and large integers stay exact.

Added 2026-10-24

What it does

JSON Diff compares two JSON values by path in this tab. With ignore-key-order left on, an object with keys a then b matches the same object with keys b then a. Turn that option off when a reorder itself is the change you need to see. Arrays are compared by index, so inserting an item at the start marks every later index as changed. This is not a line-by-line text diff. Integers past 2^53 - 1 stay exact instead of being rounded through JSON.parse. The page does not decide which side is correct, and it does not upload either document. Large inputs run in a worker.

How to use it

  1. Paste one JSON document on each side. Nothing is uploaded.
  2. Leave “Ignore key order” on when only the values matter. Turn it off to catch reordered keys.
  3. Arrays are compared by index. Read the path list, then the formatted documents side by side.

Common mistakes

  • Key order is not a value change. With the default option, {"a":1,"b":2} and {"b":2,"a":1} are the same. Turn the option off to list a reorder.
  • Arrays use indexes. Inserting an item at the start marks every later item as changed. This is not a line-by-line text diff.

Both documents stay in this tab. The comparison does not upload them.

Related guides

  • JSON integers past 2^53

    Why JSON.parse rounds large integers, and how to keep every digit when you only need to format JSON.

Related tools