IntToString-badger
The five-line node that names your files
- STRING
Converting an integer to a string sounds like the most useless node in existence - until you try to build a filename or push a number into a prompt and ComfyUI tells you the types don't match. That's the entire job of IntToString-badger, and it does it in one line of code: str(int).
You'll reach for it any time you need to glue a number into text. Building a Save Image filename like step_12_seed_999.png means concatenating strings, and a bare INT won't join with a string in a Format String or Text Concatenate node without a fight. Same story if you want to inject the current step count, CFG, or seed into a prompt, a wildcard, or an HTTP request body. It's a plumbing node - you rarely think about it until the moment it saves your workflow.
The inputs and outputs are as simple as they get. You feed it one INT (default 0, range 0–4096) and you get one STRING back. That's the whole schema. One thing the range does bite people on: the min is 0, so if you try to convert a negative seed or an offset that can go below zero, the widget won't let you type it. It's a tiny limitation and honestly a little annoying, but for filename and prompt work you're usually in positive territory anyway.
The pack's README - which is a whole three lines, written in Chinese, and basically says "personal use tools" - lists "int to string" as one of its two headline features. That tells you everything about where this node came from: the author needed it for their own workflows and published the whole toolbox.
Installation is the standard dance. Through ComfyUI Manager, search for ComfyUI_BadgerTools (or just "badger") and hit install. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/AbyssYuan0/ComfyUI_BadgerTools
Then restart ComfyUI. The nodes appear under the badger category. No model downloads, no API keys - this one is dependency-free in practice.
Fair warning, though: this node is so trivial that you shouldn't install the whole pack just for it. If you already run WAS Node Suite or Impact Pack, they ship equivalent int-to-string converters. But if BadgerTools is on your machine anyway - say, for the video or SAM nodes it also carries - this is the cleanest one in the pack to use. Zero config, zero surprises, exactly what it says on the tin.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| int | INT | 00–4096 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |