Find and Replace
Find & replace text, with regex support.
100% private — runs in your browser, nothing is uploaded.
2 matches replaced.
How to use the Find and Replace
- 1Paste your text
Add the text you want to edit.
- 2Enter find & replace
Type the search term and the replacement.
- 3Set the options
Choose case-sensitivity, whole-word or regex as needed.
- 4Copy the result
Copy the updated text with every match replaced.
Examples
| Input | Output |
|---|---|
find 'cat' → 'dog' in 'the cat sat' | the dog sat |
regex (\d+) → #$1 in 'order 42' | order #42 |
Free online find and replace tool
This find and replace tool swaps every occurrence of a word or phrase in your text at once. It is the quickest way to rename a term across a document, fix a repeated typo, or reformat a list without opening a full editor.
Precision options for tricky replacements
Turn on case-sensitive matching when capitalisation matters, or whole word to avoid changing text inside longer words — so replacing art doesn't mangle start and party. A live count tells you exactly how many matches were changed, so nothing slips by unnoticed.
Power mode: regular expressions
For advanced edits, enable regular expression mode. Match patterns rather than fixed text, and pull captured groups into the replacement with $1, $2 — handy for reordering names, reformatting dates or wrapping matches. Everything runs locally, so your text never leaves your device.
Frequently Asked Questions
How do I find and replace text online?
Paste your text, type what to find and what to replace it with, and every match is swapped instantly. A running count shows how many replacements were made.
Can I replace all occurrences at once?
Yes. Every match is replaced in one pass — there is no click-through. That makes it ideal for cleaning up a list, a code snippet or a document in seconds.
What does 'whole word' do?
It only matches the term when it stands alone as a word. Searching for 'cat' with whole-word on will change 'cat' but leave 'category' and 'concatenate' untouched.
Does it support regular expressions?
Yes. Turn on regular expression mode to match patterns, and use $1, $2 in the replacement to reference captured groups — for example find (\w+)@(\w+) and replace with $2.$1.
Is it case-sensitive?
By default no, so 'The' and 'the' both match. Tick case-sensitive to require an exact case match.
Is my text private?
Yes. The replacement runs entirely in your browser, so nothing is uploaded and the tool works offline.