Find & Replace
Search and replace text with regex support, case sensitivity, and whole word matching.
Examples
| Input | Result |
|---|---|
| Text: "the cat sat on the mat" / Find: "the" / Replace: "a" | a cat sat on a mat (2 replacements) |
| Text: "foo123bar456" / Find: "\d+" (regex) / Replace: "#" | foo#bar# (2 replacements) |
| Text: "Hello hello HELLO" / Find: "hello" (case insensitive) / Replace: "hi" | hi hi hi (3 replacements) |
About this tool
The find and replace tool lets you search for text and swap it with something else. It supports plain text search by default, with optional toggles for regex mode, case sensitivity, and whole word matching. The replacement count updates as you type so you can see how many matches were found.
Regex mode accepts standard JavaScript regular expression syntax, which is useful for pattern-based replacements like stripping numbers, reformatting dates, or cleaning up whitespace. Everything runs client-side in your browser, so your text is never uploaded anywhere.
Frequently asked questions
How do I use regex in find and replace?
Toggle the "Regex" switch, then enter a regular expression in the Find field. Standard JavaScript regex syntax is supported, including character classes like \d and quantifiers like + and *.
What does "Whole word" matching do?
When enabled, the search only matches the find string when it appears as a complete word, not as part of a longer word. For example, searching for "cat" would not match "catalog".
Is the search case sensitive by default?
No. By default the search is case insensitive. You can toggle the "Case sensitive" switch to match exact casing.
