Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

JSON Diff

Compare two JSON documents structurally. See added, removed, and changed values by path — key order and formatting are ignored.

Processed locally in your browser — nothing is uploaded.

JSON Diff

0 characters

0 characters

About JSON Diff

Compare two JSON documents by structure rather than text. The diff lists every added, removed, and changed value with its full path (like user.roles[2]), so reordered keys and different formatting don't produce noise.

Common uses

  • Compare API responses between environments
  • Review what changed between two config versions
  • Verify a migration produced the expected output

Example

Input

left: {"a":1,"b":2} · right: {"a":1,"b":3,"c":4}

Output

~ b: 2 → 3
+ c: 4

Frequently asked questions

Does key order matter when comparing two JSON files?

No. The comparison is structural — objects are matched key by key regardless of order, so two documents with the same data in a different arrangement produce an empty diff. Formatting and indentation differences are ignored too.

Are the JSON documents I compare uploaded anywhere?

No. Both documents are parsed and diffed in your browser and nothing is transmitted or stored, so it's safe to compare production API responses or configs containing secrets.

How are arrays compared in a JSON diff?

Element by element, by index: item 0 is compared with item 0, and extra items at the end show as added or removed. That means a reordered array reports changes even though it holds the same values — array order is significant in JSON.

What does the path next to each difference mean?

It's the location of the change inside the document, written like user.roles[2] — object keys joined with dots and array positions in brackets. You can follow it from the root to find the exact value in either file.