Text List to Text
Flatten a list of strings into one block of text
This is a converter, and its whole reason to exist is a type mismatch. In ComfyUI, a list of strings and a single string are not the same thing, and plenty of nodes only accept one or the other. Text List to Text takes a list - the kind of thing WAS's Text List node or a file-loading node produces, one entry per line - and collapses it into a single flat text string. It's the glue between "I have a bunch of separate text items" and "I need one text field to hand to a prompt encoder."
You hit the need for this constantly once you start doing anything programmatic with prompts: building a prompt from several fragments, joining wildcard picks, assembling a caption from parts, or just getting list-shaped output into a node that stubbornly wants a plain string.
How it works
It walks the list and concatenates the entries into one string, typically joining them with a separator so the pieces don't run together. Conceptually it's the inverse of splitting text into lines - you're going from many items back to one blob. Whatever delimiter it joins on determines whether you end up with a comma-separated prompt, a newline-separated block, or one continuous run.
The inputs and outputs that matter
- A text list in - the list of strings you want flattened.
- A single string out - the joined result, ready to wire into a CLIPTextEncode, a Text Concatenate, or a save-text node.
Honest caveat: this node isn't spelled out in the WAS README's node list, and I don't have a schema exposing its exact fields, so I'm describing the function - list in, single string out - rather than naming a specific delimiter widget or its default. What it's for is rock solid; the exact control labels you'll read off the node on the canvas.
How to install it
Ships with the WAS Node Suite:
- ComfyUI Manager: search was-node-suite-comfyui, install, restart.
- Manually:
cd ComfyUI/custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui/, thenpip install -r requirements.txtagainst your ComfyUI Python, and restart.
Pure text plumbing - no model, no heavy dependency.
Common issues
The confusion that sends people to this node in the first place is worth naming: if a node throws a type error about getting a list when it wanted a string (or you see a red-outlined connection that won't take), that's the exact gap Text List to Text fills. Drop it in between and the mismatch clears.
The subtle one is the separator. If your joined output has words mashed together with no spaces, or has commas where you wanted line breaks, that's the delimiter doing its thing - you may need to pick a different join character (or fall back to WAS's Text Concatenate, which merges strings and lists and gives you similar control) to get the exact formatting your prompt wants. Prompt encoders are picky about whether tokens are comma-separated, so this actually affects your output, not just tidiness.
And the pack-wide note: WAS Node Suite has been retired since December 2023 - used everywhere, maintained nowhere. If a ComfyUI update makes every WAS node vanish with an "Import Failed", that's suite-level dependency drift, not this node. Re-run requirements.txt against the correct Python environment (or the bundled install.bat) and restart.
Inputs (0)
No inputs
Outputs (0)
No outputs