Compare Two JSON Online – Free JSON Diff Tool

Identical

Left missing · present only in Right

None

Left extra · not present in Right

None

Different values

None

Right missing · present only in Left

None

Right extra · not present in Left

None

Different values

None

Equal in both

{
age: 25
meta: {
x: 1
y: 2
}
name: "Alice"
tags: [
0: "a"
1: "b"
]
}
  1. Paste JSON content into left and right input boxes, or click "Upload File" to select files
  2. Check "Sort keys" to ignore key order differences
  3. View comparison results: missing items, extra items, different values
  4. Click JSON tree nodes to expand and view detailed paths

Help

FAQ

How do I compare two JSON files online?Show
Paste or upload two JSONs into the left and right boxes, enable "Sort keys" if you want to ignore key order, then review the two-column results for missing/extra keys and different values.
Can the tool ignore key order or whitespace?Show
Yes. Turn on "Sort keys" to normalize key order before comparing. Whitespace is not relevant after JSON parsing.
Are my JSON files uploaded?Show
No. All comparisons are processed locally in your browser. Nothing is uploaded.
How are arrays compared?Show
Currently by index (position). If arrays are in different orders, they are reported as different. You can pre-sort arrays or we can add an "ignore order" option if needed.
How to quickly find missing or extra keys?Show
Check the two-column JSON trees: Left Missing/Left Extra on the left, Right Missing/Right Extra on the right. Structures reflect original paths for quick locating.
Does it support large JSON?Show
Yes for typical sizes. Extremely large objects may render slowly. Since everything runs locally, performance depends on your device.

Quick Start

  1. Paste JSON content into left and right input boxes, or click "Upload File" to select files
  2. Check "Sort keys" to ignore key order differences
  3. View comparison results: missing items, extra items, different values
  4. Click JSON tree nodes to expand and view detailed paths

Privacy Notice

Full guide

JSON Compare Tool

What is JSON Compare?

JSON Compare (JSON Diff) is the process of comparing differences between two JSON datasets. In development, it's commonly used for:

  • API Response Comparison: Verify consistency before and after interface changes
  • Configuration File Comparison: Check environment configuration differences
  • Data Migration Verification: Ensure data integrity after migration
  • Version Difference Analysis: Compare data structures across versions

Features

Side-by-Side Comparison View

Left and right columns display differences at a glance:

Left ColumnRight Column
Left missing (only in Right)Right missing (only in Left)
Left extra (not in Right)Right extra (not in Left)
Different values (left value)Different values (right value)

Smart Normalization

  • Sort by Key Name: Ignore key order differences, focus on content
  • Path Tracking: Each difference shows JSON Pointer path

Local Processing

All comparisons happen in your browser, no data leakage concerns.

Use Cases

Case 1: API Response Verification

Left: Production API response
Right: Test API response
Result: Quickly locate field changes

Case 2: Configuration File Comparison

Left: Default configuration
Right: Current configuration
Result: View customized settings

Case 3: Data Version Comparison

Left: Old version data
Right: New version data
Result: Analyze data structure evolution

Related Tools