Why use this JSON diff?
- Compare two valid JSON documents without uploading them anywhere.
- See added keys, removed keys, and changed values as path lists.
- Ignore object key order so cosmetic reordering does not create noise.
- Fix invalid JSON first with inline format buttons or the dedicated formatter page.
Wave 3 dev-data expansion
Compare two JSON documents
Paste the left and right JSON, optionally pretty-print both sides with sorted keys, then compare the structures. Object key order does not count as a difference on this page.
Left JSON
Example: current payload, old response, or baseline config.
Right JSON
Example: new payload, imported response, or proposed config.
Diff summary
Key order differences are ignored. Arrays are compared by index order.
Added keys
Removed keys
Changed values
Key order is not the same as structural change
In JSON objects, key order is often cosmetic. This page compares keys and values by structure, so a reordered object does not count as a change by itself. Arrays are different: array order affects meaning, so index changes are reported.
Formatter vs diff
A formatter helps you validate or re-indent one document. A diff helps you compare two valid documents. If parsing fails on one side, fix that first. The diff becomes meaningful only after both sides are valid JSON.
Invalid JSON should be fixed first
If one side is malformed, this page reports a parse error for that side instead of guessing what you meant. Use the inline format buttons here or the JSON formatter if you need a dedicated validation view.
Frequently asked questions
Does key order count as a difference?
No. This page compares JSON structure and values, not object key order. Reordering keys inside the same object does not count as a diff here.
What should I do if one side is invalid JSON?
Fix the parse error first. A structural diff only makes sense after both sides are valid JSON. You can use the format buttons here or move to the JSON formatter for a dedicated validation view.
How is this different from a JSON formatter?
A formatter rewrites one JSON document for readability or validation. A diff compares two valid JSON documents and highlights structural differences such as added keys, removed keys, or changed values.
Are arrays compared by value or by order?
Arrays are compared by index order. If the same values appear in a different order, this page reports that as a change because the array structure is different.
Related
Comments (optional)
To reduce load, comments are fetched only when needed.