Report a problem

DEVELOPER TOOL

JSON Compare & Merge

Compare two JSON documents by path and merge them in your browser. Review added, removed and changed values, then choose which side wins conflicts.

JSON Compare & Merge

FREE ONLINE TOOL

WHEN IT HELPS

Common uses

  • Review changes between two JSON configuration files.
  • Combine object keys while keeping control of conflicting values.

IN PRACTICE

Example

Compare two configuration objects and see that $.theme changed from light to dark.

GOOD TO KNOW

How are conflicts and arrays handled?

Matching objects are combined recursively. At conflicting values, the selected side wins; arrays are treated as whole values and come from the selected side. Keys found on only one side are preserved.

Objects merge recursively. Arrays are treated as whole values and use the selected side when both inputs contain the same path. Keys present on only one side are preserved. Processing runs in your browser; JSON is not uploaded.