Find and replace text

Find and replace words or phrases in any text, with options for case-sensitive and whole-word matching, or powerful regular expressions. See every match highlighted before you replace.

Runs in your browser. Nothing is uploaded.

Using regular expressions

Tick Regular expression for pattern matching. Use $1, $2 in the replacement for captured groups, and \n for a new line. Examples:

  • \s+ → a single space: collapse repeated spaces.
  • (\w+)@(\w+) → $1 at $2: rewrite email addresses.
  • ^\d+\.\s* → nothing: remove numbering from the start of lines.

Questions

Is my text uploaded?

No. Everything happens in your browser.

Can I undo a replacement?

Press Ctrl+Z (Cmd+Z on a Mac) in the text box, or paste your original text again.

More free tools