ComfyUI > Nodes > ComfyUI-Prompt-Wildcards > textconcatenate

ComfyUI Node: textconcatenate

Class Name

textconcatenate

Category
utils/Prompt-Wildcards
Author
Makki_Shizu (Account age: 976days)
Extension
ComfyUI-Prompt-Wildcards
Latest Updated
2025-08-16
Github Stars
0.02K

How to Install ComfyUI-Prompt-Wildcards

Install this extension via the ComfyUI Manager by searching for ComfyUI-Prompt-Wildcards
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Prompt-Wildcards in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

textconcatenate Description

Merges multiple text strings into one output with customizable delimiters for easy text management.

textconcatenate:

The textconcatenate node is designed to seamlessly merge multiple text strings into a single cohesive output. This node is particularly useful for AI artists and creators who need to combine various text elements, such as prompts or descriptions, into a unified format. By allowing the specification of a delimiter, it provides flexibility in how the texts are joined, whether you want them separated by spaces, commas, or any other character. The node's primary goal is to streamline the process of text concatenation, making it easier to manage and manipulate text data without requiring extensive technical knowledge. Its intuitive design ensures that even those with minimal programming experience can effectively utilize its capabilities to enhance their creative workflows.

textconcatenate Input Parameters:

text_count

The text_count parameter specifies the number of text inputs you wish to concatenate. It determines how many text fields will be considered during the concatenation process. The minimum value is 1, and the maximum is 50, with a default of 3. This parameter is crucial as it directly impacts the number of text inputs that will be processed and combined.

delimiter

The delimiter parameter defines the character or string that will be used to separate each text input in the final concatenated output. By default, it is set to ", ", but it can be customized to any string, such as a space, comma, or newline. This parameter allows you to control the formatting of the concatenated text, ensuring it meets your specific needs.

clean_whitespace

The clean_whitespace parameter is a boolean option that, when enabled, removes leading and trailing whitespace from each text input before concatenation. It defaults to True, ensuring that the final output is clean and free from unnecessary spaces, which can be particularly useful for maintaining a tidy and professional appearance in the concatenated text.

replace_underscore

The replace_underscore parameter is another boolean option that, when set to True, replaces underscores (_) with spaces in each text input. This is useful for improving the readability of text that may have been formatted with underscores instead of spaces. The default value is True, which helps ensure that the final output is more natural and easier to read.

textconcatenate Output Parameters:

text

The text output parameter represents the final concatenated string resulting from the combination of all specified text inputs, separated by the chosen delimiter. This output is crucial as it provides the end result of the node's operation, delivering a single, unified text string that can be used in further creative processes or outputs.

textconcatenate Usage Tips:

  • To ensure a clean and professional output, enable the clean_whitespace option to automatically trim unnecessary spaces from your text inputs.
  • Use the replace_underscore option to enhance the readability of text inputs that may contain underscores, making the final output more natural and easier to understand.
  • Experiment with different delimiters to achieve the desired formatting for your concatenated text, whether you need a simple space, a comma, or a more complex separator.

textconcatenate Common Errors and Solutions:

Missing text inputs

  • Explanation: If the text_count is set higher than the number of provided text inputs, some expected inputs may be missing.
  • Solution: Ensure that you provide the correct number of text inputs as specified by the text_count parameter.

Invalid delimiter

  • Explanation: Using an invalid or unsupported delimiter may result in unexpected formatting in the output.
  • Solution: Verify that the delimiter is a valid string and adjust it to meet your formatting requirements.

Excessive whitespace

  • Explanation: If clean_whitespace is disabled, the output may contain unwanted spaces.
  • Solution: Enable the clean_whitespace option to automatically trim spaces from the text inputs.

textconcatenate Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Prompt-Wildcards
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.