JSON Diff

Compare two JSON objects. See added, removed, and changed keys. 100% client-side.

No differences (or run Compare).

Related Tools

What This JSON Diff Tool Offers

Compare two JSON objects and see exactly what was added, removed, or changed by key. Paste or upload the left and right JSON; the tool runs a key-level diff and shows a list of differences with summary counts (added, removed, changed). You can filter the list to show only one type of change. If either input is invalid JSON, the tool reports which side failed, shows a short snippet around the error, and links to the Formatter and Validator. Clear resets both inputs and the result. All processing is client-side.

  • Key-level diff: Differences are shown by path: added in right, removed from left, or changed value. Nested objects are compared recursively.
  • Summary and filter: Summary counts show how many added, removed, and changed. Filter dropdown lets you show only added, only removed, or only changed.
  • Error handling: Invalid JSON on either side shows which side failed, the error message, and when available a snippet. Links to Formatter and Validator help you fix the input.
  • Clear: One click clears both text areas, the diff result, and file inputs so you can start with new JSON.
  • Powered by browser APIs and client-side processing.

Why Use JSON Diff?

Config files, API responses, and exported data often change between versions. A key-level diff tells you exactly which keys were added, removed, or changed without scanning full documents. That speeds up code reviews, debugging, and audits. Running the diff in the browser keeps your data private and works offline after the page loads.

Options at a Glance

  • Left / Right inputs: Paste or upload a .json file for each side. Both must be JSON objects (not arrays or primitives at the root).
  • Compare: Runs the diff and shows the list plus summary counts (added, removed, changed).
  • Filter: After comparing, show All, Added only, Removed only, or Changed only.
  • Clear: Clears both inputs, the diff result, any parse error, and file inputs.

Frequently Asked Questions

Is my data secure?

Yes. Comparison runs entirely in your browser. Your data never leaves your device and is not sent to any server.

What if one of my JSON inputs is invalid?

The tool shows which side (left or right) failed, the parser error message, and when available a short snippet around the error. You get links to the JSON Formatter and Validator to fix the input.

What does the filter do?

After comparing, you can filter the list to show only added keys, only removed keys, or only changed keys. Summary counts always show the total added, removed, and changed.

Can I compare JSON from files?

Yes. Use the file input under each text area to load a .json file for left and right. Loading a new file clears the previous diff and any parse error.