JSON Diff Checker (Compare Two JSON Files)
Paste two JSON documents and compare them by meaning, not by lines of text. The result lists every difference with its path, such as $.address.pin, and says whether it was added, removed or changed. Key order and spacing are ignored, so only real differences show. You can also ignore the order of items in lists. It runs in your browser, so your data is not uploaded.
How to use it
- Paste the original JSON on the left and the changed JSON on the right, or press Sample.
- Choose whether the order of items in lists should be ignored.
- Press Compare.
- Read the list of differences. Press Swap sides to reverse the direction.
Frequently asked questions
Is what I paste uploaded anywhere?
No. This tool runs in your browser, on your own device, and what you paste is never sent to our server.
How is this different from a text diff?
A text diff compares lines, so a change in key order or indentation shows as a difference. This tool understands JSON, so only changes in the data itself are listed, and each one has its path.
How are lists compared?
By position: the first item with the first item and so on. If you tick “Ignore the order of items in lists”, items are matched by value, so a list with the same items in another order counts as equal.
What do the paths mean?
$ is the top of the document, .name is a key and [2] is the third item of a list. Keys with spaces or symbols are written as ["key name"].
What if my JSON is invalid?
The side with the problem shows the line and column of the first error, and no comparison is made until both sides are valid.
Related tools
Text Diff Checker (Compare Two Texts)
Compare two pieces of text or code side by side and see added, removed and changed lines, with a copyable patch.
JSON Formatter & Validator
Format, validate and minify JSON in your browser. Shows the exact line and column of any error.
JSON Schema Validator
Check JSON data against a JSON Schema (drafts 2020-12, 2019-09 and draft-07) and see every problem, in plain words, with its line.
JSON, YAML & CSV Converter
Convert JSON to YAML, YAML to JSON, JSON to CSV and CSV to JSON, with nested data, delimiters and type detection handled.
These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.