Find and Replace Text
Find and replace text online for free. Bulk replace words or phrases across any text with plain-text or regular expression (regex) search, case-insensitive matching, whole-word matching, and replace-all or replace-first modes. See how many replacements were made, with everything running privately in your browser.
ToolsSoup's Find and Replace Text tool lets you find and replace text online and bulk replace words or phrases across any amount of text in one click. Paste your content, type what to find and what to replace it with, and choose how the search behaves: plain-text or regular expression (regex) matching, case-insensitive search, whole-word matching, and replace-all or replace-first. The cleaned result appears instantly with a count of how many replacements were made, ready to copy. Everything runs in your browser — no uploads, no sign-up, and your text never leaves your device.
What is find and replace?
Find and replace is the operation of searching a block of text for every occurrence of a word, phrase, or pattern and swapping it for something else. It is the fast way to fix a repeated typo, rename a term across a document, strip out unwanted characters, or reformat data in bulk — all without editing each spot by hand. This online find and replace tool brings that power to the browser and adds case-insensitive matching, whole-word matching, and full regular-expression support so you can target exactly what you mean and nothing you don't.
How to find and replace text online
Bulk replacing text with ToolsSoup takes only a few seconds:
- Paste or type your text into the first box.
- Enter the word, phrase, or pattern to find, then the text to replace it with (leave the replace field empty to simply delete matches).
- Pick your options — plain text or regular expression, case-insensitive, whole word only, and replace all or replace first.
- Click Replace, check how many replacements were made, then click Copy result to grab the updated text.
Plain text vs. regular expression mode
Plain text mode matches your search exactly as typed and is perfect for everyday word and phrase swaps — special characters like dots, brackets, or asterisks are treated literally. Regular expression mode unlocks pattern matching: match digits, ranges, optional characters, line starts and ends, and more, and reuse the matched text in your replacement with backreferences such as $1 or named groups like $name. If your pattern is invalid, the tool shows a clear error instead of changing your text, so you can fix it and try again.
Case-insensitive, whole-word, and replace-first options
Turn on Case-insensitive to match a word regardless of upper or lower case. Turn on Whole word only to match a term as a standalone word and skip it when it appears inside a larger word, so replacing cat won't touch category. Replace all changes every occurrence at once, while unchecking it replaces only the first match — handy when you want to make a single targeted change. The replacement count tells you exactly how many edits were applied.
Why use this find and replace tool?
- Bulk replace every occurrence of a word or phrase in one click.
- Switch between plain-text and full regular-expression (regex) matching.
- Toggle case-insensitive and whole-word matching for precise targeting.
- Replace all matches or just the first occurrence.
- Use backreferences like $1 and named groups in regex replacements.
- See an exact count of how many replacements were made.
- Invalid patterns show a clear error instead of corrupting your text.
- Runs entirely in your browser — your text is never uploaded.
Frequently asked questions
How do I find and replace text online?
Paste your text into the first box, type the word or phrase to find and what to replace it with, then click Replace. Every matching occurrence is swapped at once and the result, along with a count of replacements made, is ready to copy.
Can I use regular expressions?
Yes. Switch the Mode option to Regular expression to search with patterns, character classes, anchors, and more. You can reuse the matched text in your replacement with backreferences such as $1, $2, or $name for named capture groups.
How do I replace only whole words?
Turn on Whole word only. The tool then matches your term only when it stands alone, so replacing cat will not change category or scatter. Combine it with Case-insensitive to match the word in any letter case.
Can I replace just the first match instead of all of them?
Yes. Uncheck Replace all to replace only the first occurrence. Leave it checked to bulk replace every match in the text at once.
How do I delete text instead of replacing it?
Leave the Replace with field empty. Every match is then removed from the text, which is an easy way to strip out an unwanted word, character, or pattern in bulk.
What happens if my regular expression is invalid?
The tool shows a clear, localized error message and leaves your text unchanged, so nothing is corrupted. Fix the pattern and click Replace again to continue.
Is my text private?
Absolutely. All searching and replacing happens locally in your browser using JavaScript, so the text you enter is never sent to or stored on any server.