Find and replace
Find and replace is a text tool that substitutes any term inside a block of text. It supports plain or regular-expression search, case-sensitive and whole-word matching, and shows a live match count as you type. The tool runs in your browser.
Input text
Result
FIND & REPLACE
Dedicated pages
Mode-specific and use-case find and replace tools.
Find and replace text
Find and replace text in any document online. Supports plain search, case-sensitive, whole-word, and regex. Free, runs in your browser.
Regex find and replace
Find and replace text using regular expressions. Live match count, case-sensitive and whole-word options. Free, runs in your browser.
Replace text online
Replace words or phrases in any text online. Supports plain search and regex. See match count and instant results. Free, in-browser.
How to find and replace text
- Paste your text into the input area.
- Enter the text to find in the Find field.
- Enter the replacement text in the Replace with field.
- The result updates instantly. Enable Regex, Case sensitive, or Whole word options as needed.
Common uses
- Bulk editing repeated words or phrases in copied text before pasting elsewhere
- Using regex patterns to clean up log files, replace variable names, or reformat dates
- Working alongside a side-by-side comparison view to verify changes, or sorting and deduplicating the result afterward
Technical specification
- Algorithm or formula: Builds a JavaScript
RegExpfrom the find term. Plain mode escapes regex metacharacters; whole-word mode wraps the pattern in\bboundaries; replacement usesString.prototype.replacewith the global flag. - Browser API or library: Native JavaScript
RegExpand string methods. No external library. - Input limits: Bounded by browser memory. Match count is computed live via
matchAll. - Output: Replaced text plus a numeric match count. Invalid regex patterns surface the engine's error message.
- Known limitations: Catastrophic backtracking on a malicious regex can freeze the tab (no Web Worker isolation here). Multi-file replacement is out of scope.
Frequently asked questions
- Can I use regular expressions to find and replace?
- Yes. Enable Regex mode and the find field accepts a full JavaScript regular expression pattern. Capture groups from your pattern can be referenced in the replacement field using $1, $2, etc.
- Does the search distinguish uppercase and lowercase?
- By default the search is case-insensitive. Enable the Case sensitive toggle to match exact case. This applies in both plain and regex modes.
- How is the match count calculated?
- The match count shows the total number of occurrences of the find pattern in the input text. It updates live as you type in either the find field or the input area.
- Is my text sent to a server?
- All text processing runs locally in your browser using JavaScript. No text or data is sent to our servers.
Reviewed and tested May 26, 2026.