Int to Text
The dumbest node you'll end up relying on
- STRING
One integer in, one text string out. That's the whole node - str(int_input) in a trench coat. Int to Text is the kind of utility that looks pointless on paper and then saves you an afternoon the first time you need a seed inside a prompt string or a batch number inside a filename. ComfyUI's graph is typed, and the types are stubborn: an INT output will not flow into a STRING input without a conversion node like this one.
Why you'd reach for it
The classic use is inside an Easy Grids loop. Your Create Image Grid node is handing out an x_index per cell; Int to Text turns that number into text, and you can splice it into a prompt or a label with the pack's Text Concatenator. Suddenly every cell of the grid is annotated with its own index, or your prompt says "version 3 of 6" and actually means it. Same trick works with a seed - paste the current seed into the prompt so you can reproduce a specific cell later, which beats scribbling it on a sticky note.
It's also useful whenever some downstream node insists on a string but you only have a number. Character counts, step counts, timestamps - if it's an integer and you need it as text, this is the two-second fix.
Inputs and output
One input:
int_input- any integer (INT, default 1)
One output: STRING, which is just the input formatted as text. Wire it into any text input, or into Text Concatenator if you need to combine it with surrounding prose.
No options to configure, no decimal places to worry about, no hidden state. If you've seen the pack's Float to Text node, this is the same idea minus the formatting knob - integers don't need one.
Installing it
It's part of comfy-easy-grids, so the install is shared with the rest of the pack. Easiest is ComfyUI Manager - search "comfy-easy-grids" and install. By hand:
cd ComfyUI/custom_nodes
git clone https://github.com/shockz0rz/comfy-easy-grids
Restart ComfyUI after installing. No requirements.txt, no model downloads, nothing to configure - it's pure Python using ComfyUI's built-in types. You'll find it under "EasyGrids" in the Add Node menu.
Troubleshooting
Honestly, there's not much to break here. The one trap is expecting it to do formatting - it won't pad numbers or add leading zeros; that's a job for the Math Expression node in ComfyUI-Custom Scripts, which the pack's README recommends for turning grid indexes into more interesting numbers anyway. If your text looks wrong, check upstream: the node faithfully echoes whatever integer it receives, so a weird output means a weird input.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| int_input | INT | 1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |