Nodes/Endless ️🌊✨ Nodes/β™ΎοΈπŸŒŠβœ¨ String to X
ComfyUI Node

β™ΎοΈπŸŒŠβœ¨ String to X

One String In, Every Number Type Out

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 69
β™ΎοΈπŸŒŠβœ¨ String to X
    • INT
    • FLOAT
    • NUMBER
    β—„StringValueβ–Ί

    β™ΎοΈπŸŒŠβœ¨ String to X is the pack's "why pick one" answer to string conversion: you feed it a single piece of text and it hands back an INT, a FLOAT, and a NUMBER all at once, from three separate outputs. If you've ever sat there wondering whether the thing you're about to wire needs an integer or a float, this node removes the question. You just grab whichever socket matches.

    How it works

    A single parse in, three typed views out. The StringValue input is interpreted as a number, and the node exposes the result in all three flavors ComfyUI's type system actually uses - INT (whole number), FLOAT (with decimals), and NUMBER (the general numeric type many utilities accept). Since ComfyUI checks types when you drag a wire onto a socket, having all three means you never hit the "expected INT, got NUMBER" wall that trips people up with single-output converters.

    The catch is the same one that applies to every string converter: garbage in, parse error out. "3.5" works great. "3.5 apples" does not, and an empty default value will error the moment you hit queue. It's a bare Python numeric parse under the hood, so there's no leniency - keep your text clean or guard it upstream.

    Inputs and outputs

    • StringValue (STRING) - the text to convert.
    • INT, FLOAT, NUMBER outputs - three views of the same parsed value. INT for steps/dimensions/seeds, FLOAT or NUMBER for CFG, denoise, and strengths.

    The minor downside of the "three outputs" design: in some frontend versions you'll see the node render all three sockets even when you only use one, and it can look cluttered next to a lean single-output converter. Cosmetic, not functional.

    Caveat: legacy node, missing from current installs

    Fair warning before you build around it: this one is a survivor of the pack's 2023-era node set. Endless-Nodes was rewritten in June 2025 ("blew everything up and removed all the old nodes"), and the converter module this class lived in no longer ships in the repo - comfy.icu still lists the page, but on a fresh install of the current version you may not find String to X under the Endless 🌊✨ menu. If an old workflow references it and ComfyUI reports it missing, that's why. The genuinely maintained replacements are the string-to-number converters in the big utility packs (WAS Suite, Efficiency Nodes, and friends), which you'll likely have installed anyway.

    Installing the pack

    ComfyUI Manager (search Endless Nodes) or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tusharbhutt/Endless-Nodes
    

    Restart ComfyUI. Single-author hobby pack, GPL v3, author openly says nodes "may or may not work for you." Fine for a convenience utility like this - just don't depend on it for anything you can't afford to rewire.

    CategoryEndless 🌊✨/Converters/String

    Inputs (1)

    NameTypeDefaultDescription
    StringValueSTRINGβ€”

    Outputs (3)

    NameTypeDescription
    INTINTβ€”
    FLOATFLOATβ€”
    NUMBERNUMBERβ€”