JSON Compare (JSON Diff Checker)

This online JSON compare (JSON diff checker) tool helps you compare two JSON values after formatting and sorting object keys. Read more

Compare two JSON values online

This JSON diff checker parses two documents, sorts object keys, formats both sides consistently, and highlights their structural text differences. Formatting and object-property order are therefore ignored, while changed values and array ordering remain visible.

Use it to compare API responses, configuration files, fixtures, exported data, or two revisions of a JSON document.

How to compare JSON

  1. Paste the original JSON into the left editor.
  2. Paste the modified JSON into the right editor.
  3. Click Compare.
  4. Review highlighted additions, removals, and changed values.

Both inputs must be valid JSON. A syntax error is reported before comparison so malformed data is not silently normalized.

What the comparison normalizes

Object keys are sorted recursively, so {"b":2,"a":1} compares equal to {"a":1,"b":2}. Array order remains significant because [1,2] and [2,1] can represent different data.

The tool compares parsed JSON values according to its normalized text representation. It does not apply a JSON Schema, application-specific numeric tolerances, set semantics for arrays, or domain rules. JSON syntax is defined by RFC 8259.

JSON compare FAQ

Why did property-order differences disappear?

JSON object member ordering is normalized before the diff so the comparison focuses on names and values rather than source layout.

Why are reordered array items highlighted?

Arrays are ordered collections. Changing item positions may change meaning, so the comparison preserves their sequence.

How is this different from Text Compare?

Text Compare reports literal formatting and key-order changes. JSON Compare first parses and normalizes both documents.

JSON Compare
Settings