Find and replace text

Paste text, type what to find and what to replace it with. Supports whole words, case-insensitive matching and regular expressions.

Plain mode

The text in "Find" is matched literally, so characters like . or ? have no special meaning. Tick "Whole words only" to replace cat without touching category.

Regular expression mode

Use JavaScript regex syntax. Capture groups can be reused in the replacement as $1, $2, and $& inserts the whole match.

Find (regex)ReplaceEffect
(\d{3})-(\d{3})-(\d{4})($1) $2-$3555-123-4567 → (555) 123-4567
\s+$(empty)Remove trailing spaces on every line
^> Quote every line
(\w+)@(\w+)$1 at $2Obscure email addresses

The m flag is always on, so ^ and $ match at the start and end of each line.

Frequently asked questions

How do I replace with a line break?
Turn on Regular expression. Then \n in the Find box matches a line break, and \n in the Replace box inserts one (\t inserts a tab).
Is my text uploaded?
No. Matching and replacing run in your browser.