Processed locally

JSON Diff Online

Compare two JSON documents semantically, review added, removed, changed, and type-changed values, then export JSON Patch or regression context.

What this tool does

This online JSON diff checker compares parsed values rather than raw lines. Use it to diff JSON objects or files, detect additions, removals, value changes, and type changes across nested objects and arrays, then review the result as a navigable semantic diff.

How to use

Follow the core workflow below. Use “Show in tool” to locate the real control in the live tool above.

  1. Add the two JSON versions

    Put the original document in Before JSON and the version you want to compare in After JSON. You can paste content or use the existing load actions.

    Before JSONAfter JSON
  2. Run the semantic comparison

    Use Compare after both inputs contain valid JSON. Fix any parse message shown below an editor before relying on the diff.

    Compare
  3. Read the changes by path

    Use Diff Result to review Added, Removed, Changed, and Type changed values. Filter the result or use Search path when the diff is large.

    Diff ResultAddedRemovedChangedSearch path
  4. Export only what you need

    Optional

    Use JSON Patch, the report/summary actions, or Agent Regression Context when you need to move the comparison into another development step.

    JSON PatchCopy summaryCopy Agent Context
Success

You can now see the structural JSON changes and the paths where values were added, removed, changed, or changed type.

Examples

Compare two API responses

Spot added fields, removed fields, changed types, and nested value differences between releases.

Prepare a regression report

Generate JSON Patch and an agent-friendly summary that identifies potentially breaking changes by path.

Common errors

  • Trailing commas, comments, or unquoted keys make an input invalid JSON.
  • Array ordering can create noisy differences when the source treats arrays as unordered sets.
  • A number and a numeric string are different JSON types even when they look similar.

AI workflow

Copy the generated regression context with the changed paths and before/after values. It gives a coding agent a compact description of what changed without exposing unrelated payload data.

Frequently asked questions about JSON Diff