Skip to content
Utilerio

JSON Diff

Compare two JSON objects and highlight added, removed and changed keys.

Was this tool useful?

About this tool

When two JSON objects should be the same but behave differently, the first step is finding where they diverge. Manually comparing nested objects is tedious and error-prone. This tool does it automatically: it walks both objects recursively and lists every key that was added, removed, or changed.

Unlike a text diff, a JSON diff is structure-aware. Moving a key from one position to another in the same object is not a change — the values are compared, not the raw lines.

How to use it

  1. Paste the first JSON object in the left panel ('before') and the second in the right panel ('after').
  2. Click Compare.
  3. Added keys are green, removed keys are red, changed keys are yellow. Equal keys are shown dimmed.
  4. Toggle 'Show unchanged' to hide equal paths and focus on what changed.

Common problems

The diff shows all keys as changed.
Check that both inputs are valid JSON. A missing closing brace or a trailing comma will make the whole document parse as a string literal.

Frequently asked questions