Find and Replace
Find and replace text with support for case-sensitive, whole-word, and regex matching. See match counts instantly.
About Find and Replace
The Find and Replace tool gives you a fast, flexible way to search for text patterns and substitute them across your content. Whether you need a simple word swap or a complex regex transformation, everything runs instantly in your browser with no software to install.
Multiple matching modes
Start with a basic case-insensitive search and refine from there. Enable case-sensitive matching to distinguish between uppercase and lowercase characters. Turn on whole-word mode to avoid partial matches inside longer words. Switch to regex mode for full regular expression support, including character classes, quantifiers, alternation, and capture groups.
Live match counting
As you type your search term, the tool immediately shows how many matches exist in the text. This gives you confidence before you run a replacement - you can see exactly how many occurrences will be affected and verify the count looks correct.
Non-destructive workflow
Your original text stays intact in the input area. Replacements produce a separate output that you can review, copy, or discard. If the result is not what you expected, adjust the search or replacement string and try again.
This tool is ideal for cleaning up data exports, reformatting log files, normalizing text before import, or making bulk edits to any document.
Frequently Asked Questions
Does the tool support regular expressions?
Yes. Toggle regex mode on and your search pattern will be treated as a JavaScript regular expression. This lets you use patterns like '\d+' to match numbers, '\bword\b' for whole-word boundaries, and capture groups with parentheses for advanced replacements using $1, $2 syntax.
What does the whole-word option do?
When whole-word matching is enabled, the search term only matches when it appears as a complete word - not as part of a longer word. Searching for 'cat' will match 'cat' but not 'category' or 'concatenate'. This is implemented using word-boundary markers.
Can I undo a replacement?
The tool does not modify your original text in place. Your source text stays in the input field, and the result of the replacement appears separately. You can adjust your find and replace terms and run the operation again without losing the original.
Is there a limit on the amount of text I can process?
The tool runs entirely in your browser, so there is no server-imposed limit. Performance depends on your device, but it handles documents of tens of thousands of words without issue. Very large texts with complex regex patterns may take a moment to process.