JSON Diff Checker

Compare two JSON documents structurally — ignores key order, highlights real value changes in a tree, and exports a JSON Patch (RFC 6902).

Compare two JSON documents
Original
Modified

How to use the JSON Diff Checker

  1. Paste or type JSON into the Original and Modified boxes, or drag a .json file onto either one.
  2. Read the annotated tree below — green rows were added, red (struck through) rows were removed, and rows showing an arrow () changed value. Key order never counts as a difference.
  3. Check the stats bar for a quick added/removed/changed/unchanged count.
  4. Click Copy as JSON Patch to copy the differences as a standard RFC 6902 patch.
  5. Use the swap button between the two input boxes to flip Original and Modified.

How This Tool Works

Paste or type JSON into the Original and Modified boxes (or drag a .json file onto either one) — after a brief pause, a single annotated tree below shows exactly what changed. Unlike a plain text diff, key order never counts as a change: { "a": 1, "b": 2 } and { "b": 2, "a": 1 } compare as identical.

Each row in the tree is colored by what happened to it: green for added, red (struck through) for removed, and a red-to-green "old → new" pair for a value that changed in place. Every path containing a difference auto-expands so you never have to hunt through collapsed branches to find what changed.

The stats bar above the tree counts added, removed, changed, and unchanged values. Arrays are compared by position (index 0 against index 0, and so on) — inserting an item in the middle of an array will show every following index as changed, since their positions shifted.

Use Copy as JSON Patch to copy the differences as a standard RFC 6902 JSON Patch array — ready to paste into a patch request, a test fixture, or any tool that consumes JSON Patch operations. Everything runs in your browser — nothing you paste or drop is uploaded anywhere.

Frequently Asked Questions

Advertisement

Related tools

Advertisement