JSON Merge Patch

Apply RFC 7396 JSON Merge Patch to a target object. The first object is the target, the second is the patch. Null values remove keys.

Patched JSON will appear here...

What Is JSON Merge Patch?

JSON Merge Patch (RFC 7396) is a format for describing changes to a JSON document. A patch is applied to a target object: values are updated, nested objects are merged recursively, and null values remove keys.

How to Apply JSON Merge Patch

  1. Paste the target JSON object as the first block.
  2. Paste the patch JSON object as the second block (separated by newline).
  3. Click Apply Patch to merge them.

Frequently Asked Questions

How are null values handled?

Setting a value to null in the patch removes that key from the target.

Are nested objects merged?

Yes. Nested objects are merged recursively — only leaf values are replaced.

Is this tool safe?

Yes. Processing is 100% client-side.

Related Tools