ComfyUI > Nodes > ComfyUI-UniversalToolkit > Text Concatenate (UTK)

ComfyUI Node: Text Concatenate (UTK)

Class Name

TextConcatenate_UTK

Category
UniversalToolkit/Text
Author
whmc76 (Account age: 1110days)
Extension
ComfyUI-UniversalToolkit
Latest Updated
2026-03-16
Github Stars
0.07K

How to Install ComfyUI-UniversalToolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-UniversalToolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-UniversalToolkit 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

Text Concatenate (UTK) Description

Merges multiple strings into one text block with customizable delimiters and whitespace control.

Text Concatenate (UTK):

The Text Concatenate (UTK) node is designed to seamlessly merge multiple strings into a single cohesive text block, offering flexibility through customizable delimiters and whitespace management. This node is particularly beneficial for AI artists and creators who need to combine various text inputs into a unified format, ensuring that the final output is clean and well-structured. By allowing users to define their own delimiters, such as commas, spaces, or even line breaks, and providing options to handle whitespace effectively, this node simplifies the process of text concatenation. Its primary goal is to enhance text manipulation capabilities within creative workflows, making it an essential tool for those looking to streamline their text processing tasks.

Text Concatenate (UTK) Input Parameters:

delimiter

The delimiter parameter allows you to specify the character or string that will be used to separate each text input in the final concatenated output. This can be any string, such as a comma, space, or newline character. The default value is a comma followed by a space (, ). By customizing the delimiter, you can control how the individual text segments are joined, which is particularly useful for formatting purposes.

clean_whitespace

The clean_whitespace parameter determines whether leading and trailing whitespace should be removed from each text input before concatenation. It accepts two options: "true" or "false". When set to "true", any extra spaces at the beginning or end of each text input are stripped away, resulting in a cleaner output. This is useful when you want to ensure that the concatenated text does not contain unintended spaces.

text_a

The text_a parameter is one of the optional text inputs that you can provide to the node. It is a string that will be included in the concatenation process. This parameter is marked with forceInput: True, meaning that it requires a value to be provided if used.

text_b

Similar to text_a, the text_b parameter is another optional string input for the node. It will be concatenated with other text inputs if provided. This parameter also requires a value if it is used, as indicated by forceInput: True.

text_c

The text_c parameter is an optional string input that can be included in the concatenation process. Like the other text inputs, it requires a value if used, as indicated by forceInput: True.

text_d

The text_d parameter is the final optional string input available for concatenation. It follows the same requirement as the other text inputs, needing a value if used, as indicated by forceInput: True.

Text Concatenate (UTK) Output Parameters:

STRING

The output of the Text Concatenate (UTK) node is a single STRING that represents the concatenated result of all provided text inputs. This output is the final merged text, formatted according to the specified delimiter and whitespace handling options. It serves as a unified text block that can be used in subsequent processes or outputs, providing a streamlined and organized text format.

Text Concatenate (UTK) Usage Tips:

  • To ensure a clean output, set clean_whitespace to "true" if your input texts might contain unwanted spaces at the beginning or end.
  • Experiment with different delimiter values to achieve the desired text format, such as using "\n" for line breaks or ", " for comma-separated lists.

Text Concatenate (UTK) Common Errors and Solutions:

Missing required input

  • Explanation: This error occurs when one or more required text inputs are not provided.
  • Solution: Ensure that all required text inputs (text_a, text_b, text_c, text_d) are supplied with valid strings if they are being used.

Invalid delimiter

  • Explanation: An invalid or unsupported delimiter might cause unexpected results in the concatenated output.
  • Solution: Verify that the delimiter is a valid string and adjust it to match your formatting needs, such as using "\n" for new lines or ", " for commas.

Text Concatenate (UTK) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-UniversalToolkit
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.

Text Concatenate (UTK)