Back to Tools

JSON Diff Tool

Paste two versions of a JSON document and get a list of every key that was added, removed or changed, with the path to each one.

First JSON

The original or expected version

Second JSON

The new or actual version

Differences

Each change, with its path

Compare two JSON objects to see the differences

How to use it

Paste both versions, compare, and read the list.

1

Paste both versions

Put the original on the left and the changed version on the right.

2

Compare JSON

Click Compare JSON. If either side isn't valid JSON, you'll see the parser error.

3

Read the differences

Each difference shows its path, such as user.address.city, and the value on each side. Copy Result gives you the list as JSON.

Features

What the comparison checks.

Nested comparison

Walks into nested objects and arrays and reports differences at any depth. Array items are compared by position, so inserting an item near the start shows up as changes to every item after it.

Paths

Every difference comes with its path, like items[2].price, so you can find it in the original file.

Added and removed keys

Keys or array items that exist on only one side are marked as added or removed.

Changed values and types

When a value changes, you see both versions. If the type changed too, for example a number that became a string, both types are listed.

When it helps

A few common reasons to compare JSON.

API testing

Compare the response you expected with the one you got.

Debugging

Compare application state before and after a bug appears.

Config files

Check what differs between the staging and production versions of a config.

Data migrations

Compare a record exported from the old system with the same record from the new one.

Other JSON tools

Convert JSON to a table, CSV or XML, format it, or query it with JSONPath.

View All Tools