Extensions/ComfyUI Utilitools Nodes
ComfyUI Extension

ComfyUI Utilitools Nodes

A collection of utility nodes for ComfyUI to improve workflow efficiency.

By aesethtics·Created 12 months ago·Updated 12 months ago· 1
aesethtics/ComfyUI-Utilitools
Nodes26
On cloudLocal install
CategoryUtilitools/Math, Utilitools/Image
Stars1
Updated12 months ago

Nodes (26)

Add

Add — four inputs of mixed types, one sum, zero drama

Utilitools/Math
Aspect Ratio

9' without a calculator

Utilitools/Image
Batch Controller

Batch Controller — force any tensor to exactly the batch size you want

Utilitools/Data
Boolean AND

Boolean AND — the gate that only passes when both inputs agree

Utilitools/Logic
Boolean NOT

Boolean NOT — flip any condition, the one-input inverter

Utilitools/Logic
Boolean OR

Boolean OR — true if any input is true, the gate that opens wide

Utilitools/Logic
Calculator

Calculator — do real math in your graph without a string of glue nodes

Utilitools/Math
Constant Float

Constant Float — one number, many wires, one place to change it

Utilitools/Constants
Constant Int

Constant Int — a named number that's actually readable in your graph

Utilitools/Constants
Constant String

Constant String — a shared text value you can edit in one place

Utilitools/Constants
Counter

Counter — count every run, and reset it when you actually mean it

Utilitools/Workflow
Date Timestamp

Date Timestamp — stop overwriting your own outputs

Utilitools/Workflow
Divide

Divide — one box for division, with a zero-division guard built in

Utilitools/Math
Float to Int

Float to Int — the conversion nobody thinks about until a node yells at you

Utilitools/Conversion
If Then Else

If Then Else — the branch in your graph, without a single line of code

Utilitools/Logic
Image Dimensions

Image Dimensions — the one-liner that feeds your whole resolution pipeline

Utilitools/Image
Int to Float

Int to Float — the conversion that makes math nodes stop arguing

Utilitools/Conversion
Create List

Create List — up to 8 items in, one list out, empty slots ignored

Utilitools/Data
List Index

List Index — pull one item out of a list by number

Utilitools/Data
Multiply

Multiply — scaling anything by anything, without the type dance

Utilitools/Math
Passthrough

The node that does nothing, on purpose

Utilitools/Workflow
String Replace

Find-and-replace for prompts, and the count trap

Utilitools/Text
Subtract

Two inputs, two outputs, one rounding gotcha

Utilitools/Math
Switch

A boolean switch that only runs the branch you actually pick

Utilitools/Logic
Text Concatenation

Join two strings, and mind the separator

Utilitools/Text
Whatever To String

A conversion node with a catch

Utilitools/Conversion
Readme

ComfyUI-Utilitools

A collection of utility nodes for ComfyUI that I find handy. Nothing fancy, just stuff that makes workflows a bit easier when you need simple operations.

What's in here?

These aren't the most sophisticated nodes out there, but they get the job done for basic operations:

🧮 Math Nodes

  • Add, Subtract, Multiply, Divide - Basic math with both int and float outputs
  • Calculator - Safely evaluate simple math expressions like "2 + 2 * 3"

📝 Text Utilities

  • Text Concatenation - Join two strings with optional separator
  • String Replace - Find and replace text with optional count limit

🔄 Type Conversions

  • Float to Int / Int to Float - Convert between number types
  • Whatever To String - Convert any value (int, float, string) to string

🤔 Logic & Control

  • If Then Else - Branch workflows based on boolean conditions
  • Switch - Select from up to 8 inputs by index
  • Boolean Gates - AND, OR, NOT operations

📋 Data Manipulation

  • Create List - Make lists from up to 8 items
  • List Index - Get item from list by index
  • Batch Controller - Adjust tensor batch sizes

⚙️ Workflow Helpers

  • Passthrough - For workflow organization (does nothing, just passes data through)
  • Counter - Increment/decrement with optional reset
  • Date Timestamp - Generate formatted date/time strings with toggles for components
  • Constants - Int, Float, and String constant value nodes

🖼️ Image Utilities

  • Image Dimensions - Get width, height, and batch size from images
  • Aspect Ratio - Calculate ratio as decimal and simplified fraction (like "16:9")

Installation

Just drop this folder into your ComfyUI custom_nodes directory and restart ComfyUI. That's it.

ComfyUI/custom_nodes/ComfyUI-Utilitools/

Notes

  • All nodes are organized under "Utilitools" categories in the node browser
  • Most math operations work with both int and float inputs
  • The calculator node only accepts basic math expressions for safety
  • These are utility nodes I made for myself - they're useful but not groundbreaking

Structure

The code is organized by category for easier maintenance:

nodes/
├── math.py          # Arithmetic operations
├── text.py          # Text processing
├── conversion.py    # Type conversions  
├── logic.py         # Conditional logic
├── data.py          # Lists and batching
├── workflow.py      # Workflow helpers
├── constants.py     # Constant values
├── image.py         # Image utilities
└── main.py          # Central registry

Feel free to use, modify, or ignore as needed!