Text Finder & Replacer
Free online find and replace tool. Search for any word, phrase, or pattern across large documents and replace every occurrence instantly. Supports case-sensitive matching, whole word search, and full regular expressions — with live match highlighting. Everything runs in your browser — no signup, nothing uploaded.
Input & find/replace
Paste text, enter terms, replace$1, $2 for capture groups.
Result
Ready when you areYour replaced text will appear here
Paste some text on the left, enter a find term, and click Replace All.
What does this Text Finder & Replacer do?
This free online find and replace tool scans through your text and replaces every occurrence of a search term with a replacement term of your choice. It's the tool you reach for when you need to fix a repeated typo, rename a product across a catalogue, update every instance of a variable name in a code file, or clean up a spreadsheet export — without opening a text editor or writing a script.
Unlike a simple find-and-replace in a text editor, this tool gives you three powerful matching modes that stack together. Case-sensitive matching lets you target only the exact case you type — so Hello won't match hello. Whole word matching makes sure you only replace complete words — so replacing cat won't accidentally turn catalog into catalog. And regular expression mode unlocks pattern matching for tasks like collapsing whitespace, standardising date formats, or stripping HTML tags.
Every match is highlighted in a live preview panel before you commit to the replacement, so you can see exactly what's going to change. Everything runs locally in your browser — your text never leaves your device, and there's no signup or usage limit.
How to find and replace text
- Paste your text. Drop the document, code file, or list you want to search into the input box on the left.
- Enter the find term. Type the word, phrase, or pattern you're looking for. Matches are highlighted instantly in the preview panel.
- Enter the replacement. Type what you want matches to become. Leave it empty to delete every match.
- Choose your options. Enable case-sensitive, whole word, or regex mode as needed. The preview updates live.
- Click Replace All. The result appears in the output panel with statistics on how many matches were replaced.
- Copy or download. Grab the result to your clipboard or save it as a
.txtfile.
Understanding the matching options
| Option | What it does | Example |
|---|---|---|
| Case-sensitive | Matches the exact case of your search term | Find Hello matches only Hello, not hello or HELLO |
| Whole words only | Only replaces complete words bounded by whitespace or punctuation | Find cat matches cat but not catalog or concatenate |
| Regular expression | Enables full RegEx pattern matching | Find \d+ matches every sequence of digits |
These options combine. Enabling both case-sensitive and whole-word gives you the strictest possible match — perfect for renaming a specific product or variable. Disabling both gives the loosest match — useful for bulk text cleanups where you don't care about case or word boundaries.
Regular expression cheat sheet
When regex mode is on, your find term is treated as a pattern rather than literal text. These are the most useful building blocks:
| Pattern | Matches |
|---|---|
\d | Any digit (0–9) |
\w | Any word character (a–z, A–Z, 0–9, underscore) |
\s | Any whitespace character (space, tab, newline) |
. | Any single character |
^ / $ | Start of line / end of line |
+ / * / ? | One or more / zero or more / zero or one |
[abc] | Any one of the characters inside the brackets |
(…) | Capture group — reference it in the replacement with $1, $2, etc. |
\b | Word boundary (start or end of a word) |
In the replacement field, capture groups are referenced with $1, $2, and so on. For example, to swap the day and month in a date like 12/05/2025, find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$2-$1 to get 2025-05-12.
Common use cases
- Renaming a product or brand — Case-sensitive ON, whole words ON. Rename every occurrence without touching similar-looking substrings.
- Fixing capitalisation errors — Case-sensitive OFF, whole words ON. Turn every
tehintotheregardless of case. - Removing extra spaces — Regex ON. Find
\s+, replace with a single space. - Standardising date formats — Regex ON. Find
(\d{2})/(\d{2})/(\d{4}), replace with$3-$2-$1. - Stripping HTML tags — Regex ON. Find
<.*?>, replace with nothing. - Bulk variable renaming in code — Case-sensitive ON, whole words ON. Rename
oldVartonewVaracross an entire file. - Cleaning spreadsheet exports — Regex ON. Strip currency symbols, trailing whitespace, or reference codes.
- Bulk email redaction — Regex ON. Find an email pattern and replace with
[redacted].
Before and after examples
Simple rename (case-sensitive, whole words)
Find: Apple → Replace: Orange
Input: Apple pie and apple sauce. Apply the Apple logo.
Output: Orange pie and apple sauce. Apply the Orange logo.
Case-insensitive fix (case-sensitive OFF, whole words ON)
Find: teh → Replace: the
Input: teh quick brown fox. TEH end.
Output: the quick brown fox. the end.
Regex: collapse whitespace
Find: \s+ → Replace:
Input: hello world again
Output: hello world again
Regex: swap date parts with capture groups
Find: (\d{2})/(\d{2})/(\d{4}) → Replace: $3-$2-$1
Input: Released on 12/05/2025.
Output: Released on 2025-05-12.
Frequently asked questions
\d+, \s+, or ^https?:// for advanced search and replace. Capture groups are supported with $1, $2, and so on in the replacement.