JSON Diff

Original and revised

Comparison

Differences

Paste two JSON documents, then compare. Ctrl/⌘ + Enter also works.

What is JSON Diff?

Text diffs lose the plot when JSON keys are reordered — identical data shows as full-file noise. This tool parses both sides and walks the structure: arrays compare by index, objects by key union, and every difference comes out as a path-addressed row (added, removed, or old → new), immune to formatting and key order.

Counts summarize each kind at a glance; long values are truncated for display but compared in full. Deeply nested API responses, config files and fixtures all work — everything is parsed in your browser.

Frequently asked questions

Why use this instead of a text diff?

Text diffs flag reordered keys and whitespace as changes; a structural diff compares parsed values, so {"a":1,"b":2} vs {"b":2,"a":1} correctly shows zero differences.

How are arrays compared?

By position: index 0 compares against index 0. Different values at an existing index count as changed; extra or missing indices count as added or removed. Moves are not detected separately.

Is there a size limit?

The result shows up to 500 differences. When this limit is reached, the page marks the result as partial; counts summarize only the displayed rows. Long values can be expanded.