Find and Replace
Find and replace text with regex, case sensitivity, and whole-word matching. Bulk edits in your browser — nothing uploaded.
Preview matches
Run a replace to see the result
Try an example
How to use Find and Replace
Four steps to search, replace, and export text in your browser.
- 1
Paste your source text
Add the document, log file, or code snippet you want to edit in the input panel.
- 2
Enter find and replace
Type what to search for and what to insert. Toggle regex, case, or whole-word options as needed.
- 3
Preview matches
Watch the live match count. Expand “Preview matches” to see highlights before replacing.
- 4
Replace and copy
Use Replace First to verify, then Replace All for the full result. Copy or download from output.
What is Find and Replace?
Find and replace is one of the oldest features in text editing — born in early word processors and command-line editors, then refined over decades into the indispensable workflow developers, writers, and data analysts use every day. What started as literal string search grew into case options, whole-word matching, and eventually regular expressions for patterns that describe whole classes of text at once.
SuperTextTools runs find and replace entirely in your browser. Paste source text, define what to find and what to insert, preview matches, then replace one occurrence or every match — with optional regex, case sensitivity, and whole-word boundaries.
Common use cases
- Renaming in code — change a variable name without touching similar identifiers like
userIdwhen you only meanuser(whole-word mode helps). - Fixing typos — replace every teh with the across a draft in one click.
- Bulk data edits — CSV columns, config files, exported JSON, log files.
- Anonymizing data — strip emails, phone numbers, or names with regex capture groups.
- Reformatting — swap date formats, change separators, normalize whitespace.
- Cleaning imports — remove timestamps, headers, or boilerplate from scraped text.
The power of regex in find/replace
Literal find/replace is enough for fixed strings. Regex mode matches variable text: any digit, any URL, any email shape. Capture groups let you restructure matches — turn Last, First into First Last, or mask usernames while keeping domains. Anchors like ^ and $ target line starts and ends when multiline mode is on.
Tips for power users
- Start in literal mode; switch to regex when patterns get complex.
- Use Replace First on a sample before Replace All on the full document.
- Expand Preview matches to verify highlights before committing.
- Save regex patterns you reuse — they transfer across projects.
Frequently asked questions
Does this work with regular expressions?
$1, $2 in the replacement to reference capture groups.What's "Whole word only"?
cat matches only the word cat — not concatenate or catalog. Boundaries use \b (word chars vs non-word chars). Punctuation-only searches behave oddly with whole-word mode.Why doesn't my replacement work with special characters?
$ is special ($1 = capture group). For a literal $, use $$. In non-regex mode, $ is treated literally (we escape it for you).Can I use this on huge files (10MB+)?
ripgrep is often faster.Does it support multiline patterns?
m flag so ^ and $ match line boundaries. Dotall (s) makes . match newlines.Is my text sent to a server?
Related tools
More free tools — all run in your browser.
Regex Tester
Test regular expressions with live match highlighting.
Remove Duplicates
Remove duplicate lines from text instantly.
Case Converter
Convert text between uppercase, lowercase, camelCase, and more.
Split Text
Split text by delimiter, regex, word, or fixed length.
Word Counter
Count words, characters, sentences, and reading time.