Free · No sign-up · Runs in your browser

JSON Merge Patch Tool

Apply RFC 7396 merge patches to JSON: update nested objects, remove properties with null and replace arrays atomically.

STEP 1

Start with your input

Edit the example or replace it with your own text.

How to use JSON Merge Patch Tool

  1. Paste the original JSON and the merge patch in separate editors.
  2. Apply the patch and inspect removed properties and replaced arrays.
  3. Copy or download the merged JSON without changing the source text.

Use object-shaped partial updates

An object merge patch visits each supplied property. A null patch value removes that property, while an object value recursively updates the corresponding target. A scalar or array replaces the entire target at that location. A non-object patch at the root replaces the whole document. Missing properties in the patch leave their target values alone.

Choose a patch format that matches the operation

Merge Patch cannot use a null member to assign an explicit null object property, because null is its removal instruction. Arrays are replaced rather than edited by index. Use JSON Patch when you need those distinctions or individual array operations. This tool follows the merge algorithm and does not infer your application’s authorization or schema rules.

Example input

{"name":"Ada","preferences":{"theme":"dark","legacy":true},"tags":["reader"]}

Can I append one array element with Merge Patch?

Not by an index operation. Supply the complete replacement array, or use a JSON Patch add operation for a single append.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools