Find & Replace Online – Replace Text Instantly
Find and replace any word or phrase — all at once or one by one.
No matches found.
What Is an Online Find and Replace Tool?
An online find and replace tool lets you search any block of text for a specific word, phrase, or pattern and replace every occurrence with the text you specify — directly in your browser, without opening any application. It is one of the most fundamental text editing operations, built into editors like VS Code, Sublime Text, and Microsoft Word, but those require a file to be open. This free tool works on any raw text you paste in.
Beyond simple word substitution, this tool supports case-sensitive search and replace online, regular expression (regex) mode for pattern-based replacements, and a one-by-one replace mode so you can review each match before replacing.
How to Replace Text Online
- Paste your text into the large text area.
- Type the word or phrase you want to find in the Find field.
- Type the replacement text in the Replace with field. Leave it empty to delete all matches.
- Toggle Case sensitive if you need exact case matching.
- Toggle Use regex to match patterns instead of fixed strings.
- Use ← → to navigate between matches — the current match is highlighted.
- Click Replace to replace only the current match, or Skip to move to the next without replacing.
- Click Replace All to replace every match at once.
When to Replace One by One vs. Replace All
Replace All is the fastest option when every occurrence needs the same change. But sometimes the same word appears in different contexts — some you want to change, some you don't. The one-by-one mode lets you navigate each match individually, replace the ones you want, and skip the rest — exactly like the find/replace panel in VS Code, Sublime Text, Notepad++, or Microsoft Word.
Using Regex Find and Replace Online
Regular expression (regex) mode lets you match patterns rather than fixed strings. Practical examples:
- Find all numbers:
\d+ - Collapse extra whitespace:
\s+→ replace with a single space - Match email addresses:
[\w.-]+@[\w.-]+\.\w+ - Remove lines starting with a dash:
^-\s*→ replace with nothing - Swap word order using capture groups:
(\w+)\s(\w+)→$2 $1
Frequently Asked Questions
Can I do find and replace in Google Docs?
Google Docs has a built-in find and replace under Edit → Find and replace (Ctrl+H / Cmd+H). For more complex replacements — regex mode, one-by-one review, or working with raw text outside a Docs file — paste your text here and use this free online tool instead.
How do I find and replace text in Microsoft Word?
In Word, press Ctrl+H (Windows) or Cmd+H (Mac) to open the Find and Replace dialog. For content you want to process outside of Word — or when you need regex support that Word's standard dialog doesn't offer — paste your text here and use regex mode for advanced pattern-based replacements.
Can I find and replace text in Excel?
Excel's built-in find and replace (Ctrl+H) works on cell values. For plain text — like content from a CSV or data you want to clean before pasting back — use this online tool. It handles free-form text and regex patterns that Excel's built-in tool doesn't support.
How do I use regex find and replace online?
Enable the Use regex checkbox, then type a regular expression pattern in the Find field. For example, type \bcolou?r\b to match both "color" and "colour". The tool uses standard JavaScript regex syntax (ECMAScript). Invalid patterns are caught silently.
What is the keyboard shortcut for search and replace?
In most desktop editors: Ctrl+H on Windows/Linux or Cmd+H on Mac. This online tool doesn't require a keyboard shortcut — just type in the Find and Replace fields and results update as you type.
Can I replace with nothing to delete matches?
Yes. Leave the "Replace with" field empty and click Replace or Replace All. Every match will be deleted from the text.
Is my text private?
Completely. All processing happens in your browser. Nothing is sent to any server and nothing is stored.
What happens if my regex is invalid?
Invalid patterns are caught silently — nothing is replaced and no error disrupts your workflow.