Find and Replace Text Online
Find and replace text online in any document, code snippet, or block of pasted text. Type what you want to find and what to replace it with, watch every match highlight instantly, then apply the change with one click — no Word, no spreadsheet, nothing to install.
Go beyond a plain word swap with regex patterns, case-sensitive and whole-word matching, and ready-made Quick Patterns for emails, URLs, phone numbers, and more. A live side-by-side preview shows your original text next to the result so you always see exactly what changes before you commit.
How to Find and Replace Text
Add your text
Paste or type your content into the Input Text panel, or use the Paste button to pull it straight from your clipboard.
Enter find and replace terms
Type what to search for in the Find field and the new text in the Replace field. Leave Replace empty to delete every match instead.
Refine with options
Toggle Aa for case-sensitive matching, Whole word, Regex, or Multiline, or open Quick Patterns for a ready-made search.
Preview, then replace
Check the highlighted matches and the Preview panel, then click Replace All to update your text and Copy Result to save it to your clipboard.
Features
Real-Time Highlighting
Every match lights up in the input the instant you type, so you see what will change before you do anything.
Regular Expression Support
Switch on Regex mode for character classes, quantifiers, anchors, and capture groups you can reuse as $1, $2, or $& in the replacement.
Quick Patterns Library
One click loads a ready-made pattern for emails, URLs, phone numbers, numbers, HTML tags, extra spaces, trimming, or empty lines.
Match Navigation
A counter shows your position (e.g. 3/15) and prev/next controls jump through each match while the text scrolls to keep up.
Multiple Search Options
Combine case sensitivity, whole-word matching, regex, and multiline mode to make your search as broad or as precise as you need.
Side-by-Side Preview
A two-panel layout puts your original text next to the result, with replacements highlighted so you compare before committing.
Keyboard Friendly
Jump to Find or Replace, step through matches, and toggle options without leaving the keyboard.
Search History
Your recent find and replace terms are saved so you can recall and reuse complex patterns from the history dropdown.
Settings Persistence
Your option choices — case, whole word, regex, and multiline — are remembered in your browser and restored on your next visit.
Frequently Asked Questions
How do I find and replace multiple words at once?
Turn on Regex mode and separate the words with a pipe, for example cat|dog|fish, to find any of them in a single pass. Type your replacement once and click Replace All to swap every match at the same time.
Is find and replace case sensitive?
By default it is not, so "Hello" also matches "hello". Toggle the Aa option (or press Alt+C) to make the search case sensitive and match exact uppercase and lowercase letters.
Can I use regular expressions to replace text?
Yes. Enable Regex mode to search with patterns instead of exact text. Use parentheses for capture groups, such as (\w+)@(\w+), then reference them in the replacement as $1, $2, and so on, or use $& to insert the whole match.
Does it replace whole words only?
Turn on the Whole word option (or press Alt+W) so a search for "cat" no longer matches inside "category". Leave it off to match partial words anywhere they appear.
How do I remove text instead of replacing it?
Leave the Replace field empty and click Replace All. Every matched piece of text is deleted from the result, which is handy for stripping HTML tags, extra spaces, or empty lines using the Quick Patterns.
Why isn't my search finding anything?
Check a few common causes: case sensitivity may be on, whole-word matching may exclude partial matches, regex mode may treat characters like . * + ? as special (escape them with a backslash to match literally), or the input panel may simply be empty.
Is there a limit to how much text I can process?
The tool handles large documents efficiently, though very long texts may cause a slight delay. To keep things responsive, it highlights and steps through up to 10,000 matches at a time.
Do my settings save between sessions?
Yes. Your search options — case sensitivity, whole word, regex, and multiline — are saved to your browser's local storage and restored automatically the next time you open the tool.
Is my text uploaded to a server?
No. All processing happens entirely in your browser, so your text never leaves your device. That makes it safe to find and replace inside confidential or sensitive content.
No comments yet. Be the first to comment!