Nodes/RedNode Studio/RedNode Channel Convert
ComfyUI Node

RedNode Channel Convert

The type converter you didn't know you needed, for when a string must become a number

By RedNodeAI·Created 2 months ago·Updated 2 days ago· 4
RedNode Channel Convert
  • value
  • value
toSTRING

ComfyUI is loosely typed until it isn't. You've got a * wildcard input that'll happily accept anything, and a node that absolutely insists on an INT - and what's sitting in your channel is a string. RedNode Channel Convert is the in-between: it turns a value into string, int, float, or boolean, depending on the to dropdown. Nothing more, nothing less.

Its main job is invisible. The pack's Sender/Grabber named channels let you pass values across a subgraph without dragging wires all over the canvas, and when a channel row needs a conversion the pack drops one of these in automatically - which is why the author calls it "placed automatically when a channel row asks for it." You get a working graph without manually splicing converters everywhere. But it's an ordinary node, so you can also use it by hand anywhere a value's type is fighting you.

The input is the * wildcard type, so it accepts whatever you throw at it. The output is the converted value, typed * to match. Three behaviors are worth knowing because they're where conversion bugs hide:

  • Boolean from string treats "", "false", "0" and "no" (case-insensitive, trimmed) as False. This is the classic trap - bool("false") in Python is True because any non-empty string is truthy - and this node deliberately sidesteps it. Good catch by the author.
  • Int from float rounds rather than truncates. "1.9" becomes 2, which is usually what you meant anyway.
  • Impossible conversions refuse loudly. Turn an image into an int? No. It raises a plain-English error instead of handing on garbage downstream, which is the correct failure mode - a wrong-typed value silently propagating is how workflows rot.

Where would you actually use this standalone? The classic case is a string coming out of a prompt tool, a selector, or an API-style node that needs to feed a numeric widget on a sampler. Convert the widget to input, drop the converter in front of it, done. If you're deep in the Sender/Grabber world, you'll mostly see this node appear on its own accord and can just let it be.

Installation is the whole pack, which is the one-liner that covers everything in RedNode Studio:

cd ComfyUI/custom_nodes
git clone https://github.com/RedNodeAI/ComfyUI-RedNodeStudio.git

or search RedNode Studio in ComfyUI Manager, then restart. No pip dependencies, and unlike the Krea 2 half of the pack this node works with any model on any recent ComfyUI - it's pure plumbing, and plumbing doesn't care what you're generating.

CategoryRedNode/Channels

Inputs (2)

NameTypeDefaultDescription
value*
toCOMBOSTRING4 options: STRING, INT, FLOAT, BOOLEAN

Outputs (1)

NameTypeDescription
value*