Nodes/ComfyUI-FEnodes/Text List → Batch
ComfyUI Node

Text List → Batch

Make Your List of Prompts Behave Like a Batch

By FugitiveExpert01·Created 6 months ago·Updated 11 days ago· 6
Text List → Batch
  • text_list
  • text_batch
delimiter

ComfyUI's text types are fussy, and the fussiness is the whole reason this node exists. Some nodes output a LIST of strings (rgthree-style loaders, list-handling utilities, anything that hands you a Python list). Other nodes only accept batched STRING inputs - a list-type connection that most samplers and batch processors expect. Text List → Batch is the two-line adapter: take a text LIST, hand back a text_batch.

If you've ever built a workflow where a node that produces a list of prompts won't connect to a node that consumes a batch of prompts, you know exactly what problem this solves. It's the plumbing between two conventions that ComfyUI refuses to treat as the same thing.

How it works

There's a delimiter input, and it changes the behaviour meaningfully. With the default empty delimiter, each item in the list becomes its own element in the output batch - a 1:1 conversion, preserving order. Set a delimiter (say ", " or a newline) and the node instead joins all the strings into a single string and emits that as a one-item batch. That's handy when the downstream node expects one blob rather than N slots.

One resilience detail in the source: if you feed it something that isn't actually a list (a plain string, say, because a node upstream handed you the wrong type), it wraps it in a one-element list instead of crashing. Cheap insurance in a graph full of type surprises.

The inputs and output

  • text_list (required) - the LIST of strings.
  • delimiter (optional, default empty) - join string; empty means "keep as separate items."
  • text_batch (output) - batched STRING (a list-type output), one element per list item, or a single joined element when a delimiter is set.

Use it wherever a node demands a batch of prompts but only a list is available, or where you want to collapse a list into one text string in a single step.

Installing it

Part of the FEnodes pack, installed like the rest:

cd ComfyUI/custom_nodes
git clone https://github.com/FugitiveExpert01/ComfyUI-FEnodes.git

Restart ComfyUI and it's under FEnodes (ComfyUI Manager finds the pack by searching "ComfyUI-FEnodes"). No extra dependencies.

Common issues

  • Wire won't connect to a LIST-expecting node. You went the wrong direction - use "Text Batch → List" instead. This node converts from list to batch.
  • Joining wasn't meant to join. If your prompts came back as one giant string, check the delimiter - an accidental value in that box collapses everything into one item. Empty is the "keep separate" mode.
  • Items arriving out of order. They won't; conversion is strictly 1:1. If order looks scrambled downstream, the list itself was already unordered before this node.
CategoryFEnodes

Inputs (2)

NameTypeDefaultDescription
text_listLIST
delimiteroptSTRING

Outputs (1)

NameTypeDescription
text_batchSTRING