TOOLS.GAMESLOOP255 Free Online Tools

Find and Replace Text

Search and replace across text, with regular expression support.

0 characters
Paste or type something above and the result appears instantly. Nothing you enter leaves your browser.

What does Find and Replace Text do?

Replace text across a whole document with options for case sensitivity, whole-word matching and full regular expressions with capture groups. Matches are highlighted and counted before you commit.

How to Use Find and Replace Text

  1. 1
    Paste your textAny length.
  2. 2
    Enter what to findPlain text, or switch on regex mode.
  3. 3
    Enter the replacementMatches are highlighted as you type.
  4. 4
    Apply and copyThe replacement count is shown.

Key Features

  • Plain text or full regular expression matching
  • Case-sensitive and whole-word options
  • Capture group references such as $1 in the replacement
  • Live match count and highlighting before you replace
  • Multiple find-and-replace rules applied in order
  • Safe handling of invalid regex, with the error explained

Frequently Asked Questions

How do I use capture groups?

Wrap part of the pattern in parentheses and reference it with $1, $2 and so on. Finding (\w+)@(\w+) and replacing with $2/$1 swaps the two halves of every match.

What does whole-word matching do?

It requires a word boundary at each end, so searching for "cat" will not match "category" or "concatenate". It is the fix for the classic replace-all disaster.

Can I replace line breaks?

Yes, in regex mode. Use \n for a line feed and \r\n for a Windows line ending. Replacing \n with a space joins every line into one.

What happens if my regex is invalid?

The tool reports the error and leaves your text untouched. Nothing is replaced until the pattern compiles.

Explore Related Workflows & Utilities

More tools in Text Tools and related problem-solving tools

Topical Deep Dives & Guides

Unicode-Aware Word and Character Counting for Global LanguagesStandardized 225 WPM Reading Time Calculations for Content Creators

Popular Related Searches for Find and Replace Text