Find and Replace Text

Replace every occurrence of a word or phrase in your text at once, with options for case, whole words and regular expressions.

How to use the Find and Replace

  1. Paste your text into the first box.
  2. Type what to find and what to replace it with.
  3. Switch on match case, whole words or regular expressions if needed, then copy the result.

Options explained

  • Match case: “Apple” will not match “apple”.
  • Whole words only: “cat” will not match inside “category”.
  • Regular expression: use patterns instead of fixed text.

Leave the replacement empty to delete every match.

Useful regular expressions

Find Replace Effect
s+ (one space) Collapse repeated spaces and line breaks
^s+|s+$ (empty) Trim the start and end of the text
d+ # Replace every number with #
(w+)@(w+) $2 at $1 Reorder captured groups
,s* n Put comma-separated items on separate lines

In regular expression mode, $1, $2 and so on insert captured groups, and n and t in the replacement insert a line break and a tab.

Your text is processed in your browser. Nothing you type or paste is uploaded or stored.

Frequently asked questions

How do I replace all occurrences of a word?

Paste your text, type the word in "Find" and the new word in "Replace with". Every occurrence is replaced automatically.

How do I delete a word everywhere?

Enter the word in "Find" and leave "Replace with" empty.

Can I replace line breaks?

Yes. Turn on regular expressions and search for n. To insert a line break, use n in the replacement.