Data Tools

JSON Diff and Structural Comparison

Compare two JSON documents recursively and list added, removed, and changed paths. Processing stays in your browser.

JSONDiffComparison

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Compare fields in two API responses
  • Review structural changes in configuration
  • Inspect data changes between versions

How to use

  1. Paste JSON A and JSON B
  2. Select Compare
  3. Review, copy, or export the differences

Example input and output

Input

JSON A: {"v":1} / JSON B: {"v":2,"new":true}

Output

$.v: 1 → 2 / + $.new: true

FAQ

Does it compare nested objects and arrays?

Yes. Values are compared recursively and differences are listed with object paths and array indexes.

What happens if either JSON document is invalid?

The comparison stops and displays a parsing error so you can correct the input first.

Tools

Related tools

Continue with another translated tool for a nearby task.

Text Diff Checker

Text Diff Checker for Line-by-Line Changes

Available

Compare two text blocks locally in your browser and mark added, removed, and unchanged lines. Useful for configs, copy review, and quick code-snippet diffs with instant results.

Diff Text compare

JSON Formatter

JSON Formatter and Validator Online

Available

Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.

JSON Formatter Developer

JSON Validator

JSON Validator and Syntax Checker

Available

Validate JSON syntax, locate parsing errors, inspect structure, and try safe repairs locally in your browser.

JSON Validator Debugging