Find and Replace Text Online: Free Tool
Use this find and replace text tool to change words across a whole document at once. Paste text, type what to find and what to replace it with, and pick match case, whole words or regex. See the count of changes and copy the result.
Find and Replace
Replace words and phrases in bulk.
How to use the Find and Replace
- Paste your text.
- Enter the text to find and its replacement.
- Set the options (match case, whole words, regex).
- Copy the result. The count of replacements is shown.
How it works
The search is turned into a regular expression. Plain text is escaped so symbols are matched literally; whole-word mode adds word boundaries. In regex mode you can use groups and refer to them as $1, $2 in the replacement.
Example
Replacing "cat" with "dog" (ignore case) in "cat Cat cat" gives "dog dog dog": 3 replacements.
Frequently asked questions
Can I replace line breaks?
Yes. Tick Regular expression and find \n.
What does Whole words do?
It skips matches inside longer words, so "cat" will not change "catalog".
Is my text uploaded?
No. Everything runs in your browser.
See also: Word Counter, Case Converter.
Find and replace words
How to use it
- Paste your text.
- Enter find and replace values.
- Set match options.
- Copy the result.
More questions
Can I use regex?
Yes. Turn on regex mode to find patterns.
Can I do several swaps at once?
Yes. Add more rows to make several swaps at once.
Is my text uploaded?
No. Everything stays in your browser on your device.
Related tools: Regex Tester, Remove Line Breaks, Text Compare.