Find and replace text online
Find and replace text with plain search or regular expressions, with case sensitivity, whole words and $1 capture groups. See every match highlighted.
Plain search: the text is matched literally.
Find and replace text with plain search or regular expressions, with case sensitivity, whole words and $1 capture groups. See every match highlighted.
Plain search: the text is matched literally.
This free find and replace tool swaps words or phrases in any text, using either literal search or JavaScript regular expressions with capture groups. Matches are highlighted and counted as you type, so it suits writers, editors and developers alike. There is no sign-up, and your text is processed in your browser, never sent anywhere.
Yes. Tick Regular expression to use JavaScript regex syntax. In the replacement, $1 and $2 insert groups, $& the whole match, and \n a new line.
It matches the search term only when it is not part of a longer word. Word boundaries cover Latin and Cyrillic letters, digits, underscores and apostrophes.
No. Searching and replacing happen locally in your browser, so your text stays on your device.
Yes. After you click Apply to text, the Undo button restores the previous version; several steps can be undone in a row.