What does this tool do?
Generate an RFC 6902-style JSON Patch describing how to turn JSON A into JSON B. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.
How to use this tool
- Paste your json a (original) into the first box.
- Paste your json b (updated) into the second box.
- Click Generate Patch.
- Copy the json patch from the output box.
Frequently asked questions
What is a JSON Patch?
JSON Patch (RFC 6902) is a standard format for describing changes to a JSON document as a sequence of add, remove, and replace operations, each with a JSON Pointer path.
Does it detect moved array items?
No, array changes are generated index by index. An item moving position is represented as multiple add/remove/replace operations rather than a single move — this keeps the tool simple and predictable.
How are special characters in keys handled?
Keys containing ~ or / are escaped per the JSON Pointer spec (~0 and ~1 respectively) so the generated paths stay valid.
