PixelWave

JSON Compare

Compare two JSON documents by meaning. Moved keys are not changes; every real difference is listed by path.

No upload requiredWorks on any deviceFree, no signup

How to use this tool

  1. Paste both documentsThe original on the left, the changed one on the right. The comparison runs as you type.
  2. Tune what countsIgnore array order to treat arrays as sets, compare numbers by value, and list paths such as updatedAt to leave out.
  3. Read or export the changesEach difference is listed by path. Copy them as a JSON Patch or download the list.

What problem does this solve?

A text diff of two API responses lights up every line when only the key order changed, and hides the one value that actually did. This compares the documents as data: moved keys are not changes, and each real difference is listed with its path, the old value and the new.

Who needs this?

  • Developers checking what changed between two API responses
  • Anyone reviewing a config or fixture change before committing it
  • QA comparing expected and actual JSON in a failing test

FAQ

Does key order count as a change?

No. Objects are compared key by key, so {"a":1,"b":2} and {"b":2,"a":1} are the same document. Arrays keep their order unless you turn on Ignore array order.

How do I leave out fields like timestamps or ids?

List them in Ignore paths, separated by commas. Paths match from the end, so updatedAt ignores it everywhere and *.id ignores the id inside any object or array item.

What is the JSON Patch export?

A list of add, remove and replace operations (RFC 6902) that turns the original into the changed document. It needs array positions, so it is off while Ignore array order is on.