What is semantic JSON compare?
Semantic JSON compare parses both documents into data structures, optionally removes keys you choose (at any depth), normalizes object key order, and optionally sorts array elements using a stable signature so you can treat arrays as order-insensitive sets. The tool then walks both trees and reports matched equal subtrees plus structured mismatches (type, value, length, missing index, or keys only on one side). This is different from a plain text diff: reordering keys or array elements does not create false positives when normalization matches your intent.
JSON Compare vs text diff
A line-by-line text diff (like our Text Diff tool) highlights insertions and deletions in the raw file. That is ideal for code and logs. JSON Compare is for when you care about data equivalence: same object keys and values after normalization, same array membership when sorting is enabled, and human-readable paths such as $.items[0].id plus RFC 6901 JSON Pointers for automation.
How to use this tool
- Paste JSON A and JSON B (or load .json files from disk).
- Optionally list comma-separated key names to strip before comparing (for example timestamps or ids).
- Toggle “Sort array elements” depending on whether array order should matter.
- Click Compare to see mismatch cards, a matched-subtrees table, and full normalized JSON.
- Use Copy mismatch paths or Download report for CI notes and debugging.
Privacy
Everything runs locally in your browser. Your JSON is not sent to Dynamic Duniya servers or third parties. The download report is built as a file on your device using a Blob URL.