Compare JSON
Compare JSON online to instantly diff, merge, validate, and format JSON files or text. This free tool helps developers quickly sync and debug JSON data with clear, accurate results.
Frequently Asked Questions About Online Calculators
Do I have to format the JSON first?
Not to get a result, but a payload on one line compares as one line against one line. Formatting both sides is what lets the diff land on individual keys instead of the whole document.
Will it tell me a key was renamed?
It reports the old name as added elsewhere and the value as moved, because that is what happened to the data. Reading it as one rename is your judgement, not the tool's.
Will my original file be changed?
The result is downloaded as a separate file. Keep your original until you have checked the Key-level JSON difference report.
What should I check before using the result?
Open the Key-level JSON difference report in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.
Which input formats are supported?
This page accepts JSON, JSON Lines, and API response payloads. If an upload fails, confirm the file is not corrupted and matches the types listed in the file picker.
Is this tool free?
Yes. This tool is free with no trial limit, subscription, or watermark. Use it for personal and commercial projects without an account.
Compare JSON
A raw-text JSON diff flags every changed line the moment a file is reformatted. This tool skips the noise: it matches values instead of lines, so reordered keys, whitespace shifts, and number-formatting changes don't appear as diffs. The result is a key-level report showing only the settings, fields, or data points that actually moved.
How to get a clean key-level diff
- Paste or open two JSON files (or JSON Lines / API response payloads) in the input panels.
- Format both sides if they aren't already pretty-printed—this is what lets the diff land on individual keys rather than treating one line of text as a single block.
- Enable key-order matching so fields are compared by name, not position.
- Review the Key-level JSON difference report. Highlighted additions, deletions, and changed values appear without the false positives that plague line-based diffs.
- Before downloading or sharing the result, cross-check it against your original file. Destinations for these reports vary by team and workflow, and a quick verification here prevents re-uploading or re-running later.
What changes vs. what stays the same
- What changes: Values, added keys, removed keys, and type shifts within nested objects. The diff reports these as data movements.
- What stays the same: Key order, whitespace, and cosmetic formatting. These are forgiven by default when you format both sides.
- Renamed keys: If a key is renamed, the tool reports the old name as removed and the new name as added. Interpreting that as a rename is up to your judgment.
Why you should care
Two API responses can carry identical data with fields in different orders. Line-based tools flag every line as changed. This tool follows the names rather than the position in the payload, which is the correct answer for developers, QA analysts, and engineers debugging sync issues without installing desktop software.
Privacy and file handling
Processing runs locally in your browser for supported formats. Nothing is uploaded, stored, or logged on FileCompare servers for browser-side workflows. That matters when you diff contracts, API keys, customer data, or unreleased code—you get instant side-by-side results without sending content over the network. Your original file is never modified; the result is downloaded as a separate file, so keep your original until you've verified the diff.
Related toolxml diff.