TextTools
Advertisement placeholder

Find and Replace in Text

Find and replace text online. Free tool for searching and replacing text with optional regex support.

How to Find and Replace Text

Paste your text, enter the search term and replacement text, then click "Replace All" or "Replace First." The match count updates automatically as you type.

Options

  • Regex — enables regular expression search patterns (e.g., \d+ matches numbers)
  • Case sensitive — distinguishes between uppercase and lowercase when matching
  • Replace First — only replaces the first occurrence
  • Replace All — replaces every occurrence

Regex Examples

  • \d+ — match any number
  • \b\w+@\w+\.\w+\b — match email-like patterns
  • ^.+$ — match entire lines
  • \s+ — match whitespace