JSON Diff Online
Compare two JSON documents line by line.
Open JSON DiffFree · No sign-up · Browser-based processing
What JSON Diff does
Compare two JSON documents after consistent formatting to spot added, removed and changed lines.
Common uses
- Review API response changes
- Compare configuration revisions
- Check test fixtures during debugging
How to use JSON Diff
- Paste the original JSON into the first editor.
- Paste the modified JSON into the comparison editor.
- Run the diff and review additions and removals in the output.
Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.
JSON Diff example
Try the tool with this representative input:
{"port":8080,"debug":false}JSON Diff FAQ
Is this a semantic object diff?
It is a formatted line comparison, so property order can affect the output.
Are both documents validated?
Yes. Invalid JSON must be corrected before a reliable formatted comparison can be produced.
Is comparison data uploaded?
No. Both documents stay in the browser.
Compare a before-and-after JSON API response
Paste the original response into Input and the newer response into the comparison field. Both inputs must parse as JSON; the tool formats each document before comparing its lines.
This is a text comparison after formatting, rather than a semantic object comparison. Reordered properties can appear as differences, and moved lines can appear as removals and additions. Use it for focused reviews of small response or configuration changes.
Worked example
Input and settings:
Original: {"status":"pending"}
Updated: {"status":"complete"}Expected result or interpretation:
The formatted status line changes from "pending" to "complete".Questions about this workflow
Does JSON diff ignore object key order?
No. It compares formatted lines, so different property order can produce differences even when the objects describe equivalent data.
Can I compare invalid JSON or JSON log fragments?
Both editors must contain complete valid JSON values. Extract the JSON portion of a log entry and correct syntax errors before comparing.