Find & Replace
Replace every occurrence of a word, phrase or pattern in one click — with optional regex power for complex edits.
How it works
Type or paste your text, enter what to find and what to replace it with, then click "Replace all." By default the search is case-insensitive and treats your "Find" text as a literal string — special characters like . or ( are escaped automatically, so searching for "3.14" won't accidentally match "3x14". Tick "Match case" to require exact capitalization, or "Whole words only" to skip partial matches (searching "cat" won't touch "catalog"). Tick "Regular expression" to switch the Find field into full JavaScript regex syntax, with capture groups like $1 available in the replacement — handy for pattern-based edits like swapping every email's domain while keeping the name. Every match across the whole text is replaced in one pass, and the status line reports exactly how many occurrences were changed.
Frequently asked questions
Can I use capture groups?
Yes. Tick "Regular expression," then use $1, $2 and so on in the "Replace with" field to reference whatever each parenthesized group in your Find pattern captured. For example, finding (\w+)@example\.com and replacing with [email protected] swaps every email's domain while keeping the original name intact. Capture groups only work in regex mode — with it unchecked, the tool treats $ as a literal character in both the Find and Replace fields, so you can safely search for prices or template strings without triggering regex behavior.
What does "whole words only" do?
With "Whole words only" ticked, the tool wraps your search term in word-boundary markers so it only matches when the term stands on its own — replacing "cat" won't touch "catalog," "concatenate," or "bobcat." Without it, any substring match counts, which is usually what you want for fixing typos or renaming variables inside longer identifiers. This option works in both plain-text and regex mode: in regex mode, your entire pattern is wrapped in boundaries rather than just a plain word, so keep that in mind if your pattern already includes boundary anchors.
Is my text uploaded, and is it saved?
No to both. The replacement runs entirely in your browser using JavaScript's built-in regex engine — your text, search term and replacement never leave your device or touch a server, which makes it safe for confidential documents, source code or client data. Nothing is saved either: the text boxes reset the moment you refresh or navigate away, so treat this as a one-time scratch pad rather than a persistent editor. Copy your result with the "Copy result" button before you close the tab if you want to keep it.
Last updated: 2026-07-22