Find and replace text, with optional regex and case matching.
Processed locally in your browser.
How do you find and replace text in bulk?
In plain mode the search text is matched literally; in regex mode it is treated as a JavaScript regular expression, so $1, $2 group references work in the replacement. All matches are replaced and the count is shown. For example, find "cat", replace with "dog" turns "The cat sat" into "The dog sat". Everything runs in your browser.
Understanding your result
All matches are replaced and the number of replacements is shown. Regex mode unlocks patterns like \d+ for digits or \s+ for whitespace.
Formula and method
In plain mode the search text is matched literally. In regex mode it is treated as a JavaScript regular expression, so $1, $2 group references work in the replacement.
Worked example
Find “cat”, replace with “dog” turns “The cat sat” into “The dog sat”.
How to use this tool
- Paste your text.
- Enter what to find and what to replace it with.
- Toggle regex or case matching, then copy the result.
Common mistakes to avoid
- Forgetting to enable regex when using a pattern — special characters are otherwise treated literally.
About the Find & Replace
Replace every occurrence of a word or pattern in your text. Choose plain text or a regular expression, and whether to match case.
Who should use this tool
Writers, coders and anyone cleaning up or reformatting text in bulk.
Explore all Text and Writing tools
Frequently asked questions
Does it support capture groups?
Yes, in regex mode. Use $1, $2 in the replacement to reference captured groups.
Is my text uploaded?
No. Everything is processed locally in your browser.