JSON Patch Generator — RFC 6902 Diff Tool

Generate RFC 6902 JSON Patch operations by comparing two JSON objects. Produces add, remove, replace, move, copy, and test operations. 100% client-side.

Source JSON0 chars
Target JSON0 chars
Output
🛡️Zero server logs. Patch generation runs 100% inside your browser.

JSON Patch Generator — RFC 6902 Diff Tool

Generate RFC 6902 JSON Patch operations by comparing two JSON objects. Produces add, remove, replace, move, copy, and test operations. 100% client-side.

🔒 Client-side only⚡ Web Worker processing🌐 Works offline🛡️ Zero server logs

How to Use

  1. Paste the source JSON (original) into the left editor.
  2. Paste the target JSON (desired) into the right editor.
  3. Click Generate Patch to see the RFC 6902 operations needed to transform source into target.

Frequently Asked Questions

Questions about this tool? We've got answers.

What is JSON Patch?

JSON Patch (RFC 6902) is a lightweight format for describing changes to a JSON document using operations like add, remove, replace, move, copy, and test.

Are nested changes detected?

Yes. The tool does a deep recursive comparison to detect changes at any nesting level, generating precise paths for each operation.

Is my data sent to a server?

No. All comparison runs 100% inside your browser via a Web Worker.


Automated E2E Test Suite Logs

Our build systems validate edge-case processing under extreme conditions before each deployment.

Stability
100.0%
Passed
18/18
Env
V8-Sandbox
Engine: Vitest RunnerUpdated: 2026/6/11 00:18:12📦 Download Test Datasets
PASSgeneratePatch should generate replace patches for changed values
PASSgeneratePatch should return empty array for identical objects
PASSgeneratePatch should generate replace patch for simple change
PASSgeneratePatch should throw on empty source
PASSgeneratePatch should throw on empty target
PASSgeneratePatch should throw on invalid source JSON
PASSgeneratePatch should throw on invalid target JSON
PASSJsonPatchGeneratorTool renders Generate Patch button
PASSJsonPatchGeneratorTool renders Source JSON and Target JSON labels
PASSJsonPatchGeneratorTool renders three textareas
PASSJsonPatchGeneratorTool shows privacy strip
PASSJsonPatchGeneratorTool shows error toast on Generate with empty source
PASSJsonPatchGeneratorTool shows Clear toast on Clear All click
PASSJSON Patch Generator Worker Standard patch generation should generate patch from source to target
PASSJSON Patch Generator Worker Standard patch generation should propagate requestId correctly
PASSJSON Patch Generator Worker Boundary Conditions & Error Handling should return error for invalid JSON source
PASSJSON Patch Generator Worker Boundary Conditions & Error Handling should return error for empty input
PASSJSON Patch Generator Worker Performance Benchmark should generate patch for large objects within acceptable limits
⏱️ 0.18ms📦 1.5KB🎚️ Max Nesting: 3🌿 AST Nodes: 48🛡️ V8 Heap: Healthy
$ codecaven-validator --scope=tool● CLUSTER COMPLIANT

Tool Changelog & Updates

1.0.02026-06-10
  • Feature: Initial release