textConcat
Stop hand-gluing your prompt pieces together
- concat
textConcat is the tiny utility that sits between "I keep typing the same ten words into every prompt" and "I finally automated it." It takes up to three text inputs, glues them together with whatever delimiter you pick, and hands back one string you can wire straight into a CLIP Text Encode or a pipeLoader prompt box.
The use case that made me install it: you have a quality-booster phrase you never want to retype, plus a LoRA trigger block, plus the actual subject of the current image. Keep each in its own text box, concat them with a comma, and you can change one without touching the others. It's prompt-engineering-as-composable-parts, and it makes prompt variants trivial to build.
How it works
Dead simple, and that's the appeal. text1, text2, text3 are each a multiline text box (with dynamic prompts support, so __wildcard__ noodlesoup entries resolve). The single delimiter field - comma by default - is inserted between the three strings, and the result comes out the one concat STRING output.
Two small behaviors worth knowing:
- Set
delimiterto\n(backslash-n, literally) and it becomes a newline instead of a comma. Handy when concatenating multi-line blocks. - Empty boxes don't add stray delimiters - the join only puts the delimiter between entries, so an empty
text2just gives youtext1, text3.
Inputs and outputs
text1/text2/text3- the three strings. All optional in practice; leave any blank.delimiter- what goes between them.,default, or\n, or really anything.concat- the only output, a plain STRING. Feed it into the positive or negative prompt of a CLIP Text Encode, a tinyterratinyConditioningorpipeLoader, or any text-slot that accepts a wired input.
Installing it
It's part of the tinyterraNodes pack - you get it with the whole pack:
cd ComfyUI/custom_nodes
git clone https://github.com/TinyTerra/ComfyUI_tinyterraNodes.git
or search tinyterraNodes in ComfyUI Manager. No dependencies, no model downloads, just a restart.
Where people get burned
The one real trap is expecting it to be a formatter. There's no trimming, no smart spacing - the delimiter is inserted exactly as typed, so if text1 ends with a space and you also use ", " as delimiter, you get a double space in the middle of your prompt. Cosmetic, but if you're matching an exact string downstream (say, feeding it into a wildcard system or an API that's picky), it'll bite.
Also: this node only concatenates text. If you need multiple concatenation variations (1&2, 1&3, all three), the same pack's 3x TXT Loader MultiConcat does that; if you need more than three inputs, 7x TXT Loader Concat has you covered. textConcat is the version you grab when three boxes is exactly the right number and you want to know exactly what you're getting.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text1 | STRING | β | |
| text2 | STRING | β | |
| text3 | STRING | β | |
| delimiter | STRING | , | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| concat | STRING | β |