The Next JSON Toolbox

JSON Diff & Compare

Compare two JSON objects side by side and see all differences highlighted.

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

Comparison Results

Enter JSON in both fields to compare

JSON Tools

How It Works

See how NextJSON can compare two JSON objects and highlight all differences including added, removed, and changed values.

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

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 broswer.

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.