JSON Merge Patch Generator

Compare two JSON documents and generate a minimal RFC 7386 JSON Merge Patch, or apply a patch to a document. Objects merge recursively, arrays replace as a whole, and null removes a member. Everything runs locally in your browser.

Operation
JSON Merge Patch
  
How JSON Merge Patch works
  • Keys present in the patch are changed; omitted keys remain untouched.
  • A null member removes that key from an object. This means a target value of null cannot be represented as a new value by a merge patch.
  • Nested objects merge recursively. Arrays, strings, numbers, booleans, and top-level values replace the target atomically.
  • This tool creates and applies patches only; it does not send your JSON anywhere or verify a remote API.