Find & Replace
Search and replace across any amount of text, with case-sensitive, whole-word and regex modes — your text never leaves your device.
Your files never leave your device.
How to use find & replace
- Paste your text into the top box.
- Type what to find and what to replace it with.
- Pick a mode if you need one: Case-sensitive matches exact capitalisation; Whole word avoids partial matches; Regex enables full pattern matching.
- Click Replace all. The result appears below with the exact number of replacements made. Copy it when you're happy.
Regex cheat sheet
Enable Regex and the find box accepts JavaScript regular expressions. A few patterns that cover most everyday jobs:
\s+$with an empty replacement — strip trailing whitespace from every line.\d+— match any run of digits (phone numbers, IDs, prices).(\w+)@(\w+\.\w+)replaced with$2— extract just the domain from a list of emails. Capture groups are referenced as$1,$2, …\n{2,}replaced with a single newline — collapse multiple blank lines.^(\d+)\.\s*replaced with nothing — remove numbered list prefixes.
If a pattern is invalid, the tool tells you instead of failing silently.
When to use it
Bulk renaming is the classic case: swap an old product name, brand spelling or variable name through a document in one pass. Writers use it to kill a favourite word they've overused; developers use it to migrate naming conventions; anyone cleaning data uses it to normalize separators, units or date formats. Compared with opening a desktop editor, pasting here is faster for one-off jobs — and unlike online alternatives, your text is never sent anywhere, which matters when the document is a contract, an unpublished draft or anything with personal data in it.
Whole-word mode deserves special mention: replacing cat without it also mangles category and concatenate. With it, only standalone cat instances change — the difference between a five-second fix and an hour of cleanup.
Safe by design
Your original text is never modified in place. Every run writes to a separate result box and reports the exact number of replacements first — so you can check that the count matches your expectation before copying anything back. Got zero matches? Usually it's capitalisation (try disabling Case-sensitive) or a partial-word issue (try disabling Whole word). Got too many? Enable Whole word, or anchor your regex with \b boundaries. Because everything runs locally, you can also experiment freely on sensitive documents — contracts, medical notes, client data — without anything being transmitted anywhere.
Frequently asked questions
Is my text uploaded anywhere?
No. Search and replace run entirely in your browser. Nothing is sent to a server, logged, or stored.
Does it support regular expressions?
Yes. Enable the Regex option to use full JavaScript regular expression syntax, including capture groups — reference them in the replacement with $1, $2 and so on.
How do I replace whole words only?
Enable the Whole word option. It matches word boundaries, so replacing cat will not touch category or concatenate.
Can I see how many replacements were made?
Yes. After each run the tool reports the exact number of replacements made.
Does it work offline?
Yes. Once the page has loaded, the tool works without an internet connection.