JSON Diff Tool

Compare two JSON documents by structure and inspect the differences in Three.js.

  • File & Data
  • Runs in your browser
  • Free, no signup

How to use

How to Use JSON Diff Tool

  1. 1

    Paste first JSON

    Enter the original JSON document in the left panel.

  2. 2

    Paste second JSON

    Enter the modified JSON document in the right panel.

  3. 3

    View the differences

    See additions, deletions, and changes highlighted with colors.

The guide

Tested tool guide Tested browser tools Checked November 28, 2026

What JSON Diff Tool does, with a checked example

Paste the original and modified JSON, then select Compare. The tree shows added, removed, changed and unchanged entries, while the totals count specific changes. Use the Three.js comparison to see a source excerpt alongside the summary.

Worked example

A concrete input and expected output from the current implementation.

Input

Compare {"row":{"total":10},"gone":1} with {"row":{"total":12},"new":null}.

Expected output

The totals show one addition, one removal, and one change. Expand row to see total change from 10 to 12.

An object branch groups its nested entries. Its changed leaf contributes to the total once.

How the result is produced

1

Set comparison direction

Original is the starting document and Modified is the later one. Swap exchanges them.

2

Compare nested entries

The tree matches object members by name and array entries by position. Use Expand All, Collapse All or a branch button to control the view.

3

Copy the summary

The text report gives counts, paths and before-and-after values. Keys containing punctuation appear in quoted brackets to distinguish their exact names.

Good uses

  • Review edits between saved JSON files.
  • Find changes in configuration objects.
  • Copy a compact report for a code review.

Limits and checks

  • Compare after editing either input.
  • Check which side you use as the original.
  • A reorder inside an array can change several indexed entries.

Common questions

How do changes in object key order affect the diff?

The tool matches keys by name, so reordering the same object members leaves their entries unchanged.

Can it compare two top-level values?

Yes. The root row reports changes between JSON values such as null and false.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.