Find and Replace Text

Find and replace text online — case-insensitive, whole-word or regex.

Find and replace text online with options for case-insensitive matching, whole-word matching and full regular expressions. See how many matches were replaced and copy the result — everything runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Does this support regular expressions?

Yes. Tick "Use regular expression" and the find field is treated as a JavaScript regex. You can reference capture groups in the replacement with $1, $2, and so on. An invalid pattern is reported instead of breaking the page.

Find and replace text online

A fast find-and-replace for any block of text, right in your browser. Swap a word or phrase everywhere, clean up imported data, or run a precise regular expression — and see exactly how many matches changed.

Matching options

  • Case-insensitive — match regardless of upper/lower case (on by default).
  • Whole word only — only match the term as a complete word, using word boundaries, so cat does not match category.
  • Regular expression — treat the find field as a regex for advanced patterns; use $1, $2, … in the replacement to reference capture groups.

How it works

The tool builds a global regular expression from your settings and applies it to the text:

plain text  → the term is escaped so symbols are literal
whole word  → wrapped in \b…\b boundaries
regex mode  → your pattern is used as-is
flags       → always global (g), plus i when case-insensitive

A live counter shows how many matches were replaced, and an invalid regex is reported rather than crashing.

Common uses

  • Renaming a term consistently across a document.
  • Cleaning pasted data — collapsing separators, fixing delimiters, stripping unwanted characters with a regex.
  • Reformatting lists and code snippets with capture-group replacements.

Everything runs locally in your browser — your text is never uploaded.