JSON Patch Generator

Pick what you want to do - generate an RFC 6902 JSON Patch from two documents, apply an existing one, or verify it round-trips. Everything runs directly in your browser.

Your JSON stays in your browser. Transformations run locally. Hosting and cookieless analytics requests still occur; share links put encoded editor state in the URL.

Compare two documents and create the RFC 6902 patch between them.

Source JSON

Target JSON

Output appears below - copy and share live under the patch panel. Press Ctrl+↵ to run.

JSON Patchoutput

Generate a patch and it will appear here


Tested round trip

Verified 19 September 2026 with fast-json-patch 3.1.1: comparing { "version": 1 } with { "version": 2 } produced { "op": "replace", "path": "/version", "value": 2 }, and applying it produced the expected document. A failing test returned TEST_OPERATION_FAILED.