Find and Replace Text
Replace text online with case-insensitive and regex options, and see how many matches were replaced.
Find and replace text online
The Find and Replace tool swaps every occurrence of a word or phrase in your text with another, all at once. It supports case-insensitive matching and full regular expressions, and tells you how many matches it replaced. Everything runs in your browser, so your text stays private.
Why use it
Find and replace is one of the most useful text operations there is: fixing a repeated typo, renaming a term throughout a document, updating URLs or names in bulk, or reformatting data. Doing it by hand is slow and easy to miss; doing it here is instant and shows you exactly how many changes were made.
How to use it
- Paste your text.
- Enter what to find and what to replace it with.
- Optionally enable case-insensitive matching or regex, then copy the result.
Plain text vs regex
| Mode | Best for |
|---|---|
| Plain text | Simple word or phrase swaps |
| Regex | Patterns — digits, repeated spaces, capture groups |
In plain mode, your search is matched literally, so special characters are safe. Turn on regex for powerful pattern matching — for example, \d+ to match numbers, or capture groups with $1 in the replacement to reorder text.
Handy regex replacements
\s+→ a single space: collapse runs of whitespace.^→ a prefix: add text to the start of every line (with multiline).(\w+)@(\w+)with$2-$1: swap around a delimiter.
Private and free
All replacing happens in your browser — your text is never uploaded. The tool is completely free with no limits.
Frequently asked questions
Does it replace all occurrences?
Yes. Every match is replaced at once, and the tool shows how many were changed.
Can I use regular expressions?
Yes. Enable the regex option for pattern matching, including capture groups like $1 in the replacement.
Is matching case-sensitive?
By default yes, but you can enable case-insensitive matching with a checkbox.
Is my text private?
Yes. Everything runs in your browser and nothing is uploaded.