Find and Replace Text
Find and replace text instantly. Search with plain text or regular expressions, replace the first match or all matches. Optional case-sensitive search. All processing in your browser — no data is sent to any server.
100% Client-Side Processing
Your text is processed entirely in your browser. No data is sent to any server.
Table of Contents
What is Find and Replace?
Find and replace (search and replace) lets you search for a string in your text and replace it with another string. You can replace the first match only or every occurrence. This tool supports both plain text and regular expressions, so you can do simple word swaps or pattern-based replacements (e.g. all numbers, all email addresses).
All processing happens in your browser. Your text is never sent to any server, so it is safe for sensitive or private content.
How it Works
- Enter the text to find in the "Find" field. Turn on "Use regular expression" if you want to use a regex pattern.
- Enter the replacement text in the "Replace with" field. For regex, you can use capture groups (e.g.
$1,$2) in the replacement. - Paste or type your input text in the input area.
- Set options: case sensitive, replace first only, and view the result. The output updates as you type.
- Copy the result with one click.
Options
- Case sensitive: When on, "Hello" and "hello" are different; when off, they match regardless of case.
- Use regular expression: When on, the Find field is treated as a JavaScript regex pattern. Invalid regex will show an error and the output will stay unchanged.
- Replace first occurrence only: When on, only the first match is replaced; when off, all matches are replaced.
Common Use Cases
- Bulk edits: Change a name, term, or phrase everywhere in a document.
- Code and config: Replace variable names, URLs, or environment-specific values.
- Data cleanup: Use regex to normalize dates, numbers, or formats (e.g. replace
\d3-\d2-\d4with a masked version). - Lists and CSV: Swap delimiters, fix repeated typos, or standardize abbreviations.
Frequently Asked Questions
Yes. When "Use regular expression" is on, you can use $1, $2, etc.
in the Replace field to insert the first, second, … capture group. Use $& for the full match.
No. All find-and-replace processing happens in your browser. Your text never leaves your device.
If "Use regular expression" is on and the Find pattern is invalid, an error message appears and the output stays equal to the input until the pattern is fixed.