String to Float List
Type a bunch of numbers, get a float list
- FLOAT
You've got a sequence of numbers you want to drive something with - per-frame strengths, a schedule, a set of weights - and the "clean" way to do it in ComfyUI is a horrifying fan of float nodes wired into a combine. StringToFloatList is the shortcut: type the numbers as text, get a float list out. That's the whole node, and it's honestly great.
It lives in Kijai's KJNodes, which if you've spent any time in ComfyUI you already have installed - it's one of those "at this point pretty random collection of utility and QoL nodes" packs (the author's own description) that quietly ends up as a dependency of half the workflows you download. This particular node is about as humble as they come, but it saves real time.
How it works
You give it a comma-separated string like 0.2, 0.4, 0.6, 0.8 and it parses each entry into a float, handing them downstream as a sequence. ComfyUI's list mechanism does the rest - whatever you wire the output into gets fed the values one after another. It's a parser, nothing more. No math, no interpolation, no magic.
The inputs and outputs that matter
There's exactly one input worth talking about:
string(multiline, defaults to1, 2, 3) - your numbers, comma-separated. Use a period for decimals (0.5, not0,5), because the comma is the separator.
The single output is FLOAT - the parsed numbers. Wire it into anything that takes a float or a float sequence: an IPAdapter weight schedule, a batch value input, a node that expects a list of strengths per frame. If a downstream node only wants a single float it'll take the first (or iterate, depending on the node), so this shines most where the consumer actually expects a series.
How to install it
Easiest path is ComfyUI Manager: open it, search KJNodes for ComfyUI, install, restart. If you'd rather do it by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/kijai/ComfyUI-KJNodes
pip install -r ComfyUI-KJNodes/requirements.txt
then restart ComfyUI. On the Windows portable build the pip line becomes python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-KJNodes\requirements.txt. The pack keeps dependencies minimal on purpose, and this node in particular needs nothing extra - it's pure Python string parsing.
Common issues & troubleshooting
It errors on your string. Everything between the commas has to parse as a number. A stray letter, a trailing comma with nothing after it, or a blank entry (1, , 3) will throw. Clean the string up - no units, no labels, just numbers and commas.
Decimals came out wrong. This is the classic one. If you're used to a locale that writes 0,5 for a half, that won't work here - the comma splits 0 and 5 into two separate values. Always use a period for the decimal point.
Downstream only used the first number. That's not this node's fault - it emitted the whole list. The node you fed it into only consumes a single float. Check that the consumer actually expects a sequence (a per-frame schedule, a batch input) rather than one value.
That's genuinely it. It's a two-minute node that removes a five-minute chore, which is exactly the kind of thing KJNodes is full of.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | 1, 2, 3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |