FreeDev Tools

JSON Diff

Compare two JSON objects and highlight the differences between them.

JSON Diff compares two JSON documents and shows exactly what changed — added keys, removed keys, and modified values — using color-coded line-by-line output. All comparison runs entirely in your browser with no data sent to any server.

Frequently Asked Questions

How does the JSON diff work? +

Both JSON inputs are parsed and pretty-printed with sorted keys, then compared line by line using a longest common subsequence (LCS) algorithm. Lines unique to the right side appear green (added), lines only in the left appear red (removed), and shared lines appear gray (unchanged).

Does key order matter? +

No — both JSON objects are serialized with keys sorted alphabetically before comparison, so reordering keys will not produce false differences.

Is my data sent to a server? +

No. All comparison logic runs locally in your browser. Your JSON data never leaves your device.

Frequently Asked Questions

The tool parses both JSON inputs and performs a deep object comparison. Keys and values that were added appear in green, removed in red, and changed values show both old and new.