Compare JSON

Paste two JSON objects and instantly see the differences — key order is ignored, only real data changes are highlighted.

When debugging API responses, reviewing configuration changes or verifying that two data sources are in sync, you need to know precisely how two JSON objects differ — or confirm they are identical. This tool compares two JSON objects after normalising key order recursively, so differences reflect genuine data changes rather than irrelevant key reordering.
0 chars
Data Tools

Runs locally  ·  No data sent to server  ·  Free, no signup

About Compare JSON

When debugging API responses, reviewing configuration changes or verifying that two data sources are in sync, you need to know precisely how two JSON objects differ — or confirm they are identical. This tool compares two JSON objects after normalising key order recursively, so differences reflect genuine data changes rather than irrelevant key reordering.

How to use Compare JSON

Paste the first JSON object in the main input box and the second JSON object in the second input field. Click Run. If the two objects are semantically identical after key normalisation, the tool confirms this. If they differ, the output shows a line-by-line diff identifying the differences.

When to use this tool

Use this when comparing two versions of an API response to check whether data has changed, when verifying that a configuration update was applied correctly, when debugging mismatches between two data sources that should be identical, or when checking that a JSON transformation produced the expected result.

Privacy

Standard text comparison flags key reordering as a difference even when the data is semantically identical. This tool sorts keys recursively before comparing, so only genuine data differences are reported. All processing runs in your browser — no JSON is sent to a server.

Frequently asked questions

Does key order matter?

No. Both JSON objects are recursively sorted by key before comparison. Two objects with the same keys and values in a different order are reported as identical.

Can I compare JSON arrays?

The tool works best with JSON objects. Array element order is significant and preserved during comparison, so reordered arrays are treated as different even if they contain the same elements.

What does the output look like when objects differ?

The tool shows a line-by-line diff of the two formatted JSON objects, highlighting which lines differ between them.

What if one or both inputs are invalid JSON?

The tool validates both inputs before comparing. If either input contains a JSON syntax error, an error message identifies the problem so you can fix it before comparing.