Find and Replace Text
Replace every occurrence of a word or phrase in pasted text. Supports case-sensitive matching, whole words only, and regular expressions.
Runs in your browser — files never leave your device
Free · No sign-upOutputs Plain textHow to use Find & Replace
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.
This is especially handy when you don't have access to the original document in an editor — for example fixing a repeated typo or an outdated name across text that was pasted from an email, a chat log, or a plain text export.
Common ways people use this
- Correcting a repeated typo or outdated name across a block of pasted text
- Standardizing formatting like date styles or spacing patterns using a regex pattern
- Replacing a placeholder value across a template before sending it out
Tips for better results
- Check the live match count before clicking Replace — if the number looks higher or lower than expected, adjust whole-word or case-sensitivity settings before committing.
- For simple text swaps, leave regex mode off — it's only needed when you want to match a pattern rather than an exact phrase.
Frequently asked questions
How do I avoid replacing partial words?
Can I use regular expressions?
Can I preview how many changes will happen?
What happens if my regex pattern is invalid?
Is the replacement case-sensitive by default?
Related tools
Other tools people commonly use alongside this one.
Case Converter
Fix text typed in the wrong case. Convert to UPPERCASE, lowercase, Title Case or Sentence case and copy the result.
Remove Extra Spaces
Clean up messy whitespace: collapse repeated spaces, trim the ends of lines, and remove empty lines — each cleanup individually selectable.
Remove Duplicates
Clean duplicate entries out of any list — emails, URLs, keywords, log lines. The first occurrence of each line is kept and the rest are removed.