Pure Frontend · Add/Remove/Replace Detection · JSON Patch Generator · Path Tracking
Zero Dependencies · Works OfflineThe JSON Diff Tool is a pure frontend online tool for precisely calculating differences between two JSON objects. Enter the original and modified JSON, and the tool automatically detects added, removed, and changed fields, generates RFC 6902 compliant JSON Patch, and visually displays each change's path and value. Supports deep recursive and shallow comparison modes, with array comparison by index or by value matching. All data is processed locally in your browser—nothing is uploaded to any server.
Step 1: Paste the original JSON (A) in the left input and the modified JSON (B) in the right input, or drag-and-drop .json files.
Step 2: Choose comparison mode—deep (all levels) or shallow (top only)—and array comparison strategy.
Step 3: Click "Compare" or press Ctrl+Enter to calculate differences.
Step 4: View diff details and JSON Patch. Click "Copy Patch" or "Download Patch" to save results. Ctrl+Shift+C copies instantly.
Compare v1 and v2 API response JSON to quickly identify added, removed, and changed fields. Generate Patch for incremental updates.
Compare configuration JSON across environments to discover differences and ensure production matches expectations.
Calculate JSON data differences between client and server, generate Patch for efficient incremental sync with minimal network transfer.
Compare expected vs actual JSON test output, pinpoint exact field paths where assertions fail, and speed up test debugging.
JSON Patch (RFC 6902) is a standard format for describing changes to JSON documents, with 6 operations: add, remove, replace, move, copy, and test. JSON Pointer (RFC 6901) locates specific values in a JSON document, e.g., /foo/0/bar refers to the bar field of the first item in the foo array. Unlike JSON Merge Patch (RFC 7396), JSON Patch is more precise and can distinguish between null value deletion and non-existent fields.
Deep comparison (recursively compares all nested levels) and shallow comparison (top-level keys only). Array comparison can be by index or by value matching.
It follows RFC 6902 JSON Patch specification, generating add/remove/replace operations that can be used directly in API requests.
No. All JSON comparison is performed locally in your browser. Your data never leaves your device.
We recommend keeping each JSON under 1MB for smooth performance. Drag-and-drop .json file upload is supported.
Choose between index-based comparison (strict positional matching) or value-based matching (smart content matching).
Yes. Deep comparison mode recursively compares all nested objects and arrays, pinpointing every path change.