Find and Replace Text
Paste your text, type what to find and what to replace it with, and swap every match at once. Toggle case-sensitive, whole-word, or regex matching, watch the live match count, and copy the result in one tap. Your original text always stays put while the result updates beside it. Nothing ever leaves your browser.
What is Find and Replace Text?
Find and Replace Text is a fast, private way to swap one word, phrase, or pattern for another across an entire block of text. Paste anything — an essay, a code snippet, an exported spreadsheet column, a chat log — type what to find and what to put in its place, and every match is replaced at once. This find and replace tool shows you a live count of how many matches it changed, so you always know the edit did exactly what you expected. Because it runs entirely in your browser, it is well suited to confidential documents where you would rather not paste sensitive text into a server-backed editor.
How to use it
- Paste or type your text into the large box at the top.
- Type the term you want to find in the Find field.
- Type what it should become in the Replace with field — leave it empty to delete every match instead.
- Flip on Case sensitive, Whole word, or Regex if you need finer control.
- Watch the match count update live, then press Copy result to grab the finished text.
There is no Replace button to hunt for: the preview and the count update as you type, so the whole flow is paste, replace, copy, done.
Plain text, whole-word, and case options
By default the search is case-insensitive and matches anywhere, so typing
color changes Color, COLOR, and color
alike. Turn on Case sensitive to require an exact match, and
Whole word to replace a term only when it stands on its own —
searching for cat with whole-word on changes the word
cat but leaves category and concatenate untouched.
Regex mode and capture groups
Switch on Regex to treat the Find field as a regular
expression. That unlocks pattern matching the plain-text mode cannot do, and
it lets the replacement reuse captured pieces of each match with
$1, $2, and so on. A few worked examples:
- Find
\s+and replace with a single space to collapse runs of whitespace. - Find
(\d4)-(\d2)-(\d2)and replace with$3/$2/$1to turn 2026-06-20 into 20/06/2026. - Find
(\w+)@(\w+)and replace with$2.$1to reshape simple handles. - Find
^and replace with-to prefix every line (works with the multiline behavior of your input).
If a regex pattern is incomplete or invalid, the tool simply reports the error and leaves your text alone — it never silently mangles your input.
Examples
- Find teh, replace with the → fixes a typo everywhere in one pass.
- Find 2025, replace with 2026 → bumps a year across a whole template.
- Find Mr. (whole word off), replace with empty → removes every instance.
- Regex find colou?r, replace with shade → catches both spellings at once.
Common use cases
- Bulk-fixing a repeated typo or a misspelled name across a long document.
- Updating placeholders like names, dates, or URLs in a copied template.
- Cleaning exported data — collapsing double spaces, stripping prefixes, or reformatting dates with regex.
- Renaming a variable or string across a pasted code snippet with whole-word matching to avoid partial hits.
- Redacting a term by replacing every occurrence with a marker before you share text.
Why use this find and replace tool
Many quick replacers only do plain text and never tell you how many matches they changed. This one adds a live replacement count, a highlighted preview so you can see exactly what matched, and full regex with capture-group replacement — without an account, an upload, or a wait. And because the search runs locally, it pairs naturally with the rest of the toolkit: clean the case with the Case Converter, headline it with the Title Case Converter, tidy spacing with the Text Formatter, or flatten it with Remove Line Breaks.
Frequently asked questions
What is the difference between plain-text and regex mode?
Plain-text mode looks for the exact characters you type and replaces them, which is what most people need. Regex mode treats the find field as a regular expression, so you can match patterns (such as digits, repeated spaces, or anything between two markers) and reuse captured groups in the replacement with $1, $2, and so on.
How do capture groups work in the replacement?
Turn on regex mode and wrap part of your pattern in parentheses to capture it. In the replacement field, $1 inserts the first captured group, $2 the second, and so on. For example, finding (\w+)@(\w+) and replacing with $2 swaps the order around an at-sign.
Does whole-word matching change how a search works?
Yes. With whole-word matching on, the tool only replaces the term when it stands on its own, bounded by spaces or punctuation. Searching for cat will then match the word cat but leave category and concatenate untouched.
Is my text uploaded anywhere when I replace it?
No. Every search and replace runs locally in your browser, so the text you paste never leaves your device and nothing is logged on a server. That keeps confidential documents on your own machine.