---
title: "Replace Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/replacetext
markdown: https://docs.nodetool.ai/nodes/nodetool/text/replacetext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/replacetext.md
---

# Replace Text

**Type:** `nodetool.text.Replace`

**Namespace:** `nodetool.text`

## Description

Replaces a substring in a text with another substring.
    text, replace, substitute

    Use cases:
    - Correcting or updating specific text patterns
    - Sanitizing or normalizing text data
    - Implementing simple text transformations

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` | The input text. | `` |
| old | `str` | Substring to find. | `` |
| new_value | `str` | Replacement string. | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
