Int To String (Soze)
Numbers into text, with an optional format
- STRING
Same problem as its FLOAT sibling, one type down: you've got an INT - a seed, a batch index, a loop counter - and you need it as text so you can stuff it into a filename, a prompt, or a log line. Int To String does that conversion, with an optional format field for when the plain number isn't enough.
This one earns its keep most in batch and automation workflows: if you're driving a folder loader or a CSV iterator with an incrementing index, this is how you turn that index into a readable label for your output filenames.
How it works
It takes the integer on its input and returns it as a STRING, using the format field to control the output shape if you supply one. As with Float To String, the exact format syntax isn't documented in the node schema, but a format field on an int-to-string converter typically follows something like Python format-spec conventions - useful for zero-padding (03d → 007 instead of 7), which matters a lot if you're naming sequential output files and want them to sort correctly.
The inputs and outputs that matter
int- the value to convert. Default0, standard 32-bit range (−2,147,483,648 to 2,147,483,647), step1.format- optional, default empty string. Worth testing a zero-pad spec here if you're generating sequential filenames - an unpadded index makesimage_2.pngsort afterimage_10.pngalphabetically, which is a real annoyance in batch runs.- Output:
STRING- feed into a filename builder, text concatenation node, or anywhere else expecting text.
How to install it
ComfyUI Manager: search "Quality of Life Nodes for ComfyUI" or "Soze," install, restart. Or by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/SozeInc/ComfyUI_Soze.git
pip install -r ComfyUI_Soze/requirements.txt
then restart ComfyUI. No models, no GPU work, and no need for the pack's optional API keys (those only matter for the ComfyDeploy/FAL/ElevenLabs integration nodes elsewhere in the pack).
Common issues & troubleshooting
Zero-padding isn't automatic. If your batch output filenames sort wrong (img_1, img_10, img_2...), that's the raw int rendering with no padding - try a format spec before assuming you need a different node entirely.
No documentation to fall back on. ComfyUI_Soze has essentially no presence in general ComfyUI discussion, so if the format field doesn't accept the syntax you expect, your fastest path is testing directly (wire the output to Show Text and iterate) rather than searching for an explanation that isn't out there.
Confusing this with the CSV iteration nodes. The README describes CSV Reader nodes elsewhere in the pack that also walk an index across rows. This converter has nothing to do with those - it just formats a number you already have. If you're trying to drive an index across a dataset, you want one of the loader or iterator nodes, not this one.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| int | INT | 0-2147483648–2147483647 | — |
| format | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |