JSON diff

Compare two JSON objects and get the differences between them.

About JSON diff

Compares two JSON documents and shows what was added, removed or changed, as a tree with colour coding. Both inputs accept relaxed JSON5, so comments and trailing commas do not get in the way.

When you would use it

How to use it

  1. Paste the original JSON into the first field.
  2. Paste the JSON to compare into the second field.
  3. Read the tree below: added, removed and changed entries are highlighted, and unchanged ones are shown for context.

Things worth knowing

Frequently asked questions

How is this different from a normal text diff?
A text diff compares lines, so reformatting or reordering keys produces a lot of noise. This tool compares the parsed data, so only real differences in keys, values and types appear.
Can it ignore certain fields such as timestamps?
Not at the moment. Remove those fields from both inputs before comparing.

All the tools