Toolbox / JSON structural diff Runs in your browser中文
Web

JSON structural diff

Compare JSON / JSON5 structures and inspect added, removed, or changed values.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Compare JSON/JSON5 structures and values, locating additions, removals and changes by path.

Actions: Process

Example

The second document has count 2; the change is located at /count.

Example action and settings

Action: Process
Updated JSON / JSON5: {"count":2}

Input / action

{"count":1}

Result / expected behavior

{
  "equal": false,
  "changes": [
    {
      "path": "/count",
      "kind": "changed",
      "before": 1,
      "after": 2
    }
  ]
}

Available options: Updated JSON / JSON5

Scope and limitations

  • Uses JavaScript number semantics, so very large integers may lose precision. Arrays are compared by index, not object identity.

Common mistakes

  • The second document must not be empty. Use text diff for whitespace or original numeric spelling differences.

Related tools

Text diff JSON workbench

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.