Merge
Use the Merge node to combine data from multiple streams once data from all streams is available.
Node parameters
You can specify how the Merge node combines data from different data streams by selecting a Mode:
Append
Retains data from all inputs. Choose a Number of Inputs to output items from each input sequentially. The node waits for all connected inputs to complete execution.

Append mode inputs and output
Combine
Merges data from two inputs. Select an option in Combine By to determine the merge strategy.
Matching Fields
Compares items by field values. Enter the fields to compare in Fields to Match.
The default behavior retains matching items. You can modify this using the Output Type setting:
- Keep Matches: Merges items that match. This performs an inner join.
- Keep Non-Matches: Merges items that don't match.
- Keep Everything: Merges matching items and includes non-matching items. This performs an outer join.
- Enrich Input 1: Retains all data from Input 1 and adds matching data from Input 2. This performs a left join.
- Enrich Input 2: Retains all data from Input 2 and adds matching data from Input 1. This performs a right join.

Combine by Matching Fields mode inputs and output
Position
Combines items based on their index position. The item at index 0 in Input 1 merges with the item at index 0 in Input 2, and so on.

Combine by Position mode inputs and output
All Possible Combinations
Outputs all possible item combinations while merging fields with identical names.

Combine by All Possible Combinations mode inputs and output
Combine mode options
When merging data using Mode > Combine, you can configure these Options:
- Clash Handling: Specifies how to merge when data streams conflict or contain sub-fields. See Clash handling for details.
- Fuzzy Compare: Enables type tolerance when comparing fields (enabled) or requires exact type matching (disabled, default). For example, when enabled, the node treats
"3"and3as equivalent. - Disable Dot Notation: Prevents accessing child fields using
parent.childnotation in field names. - Multiple Matches: Determines how the node handles multiple matches when comparing data streams.
- Include All Matches: Outputs multiple items for multiple matches, one per match.
- Include First Match Only: Retains only the first matching item and discards subsequent matches.
- Include Any Unpaired Items: Determines whether to retain or discard unpaired items when merging by position. By default, items without matches are excluded.
Choose Branch
Selects which input to retain. This option always waits until data from both inputs is available. You can choose to Output:
- Input 1 Data
- Input 2 Data
- A Single, Empty Item
The node outputs data from the selected input without modification.
Merging data streams with uneven numbers of items
Items passed to Input 1 of the Merge node take precedence. For example, if the Merge node receives five items in Input 1 and ten items in Input 2, it processes only five items. The remaining five items from Input 2 are not processed.
Try it out: A step-by-step example
Create a workflow with sample input data to explore the Merge node functionality.
Set up sample data using Code nodes
- Add a Code node to the canvas and connect it to the Start node.
- Paste the following JavaScript code snippet in the JavaScript Code field:
javascript
return [
{
json: {
name: "Stefan",
language: "de",
},
},
{
json: {
name: "Jim",
language: "en",
},
},
{
json: {
name: "Hans",
language: "de",
},
},
];
- Add a second Code node and connect it to the Start node.
- Paste the following JavaScript code snippet in the JavaScript Code field:
javascript
return [
{
json: {
greeting: "Hello",
language: "en",
},
},
{
json: {
greeting: "Hallo",
language: "de",
},
},
];
Try different merge modes
Add the Merge node. Connect the first Code node to Input 1 and the second Code node to Input 2. Run the workflow to load data into the Merge node.
Append
Select Mode > Append, then select Execute step.
Your output in table view should appear as follows:
| name | language | greeting |
|---|---|---|
| Stefan | de | |
| Jim | en | |
| Hans | de | |
| en | Hello | |
| de | Hallo |
Combine by Matching Fields
You can merge these two data inputs to assign the correct greeting to each person based on their language.
- Select Mode > Combine.
- Select Combine by > Matching Fields.
- Enter
languagein both Input 1 Field and Input 2 Field. This instructs the node to combine data by matching values in thelanguagefield from each dataset. - Select Execute step.
Your output in table view should appear as follows:
| name | language | greeting |
|---|---|---|
| Stefan | de | Hallo |
| Jim | en | Hello |
| Hans | de | Hallo |
Combine by Position
Select Mode > Combine, Combine by > Position, then select Execute step.
Your output in table view should appear as follows:
| name | language | greeting |
|---|---|---|
| Stefan | en | Hello |
| Jim | de | Hallo |
Keep unpaired items
To retain all items, select Add Option > Include Any Unpaired Items, then enable Include Any Unpaired Items.
Your output in table view should appear as follows:
| name | language | greeting |
|---|---|---|
| Stefan | en | Hello |
| Jim | de | Hallo |
| Hans | de |
Combine by All Possible Combinations
Select Mode > Combine, Combine by > All Possible Combinations, then select Execute step.
Your output in table view should appear as follows:
| name | language | greeting |
|---|---|---|
| Stefan | en | Hello |
| Stefan | de | Hallo |
| Jim | en | Hello |
| Jim | de | Hallo |
| Hans | en | Hello |
| Hans | de | Hallo |