Compare JSON
Spot the differences between two JSON files — added lines in green, removed lines in red. Both files are pretty-printed before comparing, so formatting differences alone won't show up as changes.
Free, with no account needed. It runs in your browser, so your file never leaves your device.
Select JSON file
or drop it here · up to 25 MB
Select JSON file
or drop it here · up to 25 MB
About Compare JSON
Compare JSON shows the differences between two JSON files. Both files are formatted the same way first, so spacing differences do not count, and then compared line by line.
Last reviewed
How to use it
- Select the first JSON file, then the second.
- Press Compare JSON files.
- Read the added, removed and changed lines.
When to use it
- Checking what changed between two versions of a configuration before deploying it.
- Comparing API responses from two environments, such as test and production.
- Finding why two exports of the same data give different results.
Good to know
- It is a text comparison of the formatted files, not a comparison of the data. Two files with the same keys in a different order will be shown as changed.
- Spacing and indentation never matter, because both files are formatted first.
- Both files must be valid JSON.
Tips for a better result
- Sort keys the same way in both files if their order differs. Otherwise unchanged data in a different order shows as changed.
- Remove fields that always differ, such as timestamps and request IDs, to see the changes that matter.
- Format both files first with JSON Formatter if one of them is invalid.
Questions about Compare JSON
- Why does it show a change when the data is the same?
- The comparison is line by line. If the same keys appear in a different order, the lines differ even though the data means the same thing.
- Do spaces and line breaks count as differences?
- No. Both files are re-formatted the same way before comparing.
- How much does Compare JSON cost?
- Compare JSON is free, and you don't need an account. It runs inside your browser, so it costs us nothing to run and there are no credits to spend.
- Is my file kept after I use Compare JSON?
- Your file never leaves your device. Compare JSON works inside your browser, so nothing is uploaded and there is nothing for us to keep.
- Do I need an account to use Compare JSON?
- No. Compare JSON works without an account or sign-up. Open the page, choose your file and download the result.
- Does Compare JSON work on a phone?
- Yes. Compare JSON runs in the browser on phones, tablets and computers, with nothing to install. A very large file can be slow on an older phone, because your own device does the work.
- Is there a file size limit for Compare JSON?
- We set no upload limit, because nothing is uploaded: the limit is your device's memory. If your browser can't process a file, the page offers to process it on our servers instead. That uses credits and accepts files up to 25 MB.