Plain and regex find/replace with preserve-case option. Free, private, runs in your browser.
100% private — your files never leave your browser. All processing happens locally on your device.
Your code editor has find-and-replace, but browser text tools don't. Paste a block into Notion, an email draft, or an AI response, and you're stuck with whatever the native control provides — which usually isn't much. This tool gives you full find-replace with regex, case-sensitivity, whole-word matching, and case-preserving replacements, all running locally.
Enable regex mode to use JavaScript's standard RegExp engine. Capture groups work: find `(\w+): (\w+)` and replace with `$2 is my $1` transforms `name: Alice` into `Alice is my name`. Named groups work too — use `(?<year>\d{4})` in the pattern and `$<year>` in the replacement. The tool catches invalid regex early and shows a clear error instead of crashing.
'Preserve case' replacement adopts the casing of each match. Searching 'hello' and replacing with 'world' produces `WORLD` for `HELLO`, `World` for `Hello`, and `world` for `hello`. This matches how serious code editors like VS Code and JetBrains handle the feature, and it's essential for refactoring identifiers or rewriting prose without manual case fixing.
Yes. Every replacement happens inside your browser's JavaScript engine. Your source text, your find pattern, and your replacement string are never transmitted to any server.
Yes. Enable regex mode, then reference captures with `$1`, `$2`, etc. Named groups work with `$<name>`. Your find pattern is a standard JavaScript RegExp.
In regex mode, enable the 'Multi-line' flag so `^` and `$` match line boundaries, and the 'Dotall' flag so `.` matches newlines.
In plain mode, the replacement adopts the casing of the match. Searching 'hello' and replacing with 'world': `HELLO` becomes `WORLD`, `Hello` becomes `World`, `hello` becomes `world`. Mixed-case matches pass through as the raw replacement.
The tool shows a friendly error (e.g., 'Unterminated character class') instead of failing silently. Your input text is never lost.