Find and Replace online tool allows you to easily search for a letter, number, word, or phrase in your text document and substitute it with something else. It can be very useful when it comes to editing a huge chunk of text. This tool will automatically find all exact matches and replace them all in a single click of a button.
Find and replace online tool will automatically find and replace text from block of text that you entered exact match words in “find this” and “replace with” fields. It’s very useful when you editing large text to save time.
How to Find and Replace Text Online
Follow these steps to find and replace text online:
- Type or paste the block of text or simply upload text document by selecting file.
- Under “Find this” field, enter the text that you want to replace.
- Under “Replace with” field, enter the text that you want to replace with.
- Optional: For case sensitive select Match case or whole words as your choice.
- Click on Replace button. Then it will display the replaced text.
- To use this, click to copy or directly save by clicking on save as button in the file menu.
Find and Replace – Match Case
Enable Match Case option to exactly match your search query. It’s case sensitive that means “a” does not match the “A” in your text while replacing.
Example: Find and Replace Text online with Match Case.
Input: Text and Replace Text Online! Find: r Replace: Y Result: Text and Replace Text Online! Replaced: 0
Find and Replace – Whole Words
Enable Whole Words option to replace exact word that not preceded or followed by another string.
Example: Find and Replace Text online with Whole Words.
Input: The quick brown fox jumps over the lazy dog. Find: brow Replace: eyebrow Result: The quick brown fox jumps over the lazy dog. Replaced: 0
Find and Replace – Multiple Text Online with a Single Click
Use this extended find and replace multiple text online tool to replace multiple text in a single click.
How to Use Find and Replace Text Online
Find and Replace online is pretty straightforward to use.
- First, fill the “Find this” field with the word you want to change and the “Replace with” field with the new word you want to use.
- Next, paste your text in the text box. Alternatively, you can click the “Open File” button in the menu bar to directly load a file from your computer. See supported file extensions below.
- Lastly, click the “Replace All” button to start the process.
File types
The File Reader only supports opening plain text documents such as .txt
, .html/.htm
, .css
, .js
, .bat
, .nfo
and .md
. If you are working on a rich text editor, you can just directly copy your content in the text box.
Find and Replace Regular Expressions
Find and Replace gives you an option to use Regular Expressions to perform a more complex type of search and replace operations. Below is a list of basic examples that you can use as a cheat sheet.
Basic Examples
Using the or condition to search for multiple words.
- Input:
one two three
- Find:
one|two|three
and Replace with:number
- Result:
number number number
Switching the positions of the words.
- Input:
hello world
- Find:
(hello) (world)
and Replace with:$2 $1
- Result:
world hello
Wrapping a word.
- Input:
This is a sample text
- Find:
(sample)
and Replace with:<b>$1</b>
- Result:
This is a <b>sample</b> text
Replace only if followed by certain characters. For negation, simply replace =
with !
.
- Input:
upgrade
- Find:
up(?=grade)
and Replace with:down
- Result:
downgrade
- It will not match the “up” in the word “update” since it is not followed by “grade”.
Matching an unknown number.
- Input:
width="356"
- Find:
width="([0-9]+)"
and Replace with:width="100%"
- Result:
width="100%"
Special characters
You must place a backslash ‘\’ before a special character. The tool will generate an error message that says: “SyntaxError: Invalid regular expression: / . ^ $ * + ? \ [ ( { |/: Unterminated character class” if you have forgotten to escape the backslash .
For example, to match Where? use Where\? – the \? is taken to mean ?.
- Input:
Where?
- Find:
Where\?
and Replace with:What?
- Result:
What?
Features of Find and Replace Text Online tool
- Easily upload Text file from your device.
- Use Match case option for case sensitive to exactly match your search query.
- Use whole words option to replace match, if it’s not followed by another string.
- you can also find and replace text using regular expressions.
- This find and replace online tool works locally in your browser, which means no data is uploaded to the server.
- You can easily save replace text file by selecting save as option that present under file options.
Related Tools
Diff Checker – Compare and Check difference between 2 text files and save output locally.
Remove Line Breaks – Remove line breaks online from text or word document but preserve paragraph breaks. You can also replace line breaks with a character of your choice with this tool.
Add Line Breaks – Add line breaks online with specific word/ character or after an occurrence of a letter/word.
Text Cleaner – Clean Text online with additional features of find replace text online and all in one text formatter.
Word Counter – Use free online word counter tool to count Words, Characters, Characters without spaces, Sentences, Paragraphs and total lines of your text in real time.
Convert Case – Case converter online tool to Change text case to upper case, lower case, capital case, sentence case and title case.
Last Updated on November 23, 2024