Loading tool…
How to Find and Replace Text
Find & Replace lets you search for text patterns and replace them — with optional regular expression support for powerful batch transformations.
- Paste your text into the editor.
- Enter a search term (or regex pattern) and the replacement string.
- Click Replace All to transform every match, or step through matches one at a time.
Plain Text vs. Regex Search
Plain-text search matches the literal characters you type. Regular expression (regex) search matches patterns: \d+ for numbers, [A-Z] for uppercase letters, .* for anything. Regex is invaluable for batch-cleaning data — for example replacing all phone number formats with a standardized one, or stripping HTML tags from text.
Why Use Our Find & Replace?
- Regex support — use full JavaScript regular expressions for advanced patterns.
- Case-sensitive toggle — control whether 'Hello' matches 'hello'.
- Live match count — see how many occurrences were found before replacing.
- Client-side only — your text never touches a server.
Frequently Asked Questions
How do I use regex in the search?
Toggle the regex mode on, then enter a JavaScript-compatible regular expression. For example, \b\d{3}-\d{4}\b matches US phone number suffixes.
Can I use capture groups in the replacement?
Yes. In regex mode, use $1, $2, etc. in the replacement string to reference captured groups from the search pattern.
Is there a size limit for the text?
No hard limit. The tool handles large text files efficiently because it runs in your browser's JavaScript engine.
Is my text stored?
No. Everything stays in your browser and is discarded when you close the tab.