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.
Assumptions and limitations
The tool substitutes text exactly as instructed and does not verify meaning, spelling or grammar, so a broad pattern can change more than intended. In regex mode an invalid or greedy pattern may match unexpectedly, and replacements apply to the whole input at once rather than one match at a time.
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.
Benefits
- Every match is replaced in one pass, with a count of how many changes were made.
- Regex mode unlocks patterns like digits or whitespace for advanced find-and-replace.
- Capture-group references such as $1 let you rearrange matched text in the replacement.
- It all runs in your browser, so your text is never uploaded.
Practical use cases
- Swapping a repeated term or name throughout a long document at once.
- Cleaning up messy data by collapsing extra spaces with a whitespace pattern.
- Reformatting entries using capture groups to reorder matched pieces of text.
- Correcting a consistent typo across an entire block of pasted content.
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.
How do I match with a regular expression instead of plain text?
Switch to regex mode and your search text is treated as a JavaScript regular expression, so patterns like \d+ match digits and \s+ matches whitespace. You can also use $1 and $2 in the replacement to reinsert captured groups. Plain mode instead matches your text literally, character for character.