JSON Diff Online for Free
A JSON diff tool reads two JSON documents and reports every difference between them at the path level: a key added on one side, a key dropped on the other, a value that changed type, a value that changed contents, and the paths that stayed identical. A complete diff also gives you a machine-readable patch you can replay and a sort-aware compare that treats key order as cosmetic.
Most online diff tools fall back to a line-by-line text view, hide RFC 6902 patches, deep merge, or schema diff behind a sign-up, and POST both payloads to a server before computing a single change. We built ours so the same split editor handles a visual diff, a patch, a merge, a sort-aware compare, a flat path view, and a schema-only diff locally through the browser's parser.
Comparing Two JSON Files in Four Steps
- Load both payloads: paste the original into the left pane and the modified version into the right, or use Upload Left and Upload Right for a file.
- Pick a comparison mode: tap JSON Diff, JSON Patch, JSON Merge, Sort and Compare, Flat Path Diff, or Schema Diff from the sidebar.
- Read the result: the bottom pane shows a color-coded table, a patch array, a merged object, an equivalence banner, a flat path table, or a type-by-path schema view.
- Filter, swap, or export: filter by added, removed, or changed entries, swap the two inputs, then copy or download the diff as JSON.
What You Can Do with JSON Diff
Path-Level Color Diff
See every change as an added, removed, or modified path with a colored badge and a quick filter.
RFC 6902 Patch Output
Generate an add, remove, replace operation list any JSON Patch library can apply server-side.
Deep Recursive Merge
Fold two objects into one with deduplicated arrays and recursively merged nested keys.
Sort-Aware Equivalence
Sort keys on both sides and find out whether two payloads match regardless of key order.
Flat Dot-Path View
Read every leaf as user.address.city and inspect the before-and-after value side by side.
Type-Only Schema Diff
Compare shape and types without values to confirm two payloads share the same contract.
Why Choose AIFreeForever's JSON Diff
| Feature | AIFreeForever | Typical Online Tools |
|---|---|---|
| Comparison Modes | Diff, patch, merge, sort, flat, schema | Line-by-line text diff only |
| Patch Output | RFC 6902 ready to apply | Not generated |
| Sort-Aware Match | Reorders keys before comparing | Flags key order as a diff |
| Privacy | Native JSON.parse runs in the browser | Both payloads uploaded to a server |
| Input Methods | Paste, upload, drag and drop, swap left and right | Paste only |
For Release Engineers, Config Reviewers, and API Maintainers
When you bump a config and need to confirm only the expected keys changed, our JSON Diff shows you the exact paths that moved. You can also paste a staging payload next to a production payload to catch any extra field that slipped through, and the RFC 6902 patch output saves you from writing the operation list by hand.
Most flexible way to compare two JSON payloads
Paste two payloads once and pull a path-level diff, an RFC 6902 patch, a merged object, a sort-aware equivalence check, a flat dot-path list, or a schema-only view from the same editor without ever uploading the data to a server.
Six Compare Modes
Diff, patch, merge, sort, flat path, and schema all on one input pair.
Patch You Can Replay
Copy an RFC 6902 add, remove, replace list and apply it with any standard library.
Stays in the Browser
Every parse, diff, and export runs on your device, never on a server.