文本拼接🐠meeeyo.com
Join up to four strings in any order you like — not just 1+2+3+4
- STRING
If you've ever wanted to paste two or three prompt fragments together with a comma, you know ComfyUI makes you either type the whole thing or chain two nodes. TextConcatenator is the friendly join node: up to four text inputs, a separator, and - the part that makes it better than a dumb joiner - a combine_order field that lets you arrange them as 2+1+3+4 instead of always first-in-first-out.
The Chinese display name is 文本拼接 ("text splicing"). It's part of ComfyUI_StringOps, and yes, there's a naming landmine: this node is TextConcatenator, and the pack also ships TextConcatenation, which is the fancier rules-based template engine. If you just want to glue a few strings together, this is the one; if you want [1]-style templates and five outputs, that's the other one.
How it works
All inputs are optional, so it's happy with two wired strings or four typed ones:
- text1 … text4 - the pieces. Single-line fields, defaults empty.
- combine_order - how to assemble them, written as
1+2+3+4. Leave it empty and it defaults to1+2+3+4; set2+1to swap; set3alone to emit just the third field. - separator - what goes between pieces, default
,. Type\nfor a newline.
Two behaviors matter. Empty texts are skipped - text1 = "a", text2 = "", text3 = "b" with separator , gives a,b, not a,,b. And if combine_order references something invalid (like 5), it returns an Error: ... string instead of joining - so keep orders to 1–4.
Output is a single STRING.
Where you'd use it
The obvious case: assemble a prompt from a base style, a subject, and a quality suffix without retyping. The order field earns its keep when you want the same three fragments in a different sequence for a positive vs. negative prompt - one node, two orders, or one order feeding two consumers. It's also the natural endpoint after SimpleTextReplacer cleans up your fragments, and the \n separator lets you build a multiline list for TextToList.
The traps
The pieces are single-line only - no multiline boxes here, so long prompts get cramped. And remember combine_order uses + as the separator between field numbers, so don't type 1,2,3. The empty-skip behavior is usually a blessing, but it means you can't deliberately insert a blank field to force an extra separator.
Installing it
Pack standard: ComfyUI Manager → ComfyUI_StringOps, or
cd ComfyUI/custom_nodes
git clone https://github.com/MeeeyoAI/ComfyUI_StringOps.git
Restart. Pure Python - no extra dependencies.
The honest take
It's the friendly, low-surprise joiner - the one you'll actually keep on the canvas because it's faster than typing a concatenated prompt and safer than chaining nodes. Not fancy, but "text1, text2, text3, in the order I said" is 90% of what anyone needs from a join node. Just don't confuse it with its template-engine namesake.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| text1opt | STRING | — | |
| text2opt | STRING | — | |
| text3opt | STRING | — | |
| text4opt | STRING | — | |
| combine_orderopt | STRING | — | |
| separatoropt | STRING | , | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |