Schema & Compare · Runs in your browser

JSON Merge

Deep-merge two JSON documents — handy for config files, defaults and overrides, or combining API responses.

Base (left)
Drop a file to load it
Empty
Merge in (right)
Drop a file to load it
Empty
Result
Waiting for input

How to use it

  1. Paste the base JSON on the left and the JSON to merge in on the right.
  2. Choose how arrays are combined and which side wins when both have a value.
  3. Copy the merged result or download it as a .json file.

Objects

Objects are merged recursively: keys from both sides are kept, and nested objects are merged the same way.

Arrays

Replace keeps one side’s array; Concatenate appends; Union appends only items not already present; Merge by index merges item 0 with item 0, and so on.

Conflicts

When both sides have different non-object values at the same place, the side you pick under “On conflict” wins. The status bar shows how many conflicts were resolved.