Combine multiple JSON documents or arrays into a single consolidated file
Combine multiple JSON documents or arrays into a single consolidated JSON file.
Interactive Sample Data
| id | source_file | name | |
|---|---|---|---|
| 101 | part1.json | Grace Kerubo | grace@corp.com |
| 102 | part1.json | Peter Njoroge | peter@corp.com |
| 201 | part2.json | Mercy Akinyi | mercy@corp.com |
How this tool works
Things that usually go wrong
- Append mode includes duplicate objects if they exist in multiple files.
- Join mode requires a common key field in all files — missing keys produce incomplete merged objects.
Edge cases we tested
Wrapped into a unified array structure without syntax errors.
Optional deduplication toggle drops duplicate IDs during concatenation.
Sub-objects merged recursively; scalar values resolved via chosen priority rule.
Frequently Asked Questions
How many files can I merge?
Up to 10 files.
Can I merge arrays from different APIs?
Yes — as long as each file contains a JSON array at the root.
Can I merge a JSON file with a CSV file?
Not directly. Convert the CSV to JSON first using the CSV to JSON tool, then merge the resulting JSON arrays.
What if one file has extra keys that the other doesn't have?
In append mode, all keys from all files are included in the merged array. Objects missing a key have that key set to null in the output.
Related tools
Transpose CSV
Flip a CSV matrix by turning rows into columns and columns into rows.
Open Tool →Pivot a CSV
Summarise long-format CSV data into pivot tables grouped by row and column keys.
Open Tool →Group By and Count
Aggregate CSV rows by one or more group-by columns with count, sum, mean, min, or max.
Open Tool →