Free · No sign-up · Runs in your browser

Find and Replace Text

Replace every occurrence of a word, phrase, or pattern across a whole document at once. Supports plain text matching and full regular expressions, with case sensitivity as an option.

0 chars0 lines

How to use it

  1. Paste your text into the box above.
  2. Enter what to Find and what to Replace with. Leave the replacement empty to simply delete every match.
  3. Tick Regular expression for pattern matching, or leave it off to match the text literally.
  4. Click Replace all.

Useful regular expressions

  • \s+ — one or more whitespace characters. Replace with a single space to normalise spacing.
  • \d+ — one or more digits. Replace with nothing to strip all numbers.
  • ^\s+ — whitespace at the start of a line, for trimming indentation.
  • <[^>]+> — anything inside angle brackets, which strips HTML tags.
  • (\w+)@(\w+) — captures two groups; refer to them in the replacement as $1 and $2.

Literal mode escapes special characters for you

With Regular expression switched off, characters like ., *, ?, and ( are escaped automatically and matched literally. That means searching for 3.50 finds exactly "3.50" rather than "3x50" or "3550", which is what a plain-text search should do. Switch regex on only when you actually want pattern behaviour — and if your expression is malformed, the tool tells you rather than silently doing nothing.


Frequently asked questions