Find and Replace
Search any text for a word, phrase or regular expression, preview every match highlighted, and replace them all in one click.
How to find and replace text
- Paste your text into the Input box and type what to find. Matches are highlighted below as you type.
- Enter the replacement (leave it empty to delete the matches). Tick Match case, Whole words or Regular expression as needed.
- Click Replace all, then copy or download the Output. Use “Use output as input” to chain several replacements.
Features
Live highlighting
Every match is shown before you commit.
Regex with groups
Use patterns and $1, $2 back-references in the replacement.
Precise matching
Case-sensitive and whole-word options.
Private
Text is processed in your browser and never sent anywhere.
Frequently asked questions
How do I use capture groups?
Tick Regular expression, write a pattern with parentheses such as (\w+)@(\w+), and refer to the groups in the replacement with $1 and $2.
How do I replace line breaks or tabs?
Enable Regular expression and search for \n (line break) or \t (tab). To join all lines into one, find \n+ and replace with a space.
Why does “Whole words only” not match my term?
Whole-word mode requires the match to be surrounded by spaces, punctuation or the start/end of text. “cat” will not match inside “category”.
Is my text sent to a server?
No. Searching and replacing happen in your browser with JavaScript; nothing is uploaded.