JSON Merge — Deep Merge Two JSON Objects Online, Free
Deep merge two JSON objects — base + override. Nested objects are recursively merged. Perfect for config files and API responses. 100% local.
Last updated:
CommentsDeep-merge two JSON objects. Paste base + override, get recursed result.
{
"name": "Alice",
"age": 31,
"address": {
"city": "NYC",
"zip": "10001"
},
"email": "alice@x.com"
}What is JSON Merge?
Deep merging combines two JSON objects by recursing into nested structures. Primitives and arrays are replaced by the override.
How to merge JSON
- 1Paste JSON A (base) and JSON B (override).
- 2The merged result updates live.
Frequently Asked Questions
Shallow vs deep merge?
Shallow merge only replaces top-level keys. Deep merge recursively merges nested objects. A deep merge of {address:{city:'NYC'}} and {address:{zip:'10001'}} produces {address:{city:'NYC',zip:'10001'}}.
Try Next
JSON Formatter
Format, beautify, and validate JSON online. Free, fast, and 100% local — your data never leaves your browser.
Related Tools
JSON Validator
Validate JSON online with instant error location and structure statistics (depth, keys, node types). 100% local — your JSON never leaves the browser.
JSON Schema Validator
Validate a JSON payload against a JSON Schema online. Supports Draft 2020-12, format validation (date-time, uuid, email, uri), and shows errors by JSON pointer path. 100% local — nothing is uploaded.
JSON Schema Generator
Generate a JSON Schema from a sample JSON — output as standard Draft 2020-12, OpenAI function calling schema, or Anthropic tool_use schema. Powers LLM structured output pipelines.
JSONPath Tester
Test JSONPath expressions against sample JSON online. Get instant, highlighted results for queries like $.store.book[*].author.
JSON Diff
Compare two JSON documents structurally and see added, removed, and changed values by path. Handles nested objects, arrays, and type changes.
JSON Escape
Escape strings for use inside JSON, or unescape JSON string literals back to plain text. Handles quotes, newlines, tabs, and Unicode.