Prompt Splitter (5 Lines)
Five prompts in one box — the middle child that's the right size
- line_1
- line_2
- line_3
- line_4
- line_5
The size that most workflows actually need
Five is the underrated number in this pack. The 3-line variant covers pos/neg plus a spare. The 10-line one covers a lot more than you'll usually fill. But five matches the shape of a real workflow: a positive, a negative, and three more strings doing actual work - variation branches for an A/B/C comparison, two img2img passes with their own prompts, or per-LoRA prompt variants so you can render the same scene through different stacks in a single run.
The payoff is the same for every node in this pack: one editable text box instead of five floating text widgets. When you're iterating on a prompt, hunting across the canvas for each text field is friction; having all five lines in one node is not. It's the same spirit as the graph-organization utilities like rgthree that the ecosystem installs second - nothing generates, everything just keeps the workflow workable.
What it is
A text-only node from elgalardi/comfyui-prompt-splitter: one multiline input, five STRING outputs. No CLIP input required - unlike a lot of "prompt" nodes, this one never touches a model. The pack is a single dependency-free Python file with no model downloads, so installing it is about as safe as custom nodes get, which is genuinely saying something in an ecosystem where installs run arbitrary code by design.
The inputs and outputs that matter
text- multiline STRING. Five lines, five prompts.line_1throughline_5- five STRING outputs.
Each output plugs into a CLIP Text Encode node's text input, or any other string port you have lying around. Because they're plain strings, they behave identically across SD, SDXL, WanVideo and AnimateDiff-style workflows - the splitter doesn't care what's downstream, and neither should you.
Install
No dependencies, no models, no install scripts:
cd ComfyUI/custom_nodes
git clone https://github.com/elgalardi/comfyui-prompt-splitter
Restart and you'll find it under the Text category. ComfyUI Manager works too - search "comfyui-prompt-splitter".
Gotchas
Same split logic as the rest of the pack, so two things to know:
- Empty lines vanish. Lines are stripped and blank ones skipped, so
"a\n\nb"becomes line_1, line_2 - not an empty line 2. Want a slot to stay visibly empty? Drop a placeholder character in it. - Sixth line? Gone. The node holds exactly five; anything past that is silently dropped. If there's any chance you'll exceed five, use the 10-line variant. A
""output is harmless; a silently missing prompt is not.
Also worth knowing: no line here is special. There's no formatting, no weighting, no wildcard expansion - it's the same passive text-split behavior on every line. That's the point, and it's also the ceiling. If you need dynamic prompts, this isn't the tool; it's the tool that keeps your static prompts tidy so the rest of your workflow can be as complicated as it wants to be.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| line_1 | STRING | — |
| line_2 | STRING | — |
| line_3 | STRING | — |
| line_4 | STRING | — |
| line_5 | STRING | — |