Find and Replace Text Online
Overview
Search, preview, and replace — with full visibility
Paste any text — emails, code, CSV files, documents — and instantly see every match highlighted. Choose to replace all at once or step through one by one. Regex support lets you match phone numbers, emails, and complex patterns; the live preview shows the result before you commit. Everything runs in your browser, so your content never leaves your device.
Guide
How to use
- 1 Paste your text
Click the Source text area and paste or type the content you want to modify. The character and word count updates instantly.
- 2 Type what to find
Enter the text you want to search for in the Find field. Every match is highlighted in the source pane and counted in real time.
- 3 Type the replacement
Fill in the Replace with field. The right-hand Result preview updates live so you can see exactly what the output will look like.
- 4 Replace all or step through
Click Replace all to update every match at once (with a confirmation step), or Replace one… to review each occurrence individually and choose Replace or Skip.
Reference
Regex quick reference
| Pattern | Matches |
|---|---|
| . | Any single character (except newline) |
| \d | Any digit (0–9) |
| \D | Any non-digit |
| \w | Word character (a–z, A–Z, 0–9, _) |
| \W | Non-word character |
| \s | Whitespace (space, tab, newline) |
| \S | Non-whitespace character |
| ^ | Start of a line (multiline mode) |
| $ | End of a line (multiline mode) |
| \b | Word boundary |
| * | Zero or more of the preceding |
| + | One or more of the preceding |
| ? | Zero or one of the preceding |
| {n,m} | Between n and m repetitions |
| (…) | Capture group — back-ref via $1, $2… |
| (?:…) | Non-capturing group |
| [abc] | Character class — any of a, b, c |
| [^abc] | Negated class — anything but a, b, c |
| a|b | Alternation — a or b |
Pitfalls
Common mistakes
-
Forgetting Case Sensitive
By default, Case Sensitive is ON. If your source mixes capitalization ("Color" and "color"), turn Case Sensitive OFF so every variant is matched.
-
Whole-word with hyphens
The \b word boundary only recognizes \w characters. Hyphenated tokens like "e-mail" split at the hyphen, so "mail" would match. Use Regex mode with a custom pattern for such cases.
-
Regex catastrophic backtracking
Patterns like (a+)+ on long input can freeze the browser. Simplify nested quantifiers and test on a small sample first.
-
Special chars in literal mode
In Literal mode, the Find field treats every character as plain text — no escaping needed. Switch to Regex mode only when you need metacharacters.
Frequently asked questions
Does this tool support regular expressions?
g, m, and u flags. Capture groups and back-references ($1, $2 …) work in the Replace field.Is my text uploaded to a server?
How does Preserve case work?
What is the maximum text length?
Can I undo a Replace All?
What does step-through mode do?
Why is my regex pattern not matching anything?
. or *), turn Use regex OFF and the tool will treat the Find text as plain text.