Key order doesn't matter
Objects are compared by their keys, so the same data in a different order counts as equal.
Free online JSON diff tool
Compare two JSON files, API responses or configs and see every added, removed and changed value by its path. Key order and formatting don't matter. Private and free, right in your browser.
Objects are compared by their keys, so the same data in a different order counts as equal.
Each difference is listed with its exact location, such as $.user.roles[2], and the old and new value.
Turn it on when arrays are sets, like tags or IDs, and only additions and removals matter.
If a document can't be parsed, you see the line and column of the error, and Format tidies valid JSON.
Compares JSON files with 100,000+ lines in a background thread, so the page stays responsive.
Nothing is uploaded. API responses, configs and data never leave your device.
Compare the response of two API versions or environments to find a changed field or a missing value.
Find the difference between two package.json, tsconfig, appsettings or other JSON config files.
See exactly why an expected and an actual JSON result don't match.
Compare two exports of the same records to find what was added, removed or edited.
$.settings.theme start at the document root $; [2] is the third item of an array.Paste the original JSON into the left box and the changed JSON into the right box, or open the files. DiffDuo lists every changed, added and removed value by its path and shows a side-by-side diff of both documents.
No. Objects are compared by their keys, so two documents with the same data in a different key order are treated as equal. Formatting and whitespace are ignored too.
Yes. Turn on Ignore array order to compare arrays as sets. Items that appear in both arrays match wherever they are, and only added or removed items are reported.
It is the location of the value inside the document: $ is the root, .user is the user key, .roles is its roles key and [2] is the third item of that array.
DiffDuo shows which document has the error and the line and column where it is, so you can fix it. The Format button indents valid JSON to make it easier to read.
No. Everything runs in your browser, so your JSON never leaves your device. It is safe for API keys, customer data and internal configuration.
Yes. JSON files up to 50 MB can be opened, and the side-by-side diff runs in a background thread so the page stays responsive.