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.

🔒 Runs in your browser

Plain search: the text is matched literally.

0
Matches
Matches in the text

About this tool

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.

How to use

  1. Paste your text into the Text field.
  2. Type what to find and what to replace it with.
  3. Tick Regular expression, Match case or Whole words if needed.
  4. Check the highlighted matches and the result preview.
  5. Copy the result, apply it to the text (with undo) or download it as .txt.

Frequently asked questions

Can I use regular expressions?

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.

What does the Whole words option do?

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.

Is my text sent to a server?

No. Searching and replacing happen locally in your browser, so your text stays on your device.

Can I undo a replacement?

Yes. After you click Apply to text, the Undo button restores the previous version; several steps can be undone in a row.