Compare JSON

How to compare two JSON files (clean diffs)

A good diff is about reducing noise so you can focus on real changes.

Step 1: Format both JSON inputs

Formatting normalizes indentation and line breaks, which makes diffs easier to read.

Step 2: Sort keys (when order doesn’t matter)

If the JSON objects are semantically the same but key order differs, sorting can produce a much cleaner diff.

Tip: Don’t sort arrays if element order is meaningful (for example event lists or ordered steps).

Step 3: Load the diff and use navigation

Click Load Diff, then use Next Change and Previous Change to jump between edits.

Common pitfalls

Related: Validate JSON · JSONPath examples