Text
Find and Replace
Replace all occurrences of text, with optional case-insensitive and regex matching.
Text
Copied
Replace every occurrence at once
This tool swaps every copy of a search term in your text for something else in one pass. Turn on ignore case to match no matter the capitalization, or switch on regex mode to match by pattern, with capture groups and character classes fully supported.
How to find and replace text
Paste your text, type what to find and what to replace it with, and the result updates live with a count of how many replacements were made. Use dollar-sign references like $1 in the replacement field when you work in regex mode.
Frequently asked questions
Can I use capture groups in regex mode?
Yes. Reference them in the replacement box with $1, $2 and so on to reuse parts of what you matched.
What happens if my regular expression is invalid?
The result box shows the error message so you can fix the pattern and carry on.