JSON Deep Merge

Merge JSON documents deeply, with no surprises about arrays. Paste or drop two or more JSON files — a base config and its overrides, say — choose how arrays and nulls behave, and get the merged result plus a list of every value the later inputs changed.

Array modes for [1,2] + [2,3]

ModeResult
Replace[2,3]
Concatenate[1,2,2,3]
Unique[1,2,3]
By index[2,3]

When to use it

  1. Combine a base config with environment overrides.
  2. Merge translation or locale files.
  3. Layer package or tsconfig settings.
  4. Check what an override file actually changes.

How to Use

  1. Paste or drop JSON inputs in order.
  2. Choose array and null rules.
  3. Copy or download the merged JSON.

Features

  1. Any number of inputs
  2. Four array strategies
  3. Null handling
  4. Changed-path list
  5. Type-conflict flags
  6. No upload

FAQs

How are arrays merged?

Your choice: replace, concatenate, concatenate without duplicates, or merge item by item.

What happens with null?

It can set null, delete the key, or be ignored.

Can I merge more than two files?

Yes. They're applied in order; later inputs win.

How do I see what changed?

Overridden paths are listed under the result, with type changes flagged.

Is my JSON uploaded?

No.

Technical Details

Inputs are merged left to right. Objects merge key by key, recursively, and for any other pair of values the later one wins. Arrays follow the mode you choose: replace (later wins), concatenate, concatenate without duplicates, or merge by index. Duplicates are detected by deep equality, using a canonical string with sorted keys. By-index mode combines objects at the same position. A null in a later input can set the value to null, delete the key, or be ignored, which reproduces the common config-overlay conventions. Every path a later input changed is listed. Paths where the type changed, such as a number replaced by an object, are flagged, since they are often mistakes.

Data & CSV Tools

Data & CSV Tools

  • JSON Lines \u21c4 CSV
  • SQL INSERT to CSV
  • JSON Normalizer
  • CSV \u21c4 YAML
  • XSD Viewer
  • CSV Column Extractor
  • CSV Delimiter Converter
  • CSV to SQL INSERT