Find and replace

Find any word, phrase or pattern and replace it instantly. Supports regex and case sensitive matching.

Input 0 characters
Output
Send output to:

Ctrl + Enter replace all  |  Ctrl + Shift + C copy output

How to use find and replace

Paste your text into the input box on the left. Type the word or phrase you want to find in the Find field. Type what you want to replace it with in the Replace with field — or leave it empty to simply delete every match. Click Replace all and the result appears instantly in the output panel. The match count below the Find field shows how many occurrences were found before you replace.

Use the keyboard shortcut Ctrl+Enter to trigger the replacement without reaching for the mouse — useful when you are working through a document quickly.

Case sensitive matching

By default the tool matches regardless of capitalization — searching for "apple" will find "Apple", "APPLE" and "apple". Enable case sensitive mode when you need to match a specific capitalization. This is particularly useful when working with code where variable names are case sensitive, or when you want to replace only one form of a word without affecting others.

Whole word matching

Whole word mode wraps your search term in word boundary markers so it only matches complete words. Searching for "cat" with whole word enabled will find "cat" and "Cat" but not "catch", "concatenate", or "category". This prevents accidental replacements where your search term appears as part of a longer unrelated word.

Using regular expressions

Enable Regex mode to use regular expression patterns in the Find field. This unlocks powerful pattern matching — use \d+ to match any sequence of digits, \s+ to match whitespace, [aeiou] to match any vowel, or .+ to match any sequence of characters. The Replace field supports backreferences — use $1 to insert the first captured group from your pattern into the replacement. For example find (\w+)\s(\w+) and replace with $2 $1 to swap the order of two words.

Deleting text with find and replace

Leave the Replace with field completely empty and click Replace all to delete every occurrence of your search term. This is the fastest way to remove a specific word, phrase, or pattern from a large block of text without manually editing each occurrence.

Frequently asked questions

How do I find and replace text online?

Paste your text into the input box, type the word or phrase to find, type the replacement, and click Replace all. All matching occurrences are replaced instantly.

Does this tool support regular expressions?

Yes. Enable the Regex option to use regular expression patterns in the find field. The replace field also supports backreferences like $1 and $2 for captured groups.

Can I do a case sensitive find and replace?

Yes. By default matching is case insensitive. Enable Case sensitive to only match the exact capitalization you typed in the Find field.

What does whole word matching do?

Whole word matching only replaces the search term when it appears as a complete word. Searching for "cat" will not match "catch" or "concatenate" — only standalone "cat".

Can I replace text with nothing to delete it?

Yes. Leave the Replace field empty and click Replace all. Every match will be deleted from the text, removing all occurrences of the search term.