🔍 Find and Replace
Replace words across a whole document in one go – including powerful regex rewrites.
🔒 Runs in your browser · files never uploaded
0Matches
How to use the Find and Replace tool
- Paste your text.
- Enter what to find and what to replace it with; tick regex, whole word or case-sensitive if needed.
- Check the match count, then copy or download the result.
Frequently asked questions
How do I use capture groups like $1?
Tick Regex, wrap parts of the pattern in parentheses and reference them in the replacement. Example: find (\w+)@(\w+)\.com and replace with $2: $1 turns "ann@acme.com" into "acme: ann". Use $& for the whole match.
What does "whole word" do?
It only matches when the search term is not part of a longer word, so replacing "cat" will not touch "category" or "concat".
How do I replace line breaks?
Enable Regex and search for \n. For example, replace \n with ", " to turn a list into a comma-separated line.
Why does it say invalid regular expression?
Characters like ( [ . * + ? have special meaning in regex. Escape them with a backslash, or untick Regex to search for the literal text.