Find and Replace Text Online
Swap any word, phrase or regex pattern across long text — case-sensitive, whole-word and multi-pair replacements, 100% in your browser.
What is Find and Replace?
A find and replace tool scans a block of text for every occurrence of a word, phrase or pattern and swaps it with something else. It's the fastest way to make bulk edits — updating a year across an article, normalising spellings in a report, anonymising names in a log file, or refactoring repeated strings in code — without opening a heavy editor like Microsoft Word, Google Docs or VS Code.
Modes Explained
Four matching modes you can mix freely — pick what fits the edit.
| Mode | What it does | Best for |
|---|---|---|
| Plain | Literal text match, case-insensitive by default. | Updating a name, year or phrase. |
| Case-sensitive | Distinguishes "Apple" from "apple". | Brand names, code identifiers. |
| Whole word | Skips matches inside larger words. | Replacing "cat" without touching "category". |
| Regex | Full JavaScript regular expressions with capture groups. | Stripping HTML, reformatting dates, log parsing. |
How to Use
- Paste your text into the Input box on the left.
- Type the word or pattern in the Find field and the replacement in Replace with.
- Toggle case-sensitive, whole-word or regex if you need finer control.
- Click Add another pair to queue multiple replacements in one pass.
- Copy or download the cleaned result from the output pane.
Regex Quick Reference
\dAny digit (0–9)\wWord character (a–z, 0–9, _)\sWhitespace (space, tab, newline)[abc]Any of a, b, or c
+ / * / ?One+ / zero+ / optional.*?Lazy match (shortest)^ / $Start / end of line (multiline).Any character (dot-all for newline)
(abc)Capture group$1, $2Reference in Replace field(?:abc)Non-capturing group\bWord boundary
\.Literal dot\( \)Literal parentheses\n \tNewline / tab in Replace\\Literal backslash
Use Cases
Multi-Pair Replace
One-shot Ctrl+H is fine for a single edit but breaks down when you need ten swaps in sequence. With multi-pair mode you queue every find/replace as its own row and the tool applies them top-to-bottom in a single pass — useful for migrating terminology across a document or normalising mixed data exports.
Find and Replace vs Word, Google Docs & VS Code
| Feature | This tool | Word / Docs | VS Code |
|---|---|---|---|
| Opens instantly | Yes | No | No |
| Works on any device | Yes | Partial | No |
| Multi-pair pipelines | Yes | No | No |
| Regex with capture groups | Yes | Limited | Yes |
| No install / no account | Yes | No | No |
Tips & Pitfalls
- In plain mode the Find field is taken literally — special characters like
.and(need no escaping. - In regex mode, escape literal dots as
\.and parentheses as\(. - Use Whole word to avoid replacing fragments inside other words.
- Capture groups (
$1,$2) let you keep parts of the match in the replacement. - Quantifiers like
.*are greedy; use.*?for lazy matching.
Privacy & Performance
Every replacement runs in your browser using the native JavaScript engine. No text is uploaded, logged or stored. Long documents — entire articles, log files, exported CSVs — process instantly because the work never leaves your machine.