Find and Replace
Replace every occurrence of a word or pattern, with optional case sensitivity and regular expressions.
Processed on your device — no upload
How to find and replace
- Paste your text.
- Type what to find and what to replace it with.
- Check the match count, then copy the result.
How it works
In plain text mode, whatever you type in the find box is escaped before being used, so characters that mean something to a regular expression — dots, brackets, question marks — are matched literally. Searching for 3.50 finds exactly that, not “3” followed by any character followed by “50”.
Whole words only wraps your search in word boundaries. Without it, replacing cat with dog also turns category into dogegory — the classic way a bulk replace quietly ruins a document.
Regular expression mode passes your pattern straight through. That unlocks things plain search cannot express — \d{4} for any four digits, \s+$ for trailing whitespace — and lets the replacement refer back to captured groups with $1 and $2. An invalid pattern is reported rather than silently doing nothing.
The match count updates as you type, before you commit to anything. That number is the safety check: if you expected to change three occurrences and it says 340, something in your pattern is wrong.
A worked example
You have a 40-page policy document where the company name changed from Acme Ltd to Acme Group.
Paste it, find Acme Ltd, replace with Acme Group. The counter reads 27 matches. Copy the result — done in seconds, and nothing was uploaded, which for an internal policy document is the point.
Now a case where the naive approach fails. You want to change form to document. Type it and the counter reads 143 — far too many, because it is also matching format, information, performance and transform. Switch on whole words only and the count drops to 19, which is the real number.
A regex example. Your text has dates written as 2026-07-27 and you need 27/07/2026. Switch to regular expression mode, find (\d{4})-(\d{2})-(\d{2}), replace with $3/$2/$1. Every date flips, and the three captured groups are reordered by the replacement.
If your goal is tidying up stray spaces rather than changing words, the whitespace cleaner handles that in one step without needing a pattern.
Questions
Can I do a search and replace across the whole text?
Yes, and it runs as you type rather than on a button. Regular expressions are available when the thing you are matching is a pattern rather than a fixed string.
How do I substitute text across a whole document?
Type what to search for and what to replace it with. Bulk edit across thousands of lines happens as you type, and regular expressions are available for patterns rather than fixed words.
Is my text uploaded?
No. The replacement runs in your browser as you type, and this site has no backend. Contracts, policies and internal documents stay on your device.
Why did my replacement change words I did not mean to?
Because by default a match anywhere counts. Replacing "cat" also hits "category". Turn on "whole words only" to require word boundaries.
What does the match count tell me?
How many occurrences will be replaced, updated live before you copy anything. If the number is far from what you expected, your pattern is wrong.
Do I need to escape special characters?
Not in plain text mode — dots, brackets and question marks are escaped for you and matched literally. In regex mode they carry their usual meaning.
How do I use captured groups?
Wrap part of your regex in parentheses and refer to it as $1, $2 and so on in the replacement. Finding (\d{4})-(\d{2}) and replacing with $2/$1 swaps the two parts.
Does it replace every occurrence or just the first?
Every occurrence. There is no single-replace mode, since bulk replacement is the reason to use a tool like this.
What happens if my regex is invalid?
You get a clear message saying so, and the text is left untouched rather than partially processed.
Can I replace across line breaks?
In regex mode, yes — use \n in the pattern. Plain text mode matches within the text as typed, so a multi-line search string works if you paste it exactly.
Related Text tools
Word Counter
Words, characters, reading time
open$termiva case --to titleCase Converter
UPPER, lower, Title, camelCase
open$termiva unwrap --keep-paragraphsRemove Line Breaks
Unwrap text into flowing lines
open$termiva dedupe --ignore-caseRemove Duplicate Lines
Keep one of each line
open