📃Text → Dict🗂️ [OLD]
Text → Dict, wearing its old ID
- dict
- dict
The same node, kept under its old name
📃Text → Dict🗂️ [OLD] looks like a leftover, and it kind of is - but it's not dead code. This is the same parser as the flagship TextToDict, registered under its original ID so that every saved workflow that references DictFromText keeps loading without you hunting for replacements.
Here's the backstory, because it explains why the menu is cluttered. These dict nodes originally lived inside Lex Darlog's String Constructor pack as supporting utilities. When they grew into their own pack (🗂️ Dict Tools), the old node IDs were kept as aliases so nobody's existing graph broke. DictFromText [Dict Tools] is one of those aliases. There's also StringConstructorDictFromText, an even older alias that renamed its inputs; this one kept the modern input names and just kept the legacy ID.
What it does
Identical to TextToDict. You paste a wall of key-value pairs into dict_text - keys on their own line, values on the following lines, blank lines separating items - and it parses the lot into a dict:
char1_short
1boy, blond, short hair
char1_long
1boy, smiling, blue eyes, blond, short hair,
wearing a leather jacket, sitting on a bike
That becomes two entries, the second carrying a two-line value. The inputs are:
- dict_text - the text to parse.
- pre_cleanup - on by default; strips each line of leading/trailing spaces before parsing.
- show_status - off by default; turn it on to see the detected keys printed on the node.
- dict - optional; pass an existing DICT in and the parsed items merge on top of it.
The dict output feeds any Dict Tools extract node. The node is marked as an output node so it can show its status message even when nothing is wired to it - handy when you're just checking what keys got detected.
Installing it
Same pack install as everything else. ComfyUI Manager, search Dict Tools (Lex-DRL/ComfyUI-DictTools), or:
cd ComfyUI/custom_nodes
git clone https://github.com/Lex-DRL/ComfyUI-DictTools
Restart ComfyUI. Only dependency is frozendict; no models to download. Requires ComfyUI >= 0.18.0.
What to do about it
If you're starting fresh, don't reach for the [OLD] node - use 📃Text → Dict🗂️ (TextToDict) from the pack's root category. It's the same code, but the [OLD] tag exists precisely so new graphs use the current name. If you're maintaining a workflow that already references DictFromText [Dict Tools], leave it: it parses identically, and swapping it out buys you nothing but a renamed node.
One thing worth knowing when comparing with StringConstructorDictFromText: that older alias renamed pre_cleanup → cleanup and dict_text → strings. This node kept the modern names. So if a tutorial from the String Constructor era says "the strings input," that's the other alias - here it's called dict_text. Same parser, different labels, no functional difference.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| pre_cleanup | BOOLEAN | true | When enabled, each line is individually pre-stripped of any leading/trailing spaces before parsing the text. |
| dict_text | STRING | A wall of key-value pairs: • keys (item names) on their own line, • followed by their text. Different items are separated by empty lines. | |
| show_status | BOOLEAN | false | Show detected string names on the node itself? |
| dictopt | DICT | An (optional) Dictionary to work with. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| dict | DICT | — |