To find and replace text, paste it into a find and replace tool, type what to look for and what to swap it with, and run the replacement. Every match changes at once, and you see how many were affected. The free find and replace tool does it in your browser, with case sensitivity, optional regex, and nothing uploaded.
This is the editing job everyone needs eventually: a term changed across a long document, a recurring typo fixed, a name updated everywhere it appears. Doing it by eye means you miss one. Doing it in bulk means you do not.
When bulk replace beats editing by hand
Some edits are not worth doing one at a time:
- Renaming a term. A product gets renamed and now appears under the old name in fifty places. One replace fixes them all.
- Fixing a recurring mistake. You consistently misspelled a word or used the wrong format throughout a draft.
- Standardising formatting. Different separators, inconsistent spacing, or mixed spellings need to be unified before you publish or import.
- Stripping unwanted characters. Text pasted from somewhere arrives with stray symbols you want gone everywhere.
In each case, the count of changes is reassuring. When the tool reports “23 replaced”, you know exactly how many instances existed, which often catches surprises, like a term appearing far more or far less often than you expected.
How to find and replace text
Step 1: Paste your text
Drop in the text you want to edit into the find and replace tool.
Step 2: Set find and replace
Type what to look for and what to replace it with. Toggle case sensitivity if capitalisation matters, and switch on regex if you need pattern matching.
Step 3: Replace and copy
Run it, check the count of changes and the result, then copy the edited text out.
Case sensitivity, and why it matters
By default the search ignores case, so searching for “color” finds “Color” and “COLOR” too. That is what you usually want for ordinary prose. But sometimes case is the whole point. In code, userName and username can be different variables. For proper nouns, you might want to change “Apple” the company without touching “apple” the fruit. Switch case sensitivity on for those, and the search respects exact capitalisation.
Regex: matching patterns, not just words
Plain find and replace handles exact text. Regex handles patterns, which is what you need when the thing you are matching varies. A few things regex makes easy:
- Any number. Match every digit or run of digits without typing each one.
- Whitespace cleanup. Collapse runs of spaces, or trim trailing spaces at the end of every line.
- Position. Match only at the start or end of a line, so you can add or strip a prefix everywhere.
- Reusing what you matched. Capture part of the match and put it back, rearranged, in the replacement, which is how you reformat structured text like dates or phone numbers.
Regex is powerful and slightly unforgiving. A small pattern mistake can match more than you meant, so check the change count and the result before you rely on it. For everyday word swaps, leave regex off; it is there for the jobs plain text cannot do.
A safer workflow
Bulk replace is fast, which means a mistake is also fast. Two habits keep it safe. First, keep a copy of the original until you have checked the result, so you can redo a replacement that went too far. Second, read the change count: if you expected to change one word and it changed forty, your search was broader than you thought. Catching that before you paste the result anywhere saves the cleanup.
Cleaning up line breaks too
A common follow-up to a bulk edit is tidying the structure: stray line breaks, blank lines, double spaces. Find and replace can do some of it with regex, but there is a simpler tool for the job. See how to remove line breaks and join text.