Find and Replace Text
Browser processing — files never leave your device
Replace every occurrence of a word or phrase in pasted text. Supports case-sensitive matching, whole words only, and regular expressions.
Loading tool…
How to use this tool
- Paste the text to edit.
- Enter the search term and its replacement.
- Toggle case sensitivity, whole word, or regex as needed — the match count updates.
- Click Replace all and copy the result.
About this tool
This is the find-and-replace from your editor, available anywhere: paste text, enter what to find and what to replace it with, and see how many matches exist before committing. Whole-word matching prevents "cat" from changing "category"; regex mode unlocks pattern replacements like normalizing dates or stripping prefixes, with clear errors when a pattern is invalid.
Frequently asked questions
- How do I avoid replacing partial words?
- Enable "whole words only". Then replacing "art" won't touch "start" or "artist" — only standalone occurrences of "art".
- Can I use regular expressions?
- Yes. Switch on regex mode to use JavaScript regular expressions, including capture groups referenced as $1, $2 in the replacement.
- Can I preview how many changes will happen?
- The live match counter shows exactly how many occurrences the current settings find before you click Replace.
Related tools
Case ConverterFix text typed in the wrong case. Convert to UPPERCASE, lowercase, Title Case or Sentence case and copy the result.Remove Extra SpacesClean up messy whitespace: collapse repeated spaces, trim the ends of lines, and remove empty lines — each cleanup individually selectable.Remove DuplicatesClean duplicate entries out of any list — emails, URLs, keywords, log lines. The first occurrence of each line is kept and the rest are removed.