Find & Replace

Find and replace text with support for case sensitivity, whole word matching, and regular expressions.

Processed in your browser. No data is sent to our servers.

How to Find and Replace Text

Paste your text into the main input area, enter the search term in the Find field, and type the replacement in the Replace field. Click Replace All to perform the substitution. By default the search is case-insensitive, but you can toggle case sensitivity on for exact matching. Enable the Whole Word option to avoid partial matches inside longer words. For advanced users, the Regex mode lets you use full regular expression syntax including capture groups, character classes, and quantifiers. After replacement, the tool shows the modified text along with a count of how many substitutions were made. Everything runs in your browser so your content stays private.

Using Regular Expressions for Advanced Replacements

Regular expressions give you precise control over pattern matching. For example, use \b\d{3}-\d{4}\b to match phone number fragments, or \s+ to match any sequence of whitespace. In the Replace field you can reference capture groups with $1, $2, and so on. This makes it possible to reformat data, swap word order, strip HTML tags, normalize whitespace, and perform many other complex text transformations that plain find-and-replace cannot handle. If your regex contains a syntax error, the tool will display a clear error message rather than silently failing. Even in regex mode, the replacement count is shown so you can verify the expected number of changes were made.

Frequently Asked Questions

Whole word matching ensures the search term is matched only when it appears as a standalone word, not as part of a longer word. For example, searching for 'cat' with whole word enabled will not match 'category'.

Wrap parts of your pattern in parentheses to create capture groups. In the Replace field, use $1 for the first group, $2 for the second, and so on. For example, find '(\w+) (\w+)' and replace with '$2 $1' to swap two words.

There is no hard limit since processing happens in your browser. However, extremely large texts (several megabytes) may cause your browser to slow down.