JSON Compare
Compare two JSON objects side by side, field by field.
Runs entirely in your browser. Nothing you paste or upload leaves your device.
How to use the JSON compare
- Paste the first JSON into box A and the second into box B, or press “Sample”.
- Press “Compare”.
- Read the field-by-field differences, shown side by side.
JSON compare example
A = {"name": "Ada", "age": 36, "city": "London"} and B = {"name": "Ada", "age": 37, "country": "UK"}. The comparison reports age changed (36 → 37), city removed and country added; name is unchanged.
Tips for using the JSON compare
- Format both sides first with the JSON Formatter if one is minified.
- Arrays are compared by position: the same items in a different order show as changes.
- Use it to check API responses before and after a deploy, or config files across environments.
JSON compare: common questions
- What counts as a difference?
- A field that exists in only one document, or a field with a different value in each. Identical fields are not listed as differences.
- Does the order of keys matter?
- No. The comparison is by field name, so the same fields in a different order still match.
- Is my JSON uploaded?
- No. The comparison runs in your browser.
- Does "1" equal 1?
- No. A string "1" and a number 1 are different JSON types and are reported as a change.