The Next JSON Toolbox

JSON Compare & Diff

Compare two JSON objects online side by side. This JSON compare tool works as a JSON diff online, highlighting every added, removed and changed value.

Chars:0Tokens:0
Chars:0Tokens:0

JSON Tools

How to Compare JSON Online

Paste two JSON objects and compare them: the JSON diff below shows how added, removed and changed values are highlighted.

Compare Pet Profile Updates

Track changes in your adorable pet's profile, including new skills learned and updated favorite things!

Original JSON
{
  "pet": "Mochi",
  "species": "Cat",
  "age": 2,
  "mood": "sleepy",
  "favoriteFoods": ["tuna", "chicken"],
  "skills": {
    "napping": "expert",
    "purring": "master"
  },
  "toys": ["feather wand", "cardboard box"]
}
Modified JSON
{
  "pet": "Mochi",
  "species": "Cat",
  "age": 3,
  "mood": "playful",
  "favoriteFoods": ["tuna", "salmon"],
  "skills": {
    "napping": "expert",
    "purring": "master",
    "zoomies": "professional"
  },
  "bestFriend": "Biscuit the Dog"
}
Differences Found
~ age: 2 → 3
~ mood: "sleepy" → "playful"
~ favoriteFoods: ["tuna","chicken"] → ["tuna","salmon"]
+ skills.zoomies: "professional"
- toys: ["feather wand","cardboard box"]
+ bestFriend: "Biscuit the Dog"

Cozy Cafe Menu Changes

Compare seasonal menu updates at your favorite cafe with new treats and price adjustments.

Original JSON
{
  "cafe": "Sunny Bean",
  "menu": {
    "drinks": [
      {"name": "Honey Latte", "price": 5.50},
      {"name": "Matcha Cloud", "price": 6.00}
    ],
    "snacks": ["croissant", "muffin"]
  },
  "openHours": "8am-6pm"
}
Modified JSON
{
  "cafe": "Sunny Bean",
  "menu": {
    "drinks": [
      {"name": "Honey Latte", "price": 5.99},
      {"name": "Lavender Dream", "price": 6.50}
    ],
    "snacks": ["croissant", "cookie"],
    "special": "Rainbow Cake"
  },
  "openHours": "7am-8pm",
  "wifi": true
}
Differences Found
~ menu.drinks[0].price: 5.50 → 5.99
~ menu.drinks[1].name: "Matcha Cloud" → "Lavender Dream"
~ menu.drinks[1].price: 6.00 → 6.50
~ menu.snacks: ["croissant","muffin"] → ["croissant","cookie"]
+ menu.special: "Rainbow Cake"
~ openHours: "8am-6pm" → "7am-8pm"
+ wifi: true

Frequently Asked Questions

How do I compare two JSON objects online?

Paste the original JSON on the left and the modified JSON on the right, then click Compare JSON. The JSON compare tool lists every difference and highlights it in both JSONs.

Does key order matter when I compare JSON?

No. Object properties are matched by key name, so two JSONs with the same keys in a different order are treated as identical. Array elements are compared by index.

What types of differences are detected?

The tool detects three types: Added (new keys in the modified JSON), Removed (keys that no longer exist), and Changed (same key but different value).

Can I select specific differences to highlight?

Yes! Click any difference to select it, or use Select All. Selected items are highlighted in the JSON view—green for added, red for removed, yellow for changed values.

Does it work with nested objects and arrays?

Yes, the diff works recursively through nested structures. Array elements are compared by index, and object properties are compared at any depth.

Does this site store my data in the cloud?

No, this site does not store or share your data in the cloud. Your data remains private and is kept locally on your browser.

This site lacks some useful features that I need. Can you add them?

Yes, we welcome all suggestions! Please feel free to share your feedback using the link at the bottom of the page.