Report

Help us improve this tool

JSON Patch Diff

Compare two JSON documents and generate an RFC 6902 patch that transforms the source into the target.

O M T

Generate JSON Patch diffs

Comparing two JSON snapshots by eye is error-prone. This tool walks both trees and emits the minimal RFC 6902 patch that transforms the original document into the updated one, handy for changelog automation, contract tests, and sync engines.

Apply the generated patch with JSON Patch Apply, or inspect individual paths using the JSONPath Tester.

Frequently Asked Questions

Will the patch always be the smallest possible diff?

The library produces a valid RFC 6902 sequence. Ordering may differ from hand-written patches, but applying it to the original document reproduces your target JSON.

Can I diff arrays with reordered items?

Reordered arrays may produce replace/remove/add operations rather than move operations. Review the patch before shipping it to production APIs.