Compare JSON documents

Find what changed between two API responses, configuration files, or exported records. Paste the original and updated JSON to see added, removed, and changed values. Your documents are processed in this browser.

For large documents, keep each input under 2 MB. Results show up to 500 differences.

How this comparison works

Object key order and spacing do not matter. Arrays are compared by position, so inserting an item near the beginning can produce several changes. This is a value comparison, not a line-by-line diff or a JSON Patch generator.

Numbers are compared exactly as written to preserve large IDs and decimal precision: 1 and 1.0 are reported as different. Strings are compared by their decoded value. Duplicate object keys are rejected because their meaning is ambiguous.

Paths use JSON Pointer notation: /users/0/name means the name in the first user. Within a key, ~1 represents a slash and ~0 represents a tilde. Missing values are distinct from null.

For a quick test, choose Load example, then Compare JSON. You will see a changed boolean and an added array item. Editing either document clears the previous comparison so it cannot be mistaken for current results.

Need to fix invalid input first? Open the JSON validator and repair tool. New to objects and arrays? Read the JSON structure guide.