# Text Replacer

Replace text using custom patterns

> Canonical page: https://elysiatools.com/en/tools/text-replacer

- **Category:** Text Processing

- **Keywords:** text, replacer, replace, custom, patterns, Text Replacer

## Overview

Text Replacer is a versatile utility designed to help you quickly find and update specific strings or patterns within your text. Whether you need to perform simple word swaps or complex regex-based modifications, this tool provides a streamlined interface to clean, format, and standardize your content efficiently.

## Inputs

- **Text Input** (textarea): Enter text to process...
- **Find Pattern** (text): Enter text or regex pattern to find...
- **Replace Pattern** (text): Enter replacement text...
- **Replace Type** (select)
- **Case Sensitive** (checkbox)
- **Use Regular Expression** (checkbox)

## When to use

- When you need to update specific terms or placeholders across a large block of text.
- When you want to clean up messy data by removing or modifying recurring patterns.
- When you need to enforce consistent terminology or formatting in your documents.

## How it works

- Paste your source text into the input area.
- Define the text or regular expression pattern you wish to locate.
- Specify your replacement text and choose the desired replacement mode.
- Toggle advanced settings like case sensitivity or regex to refine your output.

## Use cases

- Standardizing inconsistent terminology in technical documentation.
- Removing sensitive information or placeholders from exported logs.
- Batch-updating variable names or code snippets in text files.

## Frequently asked questions

### Can I use regular expressions for complex replacements?

Yes, simply check the 'Use Regular Expression' box to enable advanced pattern matching.

### Does the tool support case-sensitive replacements?

Yes, you can toggle the 'Case Sensitive' option to ensure your replacements respect character casing.

### What is the difference between 'Replace All' and 'Replace First'?

'Replace All' updates every occurrence found in the text, while 'Replace First' only modifies the very first instance.

### Can I replace text line by line?

Yes, selecting the 'Replace in Each Line' mode allows you to apply changes specifically within the context of individual lines.

### Is my data processed on a server?

This tool processes your text locally in your browser, ensuring your data remains private and secure.

## Related tools

- [Text File Replacer](https://elysiatools.com/en/tools/text-file-replacer): Find and replace text in files with support for regex, multiple patterns, and backup creation
- [Filter Text Lines](https://elysiatools.com/en/tools/text-line-filter): Quickly return text lines that match a pattern or a regex
- [Text File Searcher](https://elysiatools.com/en/tools/text-file-searcher): Search for text patterns in files with advanced options (regex, case-sensitive, whole word, etc.)
- [Regex Tester](https://elysiatools.com/en/tools/regex-tester): Test regular expressions against text
- [Text Splitter](https://elysiatools.com/en/tools/text-splitter): Split text by custom delimiters, characters, or patterns
- [Text Pattern Stats](https://elysiatools.com/en/tools/text-pattern-stats): Statistics and frequency analysis of text patterns (numbers, emails, URLs, etc.)
- [Text Pipeline Builder](https://elysiatools.com/en/tools/text-pipeline-builder): Run a portable text-cleaning recipe and inspect every step, diff, timing, and character change.
- [Line Number Remover](https://elysiatools.com/en/tools/line-number-remover): Remove line numbers from text or code with intelligent pattern recognition

## Samples

- [Text with Emoji Samples](https://elysiatools.com/en/samples/text-with-emoji-samples): Mixed language text containing various Unicode emojis for testing emoji extraction
- [Regex Replace Samples](https://elysiatools.com/en/samples/regex-replace): Collection of common and useful regex replacement patterns for text transformation and data cleaning
- [Chinese-English Mixed Text Samples](https://elysiatools.com/en/samples/text-chinese-english-mixed-samples): Sample text files with mixed Chinese and English content for testing automatic spacing tools
- [Text Case Format Samples](https://elysiatools.com/en/samples/text-case-formats): Examples of different text case formats: camelCase, snake_case, kebab-case, PascalCase, and more
