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.

Original JSON
JSON Format
Modified JSON
JSON Format
Differences
Diff Output
Files never leave your device. Privacy & limits
Embed tool Add this tool to your website Get embed code

Add this comparison tool to a related page with a visible FileCompare source link.

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.