Find and Replace
Find and replace text, with whole-word and regex support — privately, right in your browser.
How it works
Paste your text, type what to find and what to replace it with, and the result updates live. By default the search is a plain, case-insensitive substring match. "Case-sensitive" requires an exact case match, "Whole word only" makes sure the match doesn't sit inside a longer word, and "Use regular expression" switches the find field to a full JavaScript regular expression — including capture groups you can reference in the replace field with $1, $2, and so on.
If a regular expression is malformed, the tool shows the exact error message instead of crashing or silently leaving you with a mystery result — the output simply stays equal to your input until the pattern is fixed. Everything runs locally in your browser tab; nothing is uploaded anywhere.
FAQ
What happens if my regular expression is invalid?
An inline error message appears in place of a match count, and the output stays equal to your original input — invalid regex never crashes the page or silently mangles your text.
What does "Whole word only" do in non-regex mode?
It wraps your search term with word boundaries, so searching for "cat" matches "cat" and "the cat sat" but not the "cat" inside "category" or "concatenate".
Does the replacement text support regex capture groups like $1?
Yes, when "Use regular expression" is enabled — the replace field is passed straight to JavaScript's String.replace, so $1, $2 and other standard replacement patterns work exactly as they do in any regex-aware editor.
Is the match case-sensitive by default?
No — matching is case-insensitive unless you enable "Case-sensitive", regardless of whether you're using plain text or a regular expression.
Is my text uploaded anywhere?
No — the find and replace runs entirely in your browser tab. Nothing is sent to a server.