Find & Replace
Find and replace text, with optional case-insensitive, regex, and whole-word matching. Runs entirely in your browser.
How to find and replace text
- Paste or type your text into the Text box.
- Enter what to find and what to replace it with. The result appears in its own box, with a count of how many replacements were made.
- Turn on the options you need: Case-insensitive, Whole word only (so “form” won’t match inside “format”), or Regular expression.
- Copy the result. In regex mode you can reference capture groups in the replacement with $1, $2, and $& for the whole match.
When to use it
A textarea find-and-replace covers the cases a code editor’s is awkward for: cleaning up text you pasted from elsewhere, swapping a term throughout a note, or normalizing a list before you use it. The replacement count is a quick check that you changed as many places as you expected.
Regex mode handles patterns rather than fixed strings: collapse runs of spaces, reformat dates, or strip a repeated prefix, using backreferences to keep the parts you want. Whole-word matching keeps a replacement from firing inside longer words, which plain search can’t do.
Frequently asked questions
Does my text get sent to a server to do the replacing?
No. The search and replace run entirely in your browser. Nothing is uploaded.
Can I use regular expressions?
Yes. Turn on the regex option. In regex mode the replacement supports $1-style group backreferences and $& for the whole match, and an invalid pattern shows an error instead of failing silently.
What does “whole word” match?
It wraps your pattern in word boundaries, so “cat” matches the word cat but not concatenate. It can be combined with case-insensitive and regex modes.
Are all occurrences replaced, or just the first?
All of them, and the tool shows how many replacements were made so you can sanity-check the result.
Are my settings and text remembered?
The matching options (case, regex, whole word) are remembered across visits on this device. The text and patterns are kept only as a draft for the current tab, so an accidental close doesn’t lose them.