How to use this tool
- 1Enter the term or pattern you want to find in the Find field and the new text in Replace With.
- 2Paste or type your content into the Source Text box on the left.
- 3Enable Case-sensitive, Whole word, or Use regular expression checkboxes to control how matches are selected.
- 4Check the Matches replaced counter and Updated Text box on the right, then click Copy to copy your updated text.
What this tool does
Find and Replace Text performs live global replacements inside your browser and protects you from accidental partial matches or invalid regex syntax:
- Replaces all matching instances globally across the entire source text in real time and displays the exact count of matches replaced.
- Case-sensitive toggle controls whether uppercase and lowercase letters must match identically.
- Whole word wraps the pattern in word boundaries (\b) so short words do not overwrite substrings inside longer words.
- Use regular expression unlocks JavaScript RegExp search syntax with clear inline error reporting if a pattern has unclosed brackets or invalid syntax.
- Apply Output as New Input lets you chain several replacements one after another without re-pasting.
Example
The quick brown fox jumps over the lazy fox. Another FOX appeared.
The quick brown cat jumps over the lazy cat. Another cat appeared. Matches replaced: 3
With Case-sensitive unchecked, both lowercase "fox" and uppercase "FOX" match, while turning Case-sensitive on replaces only the two lowercase matches.
Frequently asked questions
How do I replace a word everywhere at once?
Paste your text into Source Text and type the word into the Find field and its new value into Replace With. The tool applies a global match automatically so every occurrence in the text updates at once.
What does whole-word matching mean?
Whole-word matching adds word boundaries around your search term. For example, replacing "cat" with Whole word enabled changes "cat" but skips words containing those letters inside them such as "catalog" or "scatter".
Can I use regular expressions in Find and Replace Text?
Yes. Check Use regular expression to write JavaScript regex patterns in the Find box and use replacement references like $1 in Replace With. Invalid regex patterns display a clear error banner.
How can I run multiple different replacements on the same text?
After your first swap, click Apply Output as New Input to move the updated result back into Source Text, then enter your next Find and Replace values.
Related tools
View All ToolsRegex Tester
Test JavaScript regular expressions live with inline match highlighting, g/i/m/s/u flags, match index listing, and capture groups.
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case in your browser.
Remove Extra Spaces
Remove double spaces, leading and trailing spaces, tabs, non-breaking spaces, and blank lines from text in one click.