Private JSON comparison in your browser

Compare JSON online

Compare two JSON files, objects, or API responses side by side. Find added, removed, and changed values in nested data — privately in your browser.

JSON COMPARECompare your original and modified JSON
Files stay in your browser
Original JSON
Modified JSON
Try an example

See how a few changed values appear in a simple JSON object.

Options
Files stay in your browser No sign-up Free to use
01

Compare JSON Files Instantly

Compare two JSON files, objects, or API responses side by side. Paste JSON or choose local .json files to instantly find added, removed, and changed values. Ignore key order when needed. Everything runs privately in your browser — your files are never sent to a server.

02

JSON Compare Features

Side-by-Side JSON Diff

See two JSON files side by side and spot changes quickly.

JSON Object Comparison

Compare JSON objects or API responses, even when they contain nested data.

Ignore Key Order

Treat matching objects as equal even when their keys are in a different order.

Nested JSON Diff

Find changes within nested objects and arrays, not just at the top level.

Processed in Your Browser

Compare JSON privately in your browser. Your files stay on your device.

Export Differences

Copy the changes or download a JSON report for later.

03

How JSON Comparison Works

JSON Compare checks two valid JSON inputs and shows which fields were added, removed, or changed. You can review the differences side by side or find a specific change in the field list.

By default, the order of keys in an object doesn't matter, but the order of items in an array does. You can change either setting above. Spacing and indentation differences are shown separately unless you select Ignore whitespace.

Comparison ruleDefault behavior
Object key orderIgnored. Objects with the same keys and values compare as equal.
Array element orderPreserved. Enable Ignore array order when order should not matter.
Nested objects and arraysChecks values inside nested objects and arrays, with a location for each change.
Whitespace and indentationReported as formatting differences unless Ignore whitespace is enabled.
Large integer valuesCompared without rounding away digits in large numbers.

Both inputs must contain valid JSON. Comments inside JSON aren't supported.

04

How to Compare JSON Files

01

Paste or choose a file

Paste JSON into both boxes or choose a .json file for each one. Your files stay in your browser.

02

Click Compare JSON

Click Compare JSON to find differences using the options you've selected.

03

Review the result

See what's been added, removed, or changed. Copy the changes or download a report.

Working with other formats? Convert YAML to JSON or Convert JSON to YAML, Convert XML to JSON, then compare the result here. Need a spreadsheet from JSON? Convert JSON to Excel.

05

JSON Compare Example

See how a changed value and a new field appear when you compare two JSON objects.

ORIGINAL JSON
{
  "user": {
    "id": 101,
    "role": "user"
  },
  "active": true
}
MODIFIED JSON
{
  "user": {
    "id": 101,
    "role": "admin",
    "verified": true
  },
  "active": true
}
JSON DIFF~ $.user.role: "user" → "admin"
+ $.user.verified: true

The role changed from user to admin, and a verified field was added. Unchanged fields don't appear as differences. Go to the tool and select Nested.

06

When to Use JSON Compare

Compare API Responses

Paste two JSON API responses to check which fields or values changed between requests or versions.

Compare JSON Configuration Files

Compare JSON settings files from different environments and spot changes to options, values, or nested fields.

Compare Nested JSON Objects

Find changes buried inside objects and arrays. Each difference shows where the change happened.

Need to combine files rather than compare differences? Use our JSON Merge tool to merge multiple JSON objects and arrays.

07

Frequently asked questions

What is JSON comparison?

JSON comparison shows what's different between two JSON files or objects, including fields that were added, removed, or changed. Unlike a line-by-line text comparison, it can ignore object key order and find changes inside nested data.

How do I compare two JSON files online?

Paste your JSON into the Original JSON and Modified JSON boxes, or choose a .json file for each side. Click Compare JSON to see the changes. If your file has a syntax error, try the JSON Validator.

Can I compare nested JSON objects and arrays?

Yes. You can compare JSON with multiple levels of objects and arrays. Changes are listed by field, such as $.user.profile.city. Array order matters by default, but you can select Ignore array order if it doesn't matter for your files.

Can I compare two JSON API responses?

Yes. Paste two JSON API responses to see which fields or values changed between requests or versions. You provide both responses; this tool doesn't fetch data from an API.

Does object key order matter when comparing JSON?

No. Ignore key order is on by default, so two objects with the same keys and values compare as equal even if the keys appear in a different order. Turn it off if you want to see key-order changes.

Can I ignore array order or spacing differences?

Yes. Array order matters by default, but you can select Ignore array order to compare items regardless of their position. You can also select Ignore whitespace to hide differences caused only by spacing or indentation.

Does JSON Compare preserve large integers?

Yes. Very large numbers are compared without rounding away their digits. When your JSON contains large integers, a message explains how they're handled.

Is my JSON uploaded to a server?

No. Pasted JSON and selected local files are processed in your browser. The comparison tool does not upload your JSON content to jsoncompare.dev.

Is this JSON compare tool free?

Yes. You can compare JSON files online without creating an account or signing up.