JSON Diff
This tool compares two JSON documents. It lists every value that was added, removed or changed, with its path, and ignores the order of keys.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use JSON Diff online
- Paste the first JSON. Type or paste the original.
- Paste the second JSON. Type or paste the changed version.
- Read the totals. See added, removed and changed.
- Open the table. See every path and value.
Why use this free JSON Diff
- Added, removed and changed
- Order of keys ignored
- Paths like JSONPath
- Table of differences
- Names which document is invalid
- Share by link
What it compares
Paste a first and a second document, and the tool walks through both at once. It lists each path where they differ: a value that is only in the second is added, a value only in the first is removed, and a value that is in both but different, including a change of type, is changed. If the documents hold the same data, it says so.
Keys and lists
Objects are compared key by key, and the order of keys does not matter, since JSON objects have no order. Lists are compared item by item at the same position, because their order carries meaning. A list that gained an item at the start therefore shows many changes. The option to keep the order of keys only affects the order of the report.
A worked example
The first document has a set to 1, a list b of two numbers and an object c. The second changes a to 2, adds a third item to b and adds a key e to c. The tool reports three differences: a changed from 1 to 2, an added item at b[2], and an added key c.e with the value true. The table lists the path, the old value and the new value.
Paths
Paths are written like JSONPath: $.c.e for a key and $.b[2] for a list item. Keys that are not simple names are written as $["my key"]. Long values are shortened in the table, with the full data in your own documents. You can copy a path into the JSONPath tester to look at it.
Limits
The tool compares data, not text, so spacing and key order are ignored. It does not detect moved items in a list or renamed keys, which show up as removed and added. Very large documents are fine in a modern browser, but the table shows only the first 500 differences.
Using the tool
Change the text or any option of the JSON Diff and the answer moves straight away. Use result as input to pass the answer to the next step.
JSON Diff: frequently asked questions
Does key order matter?
How are lists compared?
What counts as changed?
How many differences are shown?
Can it compare invalid JSON?
Can anyone see the text I put into the JSON Diff?
Is there a way to reuse the JSON Diff result?
Related searches for JSON Diff
- JSON Diff online
- free JSON Diff
- JSON Diff online free
- JSON Diff for mobile
- JSON Diff without sign up
- JSON Diff – Text & Writing Tools
JSON Diff is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.