Compare two JSON files
Use this online JSON compare tool to view two JSON objects side-by-side, highlight differences, and export patches or reports for version control and API testing.
Step 1 – Paste or import both JSON files
Step 2 – Configure comparison options
Step 3 – Review the diff visualization
Step 4 – Export results
Quick tips for comparing JSON
// JSON A
{
"id": 1,
"name": "Maeve",
"status": "active"
}
// JSON B
{
"id": 1,
"name": "Maeve Winters",
"status": "active",
"email": "maeve@example.com"
}
// Diff Summary
- Modified: name ("Maeve" → "Maeve Winters")
- Added: email ("maeve@example.com")Combine these tools with JSON comparison for validation, formatting, and code generation workflows.
Validate both JSON files before comparing to ensure they are syntactically correct.
Format JSON first to normalize whitespace and make diffs easier to read.
Generate a JSON Schema from your JSON to validate future changes against an expected structure.
Generate TypeScript types from JSON for type-safe change tracking in code.
The tool performs a structural diff to detect additions, deletions, and modifications across nested objects and arrays.
No. Everything runs locally in your browser and is never uploaded to our servers.
You can ignore whitespace, ignore case, and ignore order to focus on meaningful structural changes rather than formatting noise.
Yes. Ignore whitespace normalizes whitespace inside string values. Whitespace outside strings is already ignored by JSON parsing.
Yes. When Ignore case is enabled, keys and string values are compared case-insensitively to reduce false positives.
Yes. Ignore order treats object keys and array elements as order-insensitive, which is useful when element order is not meaningful.
When an ignore option is enabled, the diff switches to a normalized preview so highlighting matches the ignore rules exactly. Disable the options to edit raw JSON again.
JSON Patch is a standard list of operations (add, remove, replace, etc.) used to transform one JSON document into another.
We compute a reliable set of operations from A → B using JSON Pointer paths. For arrays, we may use conservative replacements to avoid index drift issues.
Use Copy Summary to copy a quick overview, Export Report to download a Markdown report, or Export JSON Patch to apply changes programmatically.