Learn how to use the SplitInBatches node in n8n to process large data sets efficiently with step‑by‑step guidance and practical examples.

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
The SplitInBatches node lets you take a big list of items coming from a previous node and process them in smaller, controlled chunks. You tell the node how many items should be in each batch, and the workflow will loop through those batches until everything is processed. You run the first pass as normal, then you connect the node back to itself (or to another node and then back), and n8n will keep re‑running that section with the next batch until the list is finished. It’s basically n8n’s way of doing a “loop” over large datasets without loading everything into one giant operation.
When a node before it outputs, for example, 3,000 items, the SplitInBatches node doesn’t output all of them at once. Instead, you configure something like “batch size = 100”. Then:
The most important thing to understand: the workflow run stays alive the whole time. It doesn’t start new runs; it re-executes the downstream part of the workflow multiple times inside the same execution.
This is the simplest working pattern:
In this pattern, the processing node will execute about 20 times, each time with 100 items.
Sometimes you need to pass the current batch items to another node. Inside an HTTP Request body you could write:
{
"batch": {{$json}} // this returns the current batch of items
}
The SplitInBatches node is a controlled loop. It doesn’t duplicate data, it just slices the original input. The workflow says: “Give me the next X items; process them; repeat until nothing is left.” Once you understand that, you can easily use it to safely process big datasets or rate‑limit your calls to external systems.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.