JSON Diff
JSON Diff
Compare JSON objects and arrays and list exact key-path differences quickly.
JSON Inputs
JSON Diff Result
About The JSON Diff
JSON Diff compares two JSON values and reports added paths, removed paths, and changed values. It is useful for checking API responses, config updates, fixture changes, and payload regressions.
The comparison runs locally in your browser. Inputs must be valid JSON, and the result focuses on structured differences rather than raw whitespace or formatting changes.
How to Compare JSON Online
- Paste the baseline JSON into JSON A.
- Paste the changed JSON into JSON B.
- Click Compare JSON.
- Review added, removed, and changed paths in the result.
- Use Copy Output when you need the diff in a ticket or review note.
Choosing Options Correctly
Input order:
Put the expected or older payload in JSON A and the actual or newer payload in JSON B. This keeps added and removed paths easy to read.
Common Use Cases
- Comparing expected and actual API responses.
- Reviewing JSON config changes.
- Checking what fields were added or removed from a payload.
- Debugging fixture updates in tests.
Quick FAQ
Does formatting affect the diff?
If the tool parses JSON structurally, whitespace should not matter. If parsing fails, text differences may still show formatting changes.
Why did comparison fail?
One or both inputs may be invalid JSON, have trailing commas, comments, or mismatched top-level structures.
Can I compare private payloads?
Avoid pasting sensitive production data unless your internal workflow permits it.
Does key order matter?
For parsed JSON comparison, object key order usually should not matter, but array order still matters.
Related Tools
Text Compare
Compare text line-by-line and word-by-word with fast difference navigation.
Diff Patch Tool
Parse unified diff and preview patch application on source text with hunk validation.
Line Tools
Trim, sort, deduplicate, and clean multiline text quickly.
Text Replacer
Find and replace text with regex and case-sensitive controls.