Find and replace words, phrases, or patterns in any block of text. Supports plain text matching and regular expressions. All processing happens in your browser — nothing is sent to a server.
| Find pattern | Replace with | What it does |
|---|---|---|
| \s+ | (single space) | Collapse multiple spaces/tabs into one |
| ^\s+ | (empty) | Remove leading whitespace from every line |
| \s+$ | (empty) | Remove trailing whitespace from every line |
| ^\d+\.\s* | (empty) | Remove numbered list prefixes (1. 2. 3.) |
| \b(\w+)\b | [$1] | Wrap every word in square brackets |
| https?://\S+ | (empty) | Remove all URLs from text |
All occurrences are replaced in a single operation. The match count shows exactly how many replacements were made.
With whole word enabled, searching for "cat" will match the word "cat" but not "category" or "concatenate". It adds word boundary anchors (\b) around your search term automatically.
Yes. Use $1, $2, etc. in the Replace field to reference capture groups. For example, find (\w+)\s(\w+) and replace with $2 $1 to swap two words.
No. Everything runs in your browser using JavaScript. Your text never leaves your device.
This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.