Find and Replace Text
Replace text with plain strings or regular expressions.
Input
This tool runs entirely in your browser. The data you paste or load is never uploaded.
Result
Enter your input, then run the tool.
About this tool
Replaces every occurrence of a search term, with optional whole-word matching, case insensitivity and regular expression mode with $1 group references. The result reports how many replacements were made.
How to use it
- Paste the text, type the search term and the replacement.
- Enable regex mode if you need patterns or capture groups.
- Run the replacement and copy the result.
Frequently asked questions
How do I reference a capture group?
In regex mode use $1, $2 and so on. Escape a literal dollar sign as $$.
Why were no replacements made?
Check case sensitivity and whole-word matching, and confirm the search term is not a regex with special characters that need escaping.
Keep going
Related tools
Regex Tester
Test patterns against sample text with live match highlighting.
Remove Extra Spaces
Collapse double spaces, stray tabs and blank lines.
Remove Duplicate Lines
Deduplicate a list while keeping the original order.
Word Counter
Count words, lines and paragraphs while you type.
Character Counter
Count characters with and without spaces, plus byte size.
Sentence Counter
Count sentences and average sentence length.