n8n Merge nodeConfigure Merge in n8n.
The n8n Merge node is where two branches of a workflow become one again. It waits until every connected input has run, then joins the items with a single parameter, Mode, and its 4 options. Version 3 handles 2 to 10 inputs, matching fields, a SQL query, or one branch kept exactly as it arrived.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Merge node actually do?
Merge brings several branches of the same workflow back into one stream. It sits after a split, after two lookups, or after two paths that did different work, waits until every input it is wired to has finished, and sends out one list of items. An item is one record travelling through the workflow, and a branch is one of the paths that record can take. Nothing to install, nothing to authenticate: the node ships with n8n.
The first scenario is the one most people arrive with. A workflow reads customers from one source and orders from Google Sheets, and the two lists need to become one. Mode set to combine, Combine By set to Matching Fields, and the field names typed into Fields to Match tell n8n which values have to be equal on both sides. Output Type then decides who survives: Keep Matches for the intersection, Enrich Input 1 when the customer list has to stay complete even where no order was found.
The second scenario is simple stacking. Two paths each produce alerts, one from a form and one from a monitoring call, and both should end up in the same Slack message or the same Gmail draft. Mode set to append outputs the items of input 1, then those of input 2, in that order. Number of Inputs raises the node to as many as 10 connection points, so three or four paths converge on one node instead of a chain of them.
The third scenario is for people who already think in tables. Mode set to combineBySql turns the inputs into tables named input1, input2 and so on, and Query holds the statement. A left join written by hand does what a chain of nodes would take five steps to express, and Query Parameters keeps values out of the query text.
When another node is the better answer: a straight API call that no dedicated node covers belongs in HTTP Request, not here, and reshaping a single stream is a job for the Code node. Merge only earns its place when two or more streams have to wait for each other. On an older n8n, the Code node is also the fallback, since SQL Query and more than two inputs arrived in 1.49.0.
The limits are worth knowing before the first run. Items passed into Input 1 take precedence: five items on input 1 against ten on input 2 means five items processed and the rest dropped. Fuzzy Compare is off by default, so the text "3" and the number 3 are not the same value until it is turned on. And Merge never starts a workflow on its own, a trigger always runs before it. The n8n review goes into where that model helps and where it gets in the way.
Which parameter controls the Merge node?
The Merge node has one parameter. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Mode
modeWhat you see in n8n
Notes & use cases
Mode is the node's only top-level parameter.
Key parameters
- Mode:
appendstacks items,combinemerges matches,combineBySqlruns a query,chooseBranchpasses a branch untouched. - Number of Inputs: 2 to 10 connection points.
- Combine By: Matching Fields, Position or All Possible Combinations.
- Fields to Match: typed as
id, name, plus Fields To Match Have Different Names if labels differ. - Output Type: Keep Matches, Keep Non-Matches, Keep Everything, Enrich Input 1, Enrich Input 2.
- Query: required on SQL Query; inputs become tables
input1,input2. - Output and Use Data of Input: Choose Branch sends one input, or an empty item.
Need help automating Merge with n8n?
A person reads every message.
Questions people ask about Merge
01Is the n8n Merge node free on n8n Cloud and self-hosted?
02What credentials does the Merge node need?
03What are the limits of the Merge node?
04When should you use Merge instead of the Code node?
05n8n or Make for merging two data streams?
Get our weekly integration tips.
No spam. Unsubscribe anytime.

