Find and Replace

Find and replace text with support for regular expressions

Find and Replace Text

Search for text patterns and replace them with new content. Supports regular expressions for advanced searches.

0 characters
Matches Found
0
Replacements Made
0
0 characters

How to Use

  1. Enter or paste your text in the input area
  2. Type the text you want to find in the "Find" field
  3. Enter the replacement text in the "Replace With" field
  4. Adjust options as needed (case sensitive, whole word, regex)
  5. Toggle between "Replace all" or "Replace first" occurrence
  6. View the result in the output area and copy when ready

Features

Case Sensitive Search

Enable case sensitivity to match exact letter casing. "Hello" will only match "Hello", not "hello" or "HELLO".

Whole Word Matching

Match complete words only. Searching for "the" won't match "them" or "other".

Regular Expressions

Use powerful regex patterns for complex searches. Match patterns like phone numbers, emails, or custom formats.

Capture Groups

With regex enabled, use capture groups in your pattern and reference them in the replacement with $1, $2, etc.

Regex Examples

Find:\d{3}-\d{3}-\d{4}
Replace:[PHONE]
Use:Mask phone numbers
Find:(\w+)@(\w+)\.(\w+)
Replace:$1 at $2 dot $3
Use:Transform email format
Find:^\s+|\s+$
Replace:(empty)
Use:Trim whitespace
Find:<[^>]+>
Replace:(empty)
Use:Remove HTML tags

Frequently Asked Questions

What is Find and Replace?

Find and Replace is a text processing tool that allows you to search for specific text patterns in your content and replace them with new text. It supports both simple text matching and advanced regular expressions (regex) for complex pattern matching.

What are regular expressions (regex)?

Regular expressions are powerful patterns used to match text. They allow you to search for complex patterns like "all phone numbers" or "words starting with capital letters" instead of just exact text matches. Enable the "Use regex" option to use regex patterns in your search.

How do I use capture groups?

Capture groups let you reuse parts of your match in the replacement. Wrap part of your regex pattern in parentheses to create a group, then use $1, $2, etc. in your replacement text. For example, pattern "(\w+) (\w+)" with replacement "$2 $1" will swap two words.

Is this tool free to use?

Yes! All tools on ToolsKeeper are completely free to use with no limitations or sign-up required.

Is my data secure?

Absolutely. All processing happens directly in your browser. Your data never leaves your device or gets sent to any server.

Related Tools