Find and Replace
Search and replace across any block of text, with live preview, regex, whole-word and case-sensitive options.
What this tool does
A simple, fast find-and-replace for any block of text — without firing up a heavyweight editor. The preview pane highlights every match in yellow before you commit, replaced text turns green so you can verify the change visually, and a live counter tells you how many hits the current pattern has. Works on plain prose, code, logs, CSV — anything you can paste in.
How to find and replace
Paste the source text into the top field. Type what you're looking for in Find, and the replacement in Replace with. Tick Case-sensitive to match capitalization exactly, Whole word to avoid partial matches (e.g. "cat" won't match inside "category"), and Regex to enable full regular-expression syntax. Choose Replace all or Replace first only, then copy the result with the button beside the output.
Tips for everyday find/replace
For simple swaps, leave all options off — that's the most predictable. Turn Case-sensitive on whenever capitalization matters ("iPhone" vs "iphone"). Use Whole word when renaming a variable or word that's likely to be a substring of others. Regex unlocks captures ($1, $2), wildcards, anchors and lookaheads — but if you don't need them, leaving regex off prevents surprises with characters like ., *, ?.
Options reference
| Option | When to use it |
|---|---|
| Case-sensitive | Match capitalisation exactly. Off by default, so "hello" and "Hello" both match. |
| Whole word | Only match if the surrounding characters aren't letters/digits. Prevents "cat" from matching inside "category". |
| Regex | Treat the find field as a regular expression. Use captures ($1) in the replace field for advanced rewriting. |
| Replace first only | Replace only the first match. Useful for editing a single occurrence in a longer file. |
| Replace all | Replace every match in the source text. Default behaviour. |
Frequently asked questions
Does the regex option support captures?
(\w+)@(\w+)) and reference them in the replace field with $1, $2, etc. JavaScript regex syntax applies — \d, \s, \b, character classes, anchors and lookaheads are all available.What's the difference between whole-word and substring matching?
Why does my regex show "Invalid pattern"?
+), or it uses a feature your browser's regex engine doesn't support. The most common cause is forgetting to escape literal special characters like . or (. Toggling regex off treats them as literals automatically.Is the replacement permanent?
Can I leave the replace field blank?
\s+$ with multiline mode in mind, or just toggle whole-word off and search for the literal pattern).
EN
PT
ES