JSON Diff — Compare Two JSON Files

Paste two JSON documents to find value and structure changes. Ignore irrelevant object-key ordering.

Formats JSONSteps & examples
Two matching data trees show one changed node in red.

Workspace

Runs locally in your browser. No file upload.

Input & settings

Paste text or edit a loaded file
Compare with input

Select a file or paste data to begin.

Result

Run the tool to check your output here.

Find meaningful changes between JSON documents

  1. Paste the original JSON on the left and the changed JSON on the right.
  2. Compare the documents to list added, removed and changed paths.
  3. Review the affected values and copy or download the difference report.

Worked example

Comparing {"count":1,"active":true} with {"active":true,"count":2} reports a change at $.count. Reordering the object keys alone produces no difference.

Input and output

Paste two complete JSON values with the earlier version on the left. Read a changed path together with its before and after values. An added field containing null has a different meaning from a removed field, even if both appear blank in a downstream spreadsheet.

Format and size limits

Objects are compared by key and arrays by index. Inserting a single item at the beginning of a list can therefore produce changes at every later position. The report describes the parsed data and cannot match records automatically by a business key such as an invoice number.

If processing fails

If parsing stops, check both inputs for trailing commas, comments or a copied log prefix. When exact digits in long numeric identifiers matter, inspect the source text as well: JavaScript numbers cannot represent every large integer exactly.

Questions about this tool

Does array order matter?

Yes. Array elements are compared by position, so reordering an array counts as a change even when its values are the same.

Can the comparison detect whitespace or duplicate keys?

It compares parsed JSON values. Whitespace is ignored, and duplicate object keys are not preserved by JSON parsing. Use a text diff when those details matter.

How it works

Structural JSON comparison is easier to review than plain text diff when whitespace and key order change. Objects are compared recursively, while array positions remain significant. Every difference includes its JSON path and whether a property was added, removed or changed.

Important limitations

The tool compares parsed JSON data and does not preserve whitespace or duplicate object keys. Array reordering counts as a change. Very large JSON objects may be slow on a mobile browser.