Compare JSON, export JSON Patch
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Opens
JSON- Saves as
JSON- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- One file at a time
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About JSON Diff
JSON Diff compares two JSON documents value by value and lists every difference with its path, such as $.users[2].email. Because it compares the parsed data instead of the text, key order, indentation and line breaks do not count as changes, so two API responses or config files that are formatted differently but mean the same thing show up as identical.
Each difference is marked as added, removed or changed, with the old and new value, and you can filter the list by kind. Arrays are aligned so that one inserted item does not make every later item look changed. With Ignore array order, arrays are compared as sets: plain values are matched by value, and objects are matched by an id-like key (id, _id, uuid, key, code, slug, sku or name) when every item has a unique one. The same differences are exported as an RFC 6902 JSON Patch. Everything runs in your browser.
JSON Diff runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use JSON Diff
- Paste the original JSON into the Original (A) box and the new version into the Modified (B) box, or drop a .json file on each box.
- Read the counts and the list under Differences; use the filter to show only added, removed or changed values.
- Turn on Ignore array order if the order of items does not matter, or Ignore whitespace in strings for text that was only reformatted.
- Copy or download the JSON Patch to apply the same changes in code. Swap exchanges A and B.
Frequently asked questions
How is this different from a text diff?
A text diff compares lines, so reordered keys or different indentation show up as changes. JSON Diff parses both documents and compares values at each path, so {"a":1,"b":2} and {"b":2,"a":1} are identical, and a real change is reported once, with its exact path.
What is JSON Patch?
JSON Patch (RFC 6902) is a standard JSON format that describes changes as a list of operations such as add, remove and replace, each with a JSON Pointer path like /users/2/email. Applying the exported patch to document A in order produces document B. Many libraries and HTTP PATCH APIs accept it.
How are arrays compared?
By default the order matters: items are aligned with a longest-common-subsequence match, so an inserted or deleted item is reported once. With Ignore array order, equal items match wherever they are, objects are paired by an id-like key when there is one, and the patch appends new items at the end instead of reproducing the order of B.
Why do both paths use different indexes?
Removed and changed items are shown with their index in A, and added items with their index in B, so each path points to a value that really exists in that document.
Is my JSON uploaded?
No. Both documents are parsed and compared in your browser, so private API responses and configs stay on your device.