ComfyUI Node: Text

Class Name

Text

Category
Text Translation
Author
TFL-TFL (Account age: 2213days)
Extension
ComfyUI_Text_Translation
Latest Updated
2025-05-25
Github Stars
0.12K

How to Install ComfyUI_Text_Translation

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

The Text node enables versatile text manipulation, including adding prefixes, replacing segments, and case conversion.

Text:

The Text node is a versatile tool designed to manipulate and transform text data in various ways, making it an essential component for AI artists who work with text-based inputs. This node provides a range of functionalities, such as adding prefixes or suffixes, replacing specific text segments, converting text to uppercase or lowercase, and trimming whitespace. These capabilities allow you to customize and refine text data to suit specific artistic or functional needs, enhancing the overall quality and coherence of your projects. By offering a straightforward interface for text manipulation, the Text node simplifies the process of text editing, enabling you to focus on the creative aspects of your work.

Text Input Parameters:

prefix

The prefix parameter allows you to specify a string that will be added to the beginning of each text input. This can be useful for adding consistent introductory phrases or identifiers to your text data. The default value is an empty string, meaning no prefix will be added unless specified.

suffix

The suffix parameter lets you define a string to be appended to the end of each text input. This is particularly useful for adding closing remarks or identifiers. Like the prefix, the default value is an empty string, so no suffix will be added unless you provide one.

find

The find parameter is used to specify the text segment you want to search for within the input text. This parameter is crucial for the text replacement functionality, as it identifies the exact portion of text that needs to be replaced. The default value is an empty string, which means no text will be found or replaced unless specified.

replace

The replace parameter allows you to define the text that will replace the segment identified by the find parameter. This enables you to modify specific parts of your text data efficiently. The default value is an empty string, meaning the found text will be replaced with nothing unless specified.

max_length

The max_length parameter sets the maximum number of characters allowed in the text. This is useful for ensuring that your text data does not exceed a certain length, which can be important for maintaining consistency or meeting specific requirements. The default value is 77, with a minimum of 1 and a maximum of 10,000 characters.

Text Output Parameters:

processed_text

The processed_text output parameter represents the final text after all specified transformations have been applied. This output is crucial as it reflects the cumulative effect of all input parameters, providing you with the refined text data ready for further use or analysis.

Text Usage Tips:

  • To ensure consistency in your text data, use the prefix and suffix parameters to add standard phrases or identifiers to all text inputs.
  • Utilize the find and replace parameters to efficiently update or correct specific text segments across multiple inputs, saving time and effort.
  • When working with text data that has length constraints, adjust the max_length parameter to automatically truncate text to the desired length, ensuring compliance with any requirements.

Text Common Errors and Solutions:

Text not found for replacement

  • Explanation: This error occurs when the specified find text is not present in the input text, resulting in no replacement being made.
  • Solution: Double-check the find parameter to ensure it matches the text segment you intend to replace. Consider using different variations or checking for typos.

Text exceeds maximum length

  • Explanation: This error happens when the input text exceeds the specified max_length, leading to truncation.
  • Solution: Review the max_length parameter to ensure it is set appropriately for your needs. If necessary, increase the maximum length to accommodate longer text inputs.

Text Related Nodes

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