JSON Diff

Compare two JSON documents structurally, by key path

Runs in your browserUtility05Text & Diff

What is JSON Diff?

A JSON diff tool compares two documents key path by key path and reports three kinds of change — added, removed, and modified — without being thrown off by key ordering or indentation. It is the fastest way to find out why a config differs between two environments, or what actually changed in an API response. The comparison runs locally in your browser.

How to use JSON Diff

  1. 1Paste one JSON document into the left pane and the other into the right pane.
  2. 2Read the difference list below; every entry is labeled with a key path such as $.retry.backoff.
  3. 3Use "Copy diff" to drop the result straight into a ticket or a commit message.

Frequently asked questions

How is a JSON diff different from a plain text diff?+

A text diff compares line by line, so reordered keys and a change in indentation both show up as differences even though the data is identical. This tool parses both inputs into data structures first and compares them by key path, so it only reports genuine semantic changes. Reach for it before a text diff whenever you are debugging configuration.

How are arrays compared?+

Element by element, matched by index. That means inserting a single element in the middle of an array marks every element after it as changed. If the array really represents an unordered set, sort both sides by a stable key before comparing.

Related tools

All tools