How to find and replace text
- Paste or type your content into the Your text box.
- Type what you are looking for in the Find box and what should take its place in Replace with.
- Optionally tick Case insensitive to ignore upper and lower case, or Use regex for pattern matching.
- Click Replace all. The Result box fills in and the tool tells you how many replacements were made.
- Press Copy to put the cleaned-up text on your clipboard.
Literal search vs. regular expressions
By default the tool searches for your text literally, so characters like a dot, a dollar sign or a bracket are matched exactly as typed — you do not have to worry about escaping anything. Flip onUse regex and the Find box becomes a JavaScript regular expression instead, unlocking powerful patterns: \d+ to match runs of digits, \s+ to collapse whitespace, anchors like ^ and $, character classes such as [A-Za-z], and alternation with the pipe. In regex mode the Replace with box also understands backreferences, so$1 and $2 insert whatever your capture groups matched. If you type an invalid pattern, the tool catches the error and shows a clear message instead of breaking.
Why a replacement count helps
Every run shows exactly how many matches were swapped. That number is a quick sanity check: if you expected to fix one stray word but the tool reports fifty replacements, you know your pattern was too broad before you copy the result anywhere. Because every occurrence is replaced at once, there is no need to click through matches one at a time — and your original text stays untouched in the input box so you can adjust the pattern and try again.
Is it private?
Yes — the entire find-and-replace happens in your browser with plain JavaScript. Your text is never sent to a server, stored or logged, and nobody else can see it. Once the page has loaded you can even use the tool completely offline.
Frequently asked questions
Does it upload my text?
No, everything runs locally in your browser and nothing is transmitted or saved.
Can I use capture groups in the replacement?
Yes. Turn on Use regex, wrap part of your pattern in parentheses, and reference it in Replace with using $1, $2 and so on.
What happens if my regex is invalid?
The tool wraps pattern compilation in a safety check and shows an error message describing the problem, leaving your text unchanged.
Related: clean up messy text · change text case · count words & characters