Find and Replace Text
Find and replace words or patterns in your text with live preview.
Find and Replace Text Online
Replace every occurrence of a word or phrase in your text – with live preview and a match counter. It works like the find-and-replace in Word or VS Code, right in your browser.
Features
- Case-insensitive search to catch every variant of a word.
- Whole-word matching so you don't accidentally change words that contain your search term.
- Regular expressions with capture groups (
$1,$2) for advanced rewrites. - Special characters – use
\nfor new lines and\tfor tabs in the replacement. - Match counter showing how many replacements were made.
Examples
- Replace a product or brand name across a long article.
- Swap commas for semicolons in a data export.
- Turn a list into HTML by replacing
\nwith</li>\n<li>. - Reformat dates or phone numbers with a regex pattern.
Your text never leaves your device. To delete whole lines that contain a word, use Remove Lines Containing.
Frequently Asked Questions
How do I replace a word only when it's a whole word?
Keep 'Whole words only' enabled (it is on by default). Then replacing 'cat' changes 'cat' and 'Cat' but leaves 'catalog' and 'catnip' untouched.
Can I use regular expressions and capture groups?
Yes. Turn on 'Regular expression' and use $1, $2 … in the replacement to insert captured groups. For example, find (\d+)-(\d+)-(\d+) and replace with $3/$2/$1 to reformat dates.
How do I insert a line break in the replacement?
Type \n in the 'Replace with' field for a new line, or \t for a tab. This works in both normal and regex mode.