Nodes/Node_Fun_ComfyUI/String to Lowercase
ComfyUI Node

String to Lowercase

String to Lowercase — the node that normalizes text so prompts behave

By nofunstudio·Created 2 years ago·Updated about a month ago· 9
String to Lowercase
    • STRING
    text

    String to Lowercase does exactly what it says: takes a string, returns it in lowercase. One input, one output, no settings, no surprises. It's the kind of node that looks too trivial to document, which is probably why its article will get zero search traffic, but it solves a real, annoying class of problem.

    Why would you ever need this? Because generative workflows are full of text from places that don't respect your formatting - file names, CSV exports, API responses, other nodes' outputs. When you're building a prompt from parts, a stray uppercase "DOG" in the middle of your carefully lowercase prompt is both ugly and, with the newer instruction models that actually read the text (the KB's coverage of Flux 2's VLM encoder and Qwen-Edit makes this painfully relevant - these models parse the literal text you feed them), semantically confusing. Normalizing to lowercase before it hits the prompt is free insurance.

    The inputs and outputs couldn't be simpler: text in, a lowercase STRING out. That's the entire schema. The implementation is a two-line text.lower() call, and the author's source comment even marks it as fixing a syntax error in an earlier version - this is a node someone wrote because the pack needed one, not because the world was crying out for it.

    Where it actually composes well: in a multi-string merge before a CLIP or VLM encoder. Combine a bunch of sources into a prompt, run the merged result through this, and downstream matching logic (like the pack's own Indexed String Selector or batch comparisons) becomes case-insensitive without you writing anything. If you're comparing two strings for equality anywhere in a workflow - filename dedup, style matching - lowercase both sides first and the comparison stops being a case-sensitive trap.

    The honest take: don't overthink it. Every utility pack ships a case-normalizer, and this one is as good as any because the category is a single method call. If you're already running Node_Fun_ComfyUI for its FAL or Replicate nodes, this is a freebie. If you're not, this is not the node that justifies the install - but the pack's install is trivial anyway: ComfyUI Manager search "Node Fun", or clone https://github.com/nofunstudio/Node_Fun_ComfyUI into custom_nodes, pip install -r requirements.txt, restart.

    No models, no API keys, no gotchas beyond the obvious one: it lowercases everything, including acronyms and proper nouns. If a prompt depends on "NASA" staying uppercase, route that part around this node. Otherwise, it's one of those small pieces that quietly removes a whole class of "why did the match fail" debugging from your workflow.

    CategoryText

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING