Find and Replace Tool with Regex Support

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

Runs in your browser. No data leaves your device.

Frequently Asked Questions

How does Find and Replace work?

In plain text mode, the tool uses String.replaceAll() to swap every occurrence of the search string with the replacement. In regex mode, it compiles your search pattern into a JavaScript RegExp object with the global flag and applies String.replace() with capture group support, so you can use $1, $2 backreferences in the replacement string.

Does it support regular expressions?

Yes. Toggle regex mode to use full JavaScript regular expression syntax for complex search patterns. This lets you match patterns like email addresses, phone numbers, or repeated words.

Can I replace all occurrences at once?

Yes. By default, all matches are replaced in one operation. You can see how many matches were found before confirming the replacement.

Is it case-sensitive?

By default, yes. You can toggle case-insensitive mode to match regardless of uppercase or lowercase letters.