JSON Patch tool

Compare two JSON documents and generate RFC 6902 Patch, or apply the Patch locally and perform round-trip validation.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

How to use the JSON Patch tool

JSON Patch tool processes input only in the current browser; it does not upload, connect to the internet, or save user data.

  1. Input content

    Enter the original JSON, target JSON, or RFC 6902 operation array.

  2. Select a processing method

    Generate add/remove/replace operations, or apply Patch and check paths and dangerous keys.

  3. Check and export

    After confirming that the result matches the target, copy or download Patch/JSON.

Limitations and Notes

  • Reject prototype-pollution paths, infinite recursion, and oversized operation arrays.
  • Diff does not infer move/copy; the generated result should still undergo semantic review in the target project.
  • The tool only provides locally processed results; important configurations, secrets, documents, and published content must still be reviewed in the target environment.

FAQ

Will the input be uploaded to a server?

No. The page only uses browser memory, the local file API, and local resources already provided with the site.

Why is the __proto__ path rejected?

These properties may trigger prototype pollution, so the tool blocks them instead of risking modification of the object prototype.

Why do the results still require manual review?

Edge-case syntax, regional standards, third-party readers, and target runtime environments may differ; the tool does not replace final validation.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback