Text Tools
Find and Replace Text
Replace text across large bodies of content with literal or regular-expression matching, case control, and a live result preview.
Replacements run entirely in your browser.
Literal or Regular Expression: Choosing Wrong Is the Classic Mistake
Characters like . ( [ * + have special meaning in regex, so searching for a literal "3.5" in regex mode can match "3x5", "3 5" and more. When the search text contains punctuation, prefer literal mode; switch to regex only when you need patterns ("any digit", "any whitespace run"). The second classic error is forgetting that replacements are applied to every match at once — test on a small sample before running it over a long document.
How the Transformation Works
- Paste the text you want to modify into the input area.
- Enter the search term and the replacement. Toggle case sensitivity or whole-word matching as needed.
- Switch to regex mode for patterns — capture groups can be referenced in the replacement with $1, $2, and so on.
- The result preview updates live; copy it or download it as a .txt file.
Example Input & Output
Common Questions
What regex flavor is supported?
The JavaScript (ECMAScript) regex flavor — the same one used by Node.js and all modern browsers.
Can I replace across multiple lines?
Yes. The search operates over the entire input, so multi-line patterns work when combined with the s flag or explicit newline handling.
Related Text Tools
Regex Tester & Debugger
Experiment with regular expressions, inspect every matched occurrence and named capture group, and test replacements with zero server transmission.
Text Diff Checker
Compare two blocks of text line by line with highlighted additions and removals — perfect for comparing drafts, config files, or code.
Remove Duplicate Lines
Strip duplicate lines from any list or text with optional case-insensitive comparison, whitespace trimming, and sorting.