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
catdoes not matchcategory. - 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.