JSON Diff
The JSON diff tool compares two JSON documents and highlights added and removed lines. It sorts object keys before comparing by default, because key order carries no meaning in JSON — without that, a reordered payload would report as entirely rewritten.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the JSON Diff
- Paste the original document into the first box.
- Paste the changed document into the second.
- Leave key sorting on unless the order of keys genuinely matters to you.
- Read the highlighted result: removed lines come from the first document, added lines from the second.
Example
{"a": 1, "b": 2}
{
"a": 1,
- "b": 2
+ "b": 3
}
Common use cases
- Checking what a deployment changed in a configuration file.
- Comparing an API response before and after a code change.
- Reviewing a package-lock or manifest diff without the noise of reordering.
- Confirming two exports from different environments really do match.
Limitations and things to watch for
- The comparison is line based, on both documents formatted with two-space indentation. A change deep inside a long line is reported as that whole line changing.
- Sorting keys changes the output ordering, so the diff shows sorted documents rather than your original formatting. Turn it off if you need to compare the files exactly as written.
- Very large documents are compared in memory with a quadratic algorithm, so a pair of multi-megabyte files can take several seconds.