JSON Diff
Compare two JSON documents line by line. Highlights additions, removals, and unchanged lines — entirely in your browser.
This tool runs entirely in your browser. No data is ever sent to any server.
JSON Diff FAQ
What is JSON diff?
JSON diff compares two JSON documents line by line after formatting them with consistent indentation. It highlights lines that were added, removed, or unchanged between the two inputs.
How does the comparison work?
Both JSON inputs are parsed, optionally sorted by keys, then pretty-printed with the same indentation. The tool then runs a line-based diff algorithm to find the differences.
Does key order matter?
By default, yes. If you want to compare only the values regardless of key order, enable the Sort Keys option. This will alphabetically sort all keys before comparing.
Can I compare minified JSON?
Yes. Paste minified JSON in either input and the tool will format both documents before comparing, so you always get a readable, line-by-line diff output.
Need to share that JSON securely?
Don't paste API responses or config files into chat. Use CredenShare to deliver sensitive data with AES-256 encryption and automatic expiration.