- Home
- Resources
- Integrations
- Recursive Character Text Splitter
n8n Recursive Character Text Splitter nodeConfigure Recursive Character Text Splitter in n8n.
Chunking decides how good your retrieval gets. The n8n Recursive Character Text Splitter node splits text recursively, keeping paragraphs together, then sentences, then words, as long as the chunk size allows. Three fields to set, one output port to plug, and it never runs on its own.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Recursive Character Text Splitter node do?
It cuts the text a loader hands it into chunks of the size you pick, and it cuts where the text already breaks. Paragraphs stay whole while they fit, then sentences, then words. A chunk only breaks mid-word when nothing else works, which is why this splitter is the one n8n recommends for most use cases.
Start with a knowledge base. A Default Data Loader reads the documents your workflow collected, this splitter cuts each one, and the chunks are embedded and stored so that an AI Agent can answer questions over them later. The quality of those answers rides almost entirely on Chunk Size and Chunk Overlap: a chunk that stops in the middle of a definition retrieves badly, no matter how good the model behind it.
Second case, a long report nobody reads. A Summarization Chain cannot swallow a hundred pages in one call, so it works through the text piece by piece. The splitter is what produces those pieces, and Chunk Overlap is what keeps a sentence that straddles two of them from being amputated. The model behind the chain comes from a provider like OpenAI or Anthropic, and it is that provider, not the splitter, that bills the calls.
Third case, a watch pipeline. Articles arrive, get split, get stored, and a daily digest goes out through Gmail. Here the interesting field is Options: on technical content written in Markdown, Split Code makes the node cut on headings and code fences instead of guessing where a paragraph ends.
When is another approach better? A splitter that cuts every N characters flat is easier to reason about, because every chunk has exactly the same length, but it slices sentences without looking. Recursive splitting gives up that regularity to keep meaning together, and that trade is the right one often enough that n8n recommends it by default. The other alternative is no splitter at all: if each item already holds one short record, a row from Google Sheets or a single support ticket, cutting it adds nothing.
Limits, before you wire it. The node counts characters, not tokens, so a chunk size that fits one model's context window can overflow another's. It exposes three fields and a single option at version 1, nothing about metadata, headers or sentence counts. And it is a sub-node: without a root node in front of it, activating the workflow changes nothing at all.
What do you plug this splitter into?
n8n splits AI workflows in two, a root node that runs on the workflow items and sub-nodes wired to its ports; this one is a sub-node, so it only does something once a root node calls it.
Output (what it plugs into)
- Text Splitter
ai_textSplitter
01Text Splitter
The node has no main input and a single port, Text Splitter. You drag from it to a root node that accepts a splitter, and that root node decides when to call it and what text to hand over.
Key parameters
- Optional: a root node takes one splitter on this port, and this one is a candidate for it rather than an obligation.
- Default Data Loader: turns the documents of an item into text, then passes each document through the splitter before anything is embedded.
- Summarization Chain: needs long text cut before it can summarize it in several passes.
Which fields does the node expose?
The Recursive Character Text Splitter node has 3 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Chunk Size
chunkSizeWhat you see in n8n
Notes & use cases
This field sets how many characters land in one chunk. It is the ceiling, not the exact length: the splitter fills a chunk up to that number, then backs up to the closest natural break below it.
Key parameters
- Chunk Size: a count of characters, not of words or tokens, so budget for the difference when you size it against a model's context window.
Chunk Overlap
chunkOverlapWhat you see in n8n
Notes & use cases
Overlap repeats the tail of a chunk at the head of the next one. Without it, a sentence sitting on a boundary is cut in two and neither half carries the whole statement, which is how a search misses a passage that is actually in the document.
Key parameters
- Chunk Overlap: a count of characters copied from the previous chunk; keep it well below Chunk Size, since the repeated text eats into the same budget.
Options
optionsWhat you see in n8n
Notes & use cases
Options is an empty collection until you add something to it. It carries the one setting that changes where the node looks for its break points, and leaving it closed keeps the plain prose behavior.
Key parameters
- Options: the collection itself, opened from Add Option; nothing inside it is filled in for you.
- Split Code: pick a language such as
python,markdown,htmlorjava, and the node cuts along that syntax instead of paragraphs.
Need help automating Recursive Character Text Splitter with n8n?
A person reads every message.
Questions people ask before wiring it
01Is the n8n Recursive Character Text Splitter node free to use?
02What do you need to set up before it works?
03What are the limits of this node?
04What is the minimum to plug in, and which sub-node should you start with?
05n8n or Make for a chunking workflow like this?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
