The Paper Room

JSON Diff Checker

Paste two JSON values side by side and instantly see what changed between them. Additions are highlighted in green, removals in red, and unchanged lines appear in neutral text. The tool parses both inputs, formats them consistently, and runs a structural diff so that key reordering and whitespace differences don't produce false positives.

This is invaluable when comparing API responses across versions, debugging configuration changes, reviewing database record snapshots, or verifying that a migration script produces the expected output. The diff is displayed inline with color coding for quick scanning.

All processing happens in your browser — your data is never sent anywhere.

By The Paper Room Editorial TeamDeveloper Tools

Frequently asked questions

Does key order matter in the comparison?

No. Both JSON inputs are parsed and re-serialized with sorted keys before diffing, so the comparison is structural. Two objects with the same keys and values in different order will show no differences.

Can I compare JSON arrays?

Yes. Arrays, objects, nested structures, and primitive values are all supported. The diff operates on the formatted JSON text after parsing, so any valid JSON can be compared.

What diff algorithm is used?

The tool uses the 'diff' npm package's diffJson function, which produces a line-by-line structural diff similar to Unix diff but optimized for JSON content.