JSON Merge Tool

Combine a base file with overrides, such as default and local settings, and choose which side wins a conflict.

JSON Merge Tool

Data & Format Tools

Runs locally in your browser.

Runs locally in your browser — your JSON documents are merged on your device.

About the JSON Merge Tool

Merging two JSON configuration files programmatically often results in data loss if not done correctly. A standard "shallow" merge will overwrite entire nested objects instead of combining individual properties, and creates headaches when attempting to update complex configurations.

This JSON Merge Tool combines a base JSON file with an override file. The merge happens in your browser, so keys and passwords in your config files are not uploaded.

Key Features of JSON Merge Tool

  • A Dual Input ArchitectureClearly separate your primary structure (JSON A - base) from your updating data (JSON B - override)
  • Deep mergeChoose it under "Merge strategy" to combine nested objects instead of replacing them.
  • ConflictsUse "On conflict" to decide which side wins when both files have the same key (for example "B wins (override)").
  • 100% Local processingKeep your proprietary settings secure. Your JSON documents are parsed and merged on your device.
  • Instant ExportGet your combined JSON payload right away with the "Copy" button or with a direct download using the "Download" button.

How to Use JSON Merge Tool

  1. Paste your original or default JSON object into the "JSON A (base)" textarea.
  2. Paste your new or updating JSON object into the "JSON B (override)" textarea.
  3. Select your preferred combination method using the "Merge strategy" dropdown menu.
  4. Set the rule for when both files contain the same key by changing the "On conflict" dropdown menu.
  5. Hit the purple "Merge" button to actually combine the two JSON files right away.
  6. Review the resulting JSON payload, and click either "Copy" or "Download" to get your combined JSON file.

JSON Merge Tool Examples

Input
A: {"a":{"x":1,"y":2}}  B: {"a":{"y":3,"z":4}}
Deep merge:
Result
{"a":{"x":1,"y":3,"z":4}}

JSON Merge Tool — Frequently Asked Questions

What is the difference between a shallow merge and a deep merge?
A shallow merge only looks at the very first level of keys. If both objects have a key named "settings" which contain different nested data, a shallow merge will entirely replace object A's "settings" with object B's. A deep merge would recursively look inside the "settings" key and combine the nested properties of both objects without deleting unique fields.
Why are there two separate input fields?
Separating the inputs defines a clear hierarchy. "JSON A" acts like your base or default configuration, and "JSON B" acts like the specific environment overrides (like a production config updating a local default config).
Is it safe to merge sensitive configuration files here?
Absolutely; the JSON Merge Tool works entirely client-side. Your configuration files are being processed right in your browser and are never uploaded, stored, or transmitted.