Online JSON Diff & Comparison Tool

Compare two JSON documents side-by-side with semantic normalization, syntax highlighting, and change counters.

Runs locally 0 lines • 0 bytes Ready
Awaiting comparison
Tip: drop a file anywhere on the page
Original (left)
Modified (right)
Differences
// Diff results will appear here…
About this tool

How the JSON Diff works

Compare two JSON files or strings side-by-side. Highlight additions, deletions, and key-value modifications with semantic JSON diffing.

How to use the JSON Diff

  1. Paste the original JSON on the left.
  2. Paste the changed JSON on the right.
  3. Review highlighted additions and removals; enable key sorting to ignore key-order differences.

JSON Diff example

Input
Left:  {"plan":"free","seats":3}
Right: {"plan":"pro","seats":3,"trial":false}
Result
− "plan": "free"
+ "plan": "pro"
+ "trial": false

When to use it

  • Comparing API responses before and after a deployment.
  • Reviewing changes between two versions of a config or feature-flag file.
  • Debugging snapshot test failures.

Tip: Both sides are formatted the same way before comparison, so whitespace and indentation never show up as changes.

Changes by JSONPath

Lists every added, removed and changed value by path (for example $.features.analytics: false → true), ignoring key order.

Git-Style Line Diff

A Myers line diff with word-level highlights shows exactly which characters changed; unchanged runs fold away.

Sort Keys & Swap

Normalise key order before comparing and swap left and right with one click.

Private & Secure

Compare production configuration files, database records and API responses with complete privacy.

FAQ

Common questions

How does JSON Diff handle different key orders?

Our tool can sort and normalize keys before comparison, ensuring only real data changes are highlighted rather than arbitrary key ordering.

Can I compare large API responses?

Yes. The diff runs in your browser with the same algorithm git uses, and long unchanged sections collapse so large documents stay readable. Copy or download the line-by-line diff output.

What do the colors mean?

Green highlights added paths and lines, red marks removed items, and amber (~) marks modified paths in the summary list.

Does any comparison data get stored?

None. Your inputs remain entirely in your browser memory and are discarded when you close or refresh the tab.