The Util Box

JSON Diff Viewer

Free online json diff viewer for developers. Side-by-side diff of two JSON objects. Fast and private.

Paste JSON in both fields to compare

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/json-diff" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free JSON Diff Viewer tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/json-diff -->
<a href="https://www.theutilbox.org/tools/json-diff">JSON Diff Viewer by The Util Box</a>

Frequently Asked Questions about JSON Diff Viewer

JSON Diff — Compare Two JSON Documents by Data, Not Text

This JSON diff takes two JSON documents and reports every structural difference between them: keys that were added, keys that were removed, and keys whose value or type changed. Both documents are parsed with JSON.parse before they are compared, so the check runs on real objects rather than on raw text. That means differences in whitespace and key ordering are ignored — only genuine data changes are reported.

Paste the "before" document into Original JSON and the "after" document into Modified JSON. The two boxes sit side by side, and the result appears the moment both contain valid JSON. If either side fails to parse, the native parse error is shown instead of a diff.

How the Result Is Reported

The output is a compact path-based report, not a colour-coded side-by-side render. Each line names a category and lists the JSON paths in it:

  • Added — paths that exist in the modified document but not the original.
  • Removed — paths present in the original but gone from the modified document.
  • Changed — paths present in both whose value or type differs.

Paths are written from the root $ downward, for example $.user.profile.name, and a summary line underneath totals the counts of added, removed and changed paths. When the two documents match exactly, the panel shows ✓ No differences rather than an empty report. The whole result can be copied with one click.

Common Use Cases

  • API version comparison — check exactly which fields an endpoint added or dropped between two responses.
  • Config review — confirm a migration touched only the keys you intended.
  • Test fixtures — verify a transform or serializer produced the data you expected.
  • Debugging state — compare two snapshots of application state to see what changed.

Related JSON Tools