T-48 · Text tools
Find and Replace Text
Find and replace text online with plain text or regular expressions. Match case, whole words, $1 backreferences, a live match count and preview.
- Runs in your browser
- Nothing uploaded
- No account
Inserted exactly as typed.
2 matches · 2 replaced
About this instrument
What it does
Paste text, type what to find and what to put in its place, and the result updates as you type with a count of the matches. Plain-text search treats every character literally; switch on regular expressions to use patterns, capture groups and the m, s and u flags, and insert parts of each match with $1, $<name> or $&. Match case, whole word and replace-all options work in both modes.
How to use it
- Paste your text.
- Type the text or pattern to find and its replacement.
- Check the match count and preview, then copy the result.
FAQ
Common questions.
01How do I reuse part of the match in the replacement?
Turn on “Regular expression”, wrap the part in parentheses, and use $1 for the first group, $2 for the second, $<name> for a named group (?<name>…) or $& for the whole match.
02Can I replace only the first match?
Yes. Turn off “Replace all”. The count still shows every match so you can see how many are left.
03Is my text uploaded?
No. Searching and replacing happen entirely in your browser.
Related instruments
- T-11Regex TesterTest JavaScript regular expressions against sample text with live matches, capture groups and flags. Protected against runaway patterns.Local
- T-04Text CompareCompare two texts line by line and see what was added or removed. Runs locally in your browser, so nothing is uploaded.Local
- T-02Case ConverterConvert text to uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE in one click.Local