> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ReplaceText - ComfyUI Built-in Node Documentation

> Complete documentation for the ReplaceText node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ReplaceText/en.md)

The Replace Text node performs a simple text substitution. It searches for a specified piece of text within the input and replaces every occurrence with a new piece of text. The operation is applied to all text inputs provided to the node.

## Inputs

| Parameter | Data Type | Required | Range | Description                                                      |
| --------- | --------- | -------- | ----- | ---------------------------------------------------------------- |
| `text`    | STRING    | Yes      | -     | The text to process.                                             |
| `find`    | STRING    | No       | -     | The text to find and replace (default: empty string).            |
| `replace` | STRING    | No       | -     | The text to replace the found text with (default: empty string). |

## Outputs

| Output Name | Data Type | Description                                                                                |
| ----------- | --------- | ------------------------------------------------------------------------------------------ |
| `text`      | STRING    | The processed text with all occurrences of the `find` text replaced by the `replace` text. |
