JSON Patch Tool

Generate and apply RFC 6902 JSON Patch operations for JSON changes.

Generate and apply RFC 6902 JSON Patch operations locally in your browser for API version changes, configuration updates, and data sync workflows.

How to use

  1. Paste the original JSON and the updated JSON to generate add, remove, and replace operations.
  2. Switch to Apply Patch and paste the source JSON plus a Patch array.
  3. Review the output JSON, then copy the Patch or reverse Patch when needed.

Examples

Generate a version-change Patch

Input

Before: {"version":1}
After: {"version":2,"enabled":true}

Output

[{"op":"replace","path":"/version","value":2},{"op":"add","path":"/enabled","value":true}]
Privacy
May contact server Avoid sensitive data Uploads only when needed

JSON and Patch data stay in your current browser.

Frequently asked questions

JSON Patch is the RFC 6902 operation format for describing changes to a JSON document with add, remove, replace, and related operations.

Arrays are compared by index, and appended items use /-. Reordering an array may produce several replace operations.

No. Patch generation, application, and reverse Patch creation run in your current browser.
Next steps

Related tools

After finishing this task, continue with these related tools.