Find and Replace Text
Replace every occurrence of a term or regular expression, live.Text ToolsFind and Replace
Replace every occurrence of a term, or a full regular expression, across a block of text. The match count updates as you type.
About this tool
A quick editor-grade replace without opening an editor. Plain terms are matched literally, or switch to regular expressions for patterns — the replacement count updates as you type so you always know what changed.
How to use the Find and Replace tool
- Enter the find term. Plain text, or a regular expression when the toggle is on.
- Enter the replacement. Literal text; regex capture references such as $1 are passed to String.replace.
- Copy the result. The count of replacements is shown above the output.
Supported formats
Input
- Plain text
- A JavaScript regular expression
Output
- Replaced text
- Replacement count
Inputs are validated before anything is processed. Invalid values and unsupported files are rejected with a clear error instead of failing silently.
Frequently asked questions
Is the find term literal by default?
Yes. Special characters are escaped automatically until you enable the regular-expression toggle.
Do capture groups work?
Yes in regex mode. Use $1, $2 and so on in the replacement, exactly as String.replace supports.
Is matching case-insensitive?
Not by default; tick Case-sensitive off to ignore letter case.
What if my regex is invalid?
The engine's error message appears instead of an empty result.
Privacy
Everything you enter stays in this browser tab. There is no upload endpoint for tool inputs, no account, and no server-side copy of your text or files. Results are produced locally and disappear when you close the page.
No account is required and no file is ever uploaded. See the privacy policy for details about analytics and the limited data this site stores.
Known limitations
- Replacement operates on the whole text as one string; per-line find-replace is not offered.
- Catastrophic regex patterns can make the tab unresponsive.
- There is no preview of individual matches inside the input.
Related tools
Other free tools from the same collection.