Find & Replace
Search and replace words or phrases in your text
What Is the Find and Replace Tool?
The Find and Replace tool searches through any text you paste in and swaps out every instance of a word or phrase with whatever replacement text you specify. It has a Case Sensitive option for situations where the casing of the match actually matters. Click Replace Text and the substitutions happen across the entire block at once, which is a lot faster than hunting through a long document manually.
Writers, developers, and editors use it most, but it comes up for anyone who needs to make a bulk text change outside of a word processor or code editor. Renaming something that appears thirty times in a pasted block, for example.
How to Use This Tool
- Paste or type your text into the input box above.
- Type the word or phrase you want to find into the Find field. Then type what you want to replace it with into the Replace field. Leave Replace empty if you just want to delete every instance of the search term.
- Toggle Case Sensitive on if you need the search to match exact casing. Leave it off to replace all variations regardless of how they are capitalized.
- Click Replace Text and every match in your text is updated at once.
- Copy the result using the Copy button, or select and copy manually. Use Clear to reset everything.
When Would You Use This?
Swapping out a name, term, or placeholder across a long piece of copied text before dropping it into a document, email, or content management system, when opening the original file is not an option.
Deleting a repeated word or phrase from a block of text by entering it in the Find field and leaving the Replace field blank, so it just disappears from all occurrences at once.
Cleaning up exported or pasted content that contains a specific string you need to change everywhere, like a URL, a product name, or a label that got renamed and now needs updating throughout.
Examples
Replacing a single word
Input : The cat sat on the mat. The cat looked happy.
Find : cat
Replace : dog
Output : The dog sat on the mat. The dog looked happy.
Deleting a word by leaving Replace empty
Input : This is a very very long sentence with very repeated words.
Find : very
Replace : (empty)
Output : This is a long sentence with repeated words.
Replacing a phrase
Input : Please contact our support team for help. Our support team is available Monday to Friday.
Find : support team
Replace : helpdesk
Output : Please contact our helpdesk for help. Our helpdesk is available Monday to Friday.
Case sensitive replacement
Input : We use Apple products. We also sell apple juice. An apple a day keeps the doctor away.
Find : Apple
Replace : Microsoft
Case Sensitive: On
Output : We use Microsoft products. We also sell apple juice. An apple a day keeps the doctor away.
Replacing a URL
Input : Visit https://old-domain.com for more info. See https://old-domain.com/contact for details.
Find : https://old-domain.com
Replace : https://new-domain.com
Output : Visit https://new-domain.com for more info. See https://new-domain.com/contact for details.
Frequently Asked Questions
How do I find and replace text online?
Paste your text into the input box above, type the word or phrase you want to find in the Find field, enter your replacement in the Replace field, and click Replace Text. All matches are updated in one step.
What is the difference between case sensitive and case insensitive search?
Case sensitive search only matches text that has the exact same capitalization as what you typed in the Find field. So searching for "apple" will not match "Apple" or "APPLE". Case insensitive search matches all of them regardless of how they are capitalised.
How do I delete a word everywhere in a text?
Type the word into the Find field and leave the Replace field completely empty. Click Replace Text and every instance of that word is removed from the output.
Can I replace a phrase, not just a single word?
Yes. The Find field accepts any string of text, including phrases with spaces and punctuation. Just type the full phrase you want to find and it will be matched exactly.
How do I do find and replace in a text file?
Paste the contents of your text file into the input box, use the Find and Replace fields to make your changes, click Replace Text, then copy the output and save it back to your file.
Does it replace all instances or just the first one?
It replaces every instance found in the text, not just the first. If the word or phrase appears twenty times, all twenty are updated in one click.
How do I find and replace in Word?
In Microsoft Word, use Ctrl+H (Windows) or Command+H (Mac) to open the Find and Replace dialog. For text that is outside of Word or not yet in a document, this online tool is a faster option.
How do I find and replace in Google Docs?
Use Ctrl+H or go to Edit and select Find and replace. For plain text that is not in a Google Doc, paste it into this tool instead.
Can I undo a replacement?
This tool does not have an undo button, so if you want to go back, you would need to paste your original text in again. Keep a copy of the original before running a replacement if the change is not straightforward.
What happens if the Find field is left empty?
Nothing will be replaced. The tool needs a search term to know what to look for in the text.