JSON Diff
Run parsing, conversion, and validation in your browser. No input is sent to a server. Use it for first-pass format troubleshooting.
Status
Runs in your browser. No input is sent to a server. Use this as a first-pass diagnostic step.
How to use
Paste JSON A / JSON B and click “Compare”. Differences are shown with paths.
Notes (this tool)
- Arrays are compared in order; different order counts as a diff.
About this page
What does this tool do?
Paste two JSON documents and compare them to list added/removed/changed fields.
Useful for API response diffs and configuration changes.
It also pairs well with JSON Formatter / JSONC Formatter before comparing.
Typical use cases
- Compare API responses before/after
- Review config changes
- Check if differences are just key order
About paths
Diffs are displayed with paths like `user.name` or `items[0].id`.
Key order handling
Since JSON objects are often treated as key sets, enable “Ignore key order” when appropriate.
Arrays often have meaningful order; this tool compares arrays in order.
What this tool does
- Show additions/removals/changes
- Ignore key order (optional)
- Show diffs with paths (e.g., user.name)
Debugging workflow (recommended)
- Paste target data
- Run conversion or parsing and review results
- Check delimiters, character encoding, and padding
Operational notes
- The same string can be interpreted differently by context. Prioritize destination specifications.
- Watch for upstream auto-conversion such as spaces, line breaks, and URL decoding.
Referenced specs
- RFC 8259 (JSON)
FAQ
How are arrays compared?
Arrays are compared in order; different order counts as a diff.
What changes when ignoring key order?
It sorts object keys before comparing, reducing diffs caused by order only.
Can it compare JSONC (with comments)?
This tool expects standard JSON. Convert JSONC to JSON with JSONC Formatter first.
References
Next to view (diagnostic order)
These links are generated from site_map rules in recommended diagnostic order.
- JSONC Formatter — Format and validate JSONC (comments/trailing commas)
- JSON Formatter — Pretty-print, minify, and validate JSON
Example
{"a":1} vs {"a":2}+ user.name: "alice" ~ user.age: 20 -> 21