JSON Diff - Compare JSON Online

Paste two JSON documents to instantly compare them and see exactly what changed. This free diff tool highlights added, removed, and modified values with a clear visual diff.

How to Use

  1. Paste the original JSON in the left input field.
  2. Paste the modified JSON in the right input field.
  3. Click "Compare JSON" to see the differences.
  4. Review the color-coded diff output showing all changes.

Features

  • Side-by-side comparison of two JSON documents
  • Color-coded diff highlighting: added (green), removed (red), modified (yellow)
  • Deep comparison of nested objects and arrays
  • Summary of total changes (additions, deletions, modifications)
  • Works entirely in the browser with no data upload
  • Copy diff results to clipboard

Frequently Asked Questions

How does the JSON diff tool work?

The tool parses both JSON documents into structured objects, then recursively compares every key and value. Differences are categorized as additions (new keys), deletions (removed keys), or modifications (changed values).

Can it compare nested JSON?

Yes. The diff tool performs a deep recursive comparison, handling nested objects and arrays at any depth level.

Is my data sent to a server?

No. The entire comparison runs locally in your browser. No data is uploaded or stored.

What is the difference between JSON diff and JSON compare?

They are the same thing. JSON diff and JSON compare both refer to finding the differences between two JSON documents.