Find and Replace
Find and replace text with optional case sensitivity, whole-word matching and full regular-expression support. See the match count before you commit, and copy or download the result.
How to use
- 1
Paste the source text
Drop the document, log or list into the input box.
- 2
Type what to find
Enter the text or regular expression to match. Toggle case-sensitive, whole-word or regex as needed.
- 3
Type the replacement
Enter what each match should be replaced with. Leave empty to delete matches.
- 4
Replace and copy
Click Replace all. The result appears in the output box with the match count, ready to copy or save.
Common use cases
- Swap outdated product names across a help document before publishing.
- Strip HTML tags from copied text using the regex <code><[^>]+></code> replaced with an empty string.
- Normalise capitalisation of a brand name across a press release.
- Bulk-replace placeholder tokens in a generated email template.
Limitations
- The replacement string is treated as a literal —
$1style back-references are not interpreted. To use back-references, write a regex pattern that captures the part you want to keep and craft your replacement accordingly. - Whole-word matching is disabled in regex mode because the pattern itself controls boundaries.
- Invalid regular expressions produce a friendly error and do not modify the text.
- Inputs larger than 1 MB are flagged but still processed on the main thread.
Frequently asked questions
Related tools
View allRegex Tester
Test JavaScript regular expressions against sample text.
Diff Checker
Compare two blocks of text and highlight the differences.
Case Converter
Convert text to UPPER, lower, Title, Sentence or camelCase.
Text Cleaner
Clean text by removing extra spaces, empty lines and special characters.