RealJSON
Try now

JSON Diff — Compare Two JSON Objects

Paste two JSON documents and see exactly what changed — every added, removed, and modified field highlighted instantly.

View

JSON A — original

JSON B — modified

In short: A JSON diff tool compares two JSON documents and shows you exactly what changed — which fields were added, removed, or modified, and at what path. RealJSON's diff walks both documents key by key in your browser and highlights additions in green, removals in red, and changes in amber, with summary counts for a quick overview.

JSON Diff — Instantly Compare Two JSON Documents

Comparing API responses, config files, or database snapshots by eye is error-prone and slow. RealJSON's JSON diff tool walks both documents key by key and surfaces every change — added fields in green, removed fields in red, and modified values in amber.

When You'd Use a JSON Diff

Reach for a JSON diff when you need to confirm exactly what an API response, config file, or database export looks like before and after a change — debugging why a webhook payload changed shape, reviewing what a migration script altered, checking whether a third-party API's response format shifted between versions, or verifying that a config edit only touched the fields you intended.

How the Diff Works

Deep Comparison

The diff recurses into nested objects, reporting the full dot-notation path for every difference (e.g. address.city). Top-level changes and deeply nested ones are equally visible.

Summary Badges

Above the diff output, count badges show how many fields were added, removed, and changed — useful for a quick "how big is this change?" scan before reading the details.

Ignore Array Order

When enabled, arrays are compared index-by-index regardless of element order — useful for comparing sets or tag lists where order doesn't carry meaning.

Frequently Asked Questions

How do I compare two JSON objects online?

Paste each JSON document into the diff tool. It walks both documents key by key and highlights every added field in green, removed field in red, and changed value in amber, with the full path to each difference.

Can the diff tool compare deeply nested objects?

Yes. It recurses into nested objects and arrays and reports the full dot-notation path for every difference, such as address.city, so changes at any depth are equally visible.

Does it matter if array items are in a different order?

By default, arrays are compared index-by-index. If order doesn't matter for your data — like tag lists or sets — enable "ignore array order" to compare elements regardless of position.

What do the summary badges show?

Count badges above the diff output show how many fields were added, removed, and changed, giving you a quick sense of how large the change is before reading through every line.

Is my JSON uploaded to a server when I compare it?

No. The comparison runs entirely in your browser using JavaScript — neither document is ever sent to a server, so it's safe to compare data containing API keys or other sensitive values.

Related Tools

Use the JSON Repair tool if either document has syntax errors before comparing. After diffing, the JSON Editor lets you apply changes interactively.

Browse all free JSON tools →