Find and Replace

Paste your text, type what to find and what to replace it with.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the find and replace text

  1. Paste your text in the top box.
  2. Type the word or phrase to look for in Find.
  3. Type the replacement in Replace with (leave it empty to delete matches).
  4. Copy the result. The note shows how many replacements were made.

Options

  • Ignore upper/lower case matches *Color*, *color* and *COLOR* alike.
  • Whole words only stops *cat* from matching inside *category*.
  • Regular expression treats the Find box as a pattern, for advanced matching.

Useful regular expressions

To matchPattern
Any digit\d
One or more spaces\s+
The start of each line^ (not supported per-line; use the line tools)
An email address[\w.+-]+@[\w-]+\.[\w.]+
Text in brackets\([^)]*\)
Three or more line breaks\n{3,}

In regex mode, the replacement can use $1, $2 to insert captured groups, and \n for a line break. For example, find (\w+), (\w+) and replace with $2 $1 to swap *Smith, Anna* into *Anna Smith*.

Frequently asked questions

How do I delete a word everywhere?

Type the word in Find and leave Replace with empty.

Can I replace line breaks?

Tick Regular expression and search for \n. For common cases the remove line breaks tool is simpler.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools