{}
JSONCompare
JSON Tool

JSON Compare.

Compare two JSON files side by side. Instantly see additions, deletions, and modifications with semantic diff highlighting.

Private
Original
Invalid
Loading editor...

Line 1: Unexpected end of JSON input

Modified
Invalid
Loading editor...

Line 1: Unexpected end of JSON input


Why Text Diff Fails for JSON

You've been there. Two JSON files that should be identical, but git diff shows 200 changed lines. The culprit? One file has 2-space indentation, the other has 4. Or the keys are in a different order. Or there's a trailing newline.

JSON Compare understands structure, not just text. It knows that{"a":1,"b":2} and {"b": 2, "a": 1} are semantically identical. It shows you what actually changed — the values that matter.

Built for Real Debugging

  • Semantic diff — ignores formatting, focuses on data
  • Path navigation — click any change to see its full path
  • Large file support — handles the 50MB API dump your colleague sent
  • Privacy first — runs in your browser, nothing uploaded

The Usual Suspects

Tracking down why staging and production return different responses. Figuring out what changed between v2.3 and v2.4 of that third-party API. Validating that your data migration didn't quietly drop a field.

JSON diff: how the comparison works

A JSON diff compares two documents as data, not as lines of text. This JSON diff checker parses both sides first, so indentation, line breaks and the order of keys inside an object never count as a JSON difference. Only values that were added, removed or changed are reported.

  1. Paste or upload both documents — the first goes in the Original panel, the second in Modified. Each panel is marked Valid or Invalid, and a syntax error is shown with its line number.
  2. Read the summary — the diff runs as soon as both sides are valid JSON, with no button to press. Comparison Results counts what was added, removed and modified, or says Identical when the two documents match.
  3. Go through each difference — every change is listed with its path, such as address.city or hobbies[2], and marked Added (green), Removed (red) or Modified (amber). Modified entries show the original value and the new one, and Copy as JSON Patch copies the whole list as add, remove and replace operations.

JSON diff FAQ

Does key order or formatting show up in the JSON diff?

No. Both documents are parsed before they are compared and objects are matched key by key, so whitespace, indentation and key order are never reported as differences.

How does the JSON diff handle arrays?

By position: the first item on the left is compared with the first item on the right, and so on, so a reordered array shows up as changes. Turn on Ignore Array Order to match equal items wherever they sit; only items with no match on the other side are then reported as added or removed.

Can I leave fields like timestamps out of the diff?

Yes. Open Advanced Options and list the paths to skip under Ignore Paths, one per line. A path such as metadata.id skips that field and anything nested under it, and items[*].updatedAt skips the field in every item of an array.

Need More Power?

JSONLint offers the full toolkit — validation, formatting, schema checking, and more. For sensitive data that can't leave your machine,JSONLint Pro for Mac runs entirely offline with native performance.