Find and Replace

Replace every occurrence of a word or pattern in your text and see how many were changed.

Loading tool...

How to use Find and Replace

  1. Paste your text.
  2. Enter the text to find and its replacement.
  3. Choose case, whole-word or regex options and copy the result.

About this tool

Plain-text mode replaces exact matches. Regular expression mode lets you use patterns such as \d+ for numbers, and $1 in the replacement to reuse a captured group.

The match count is shown so you can confirm the change before copying.

Frequently Asked Questions

How do I replace with a new line?
Enable regex mode and use \n in the replacement.
What if my pattern is invalid?
The tool shows an error message instead of changing the text.

Related tools