Find & Replace

Replace every occurrence of a word, phrase or pattern in your text. Regular expressions are optional.

Find and replace

Your text is never uploaded.

Browser-based

How to use it

  1. Paste your text and type what to find.
  2. Enter the replacement. Leave it empty to delete matches.
  3. Copy the result. The match count shows how many replacements were made.

Examples

  • Find colour, replace with color.
  • Regex: find (\d+)-(\d+), replace with $2-$1 to swap two numbers.
  • Regex: find \s+$ to remove trailing spaces on every line.

In regular-expression mode, $1, $2 and $& refer to captured groups and the whole match. Without it, the replacement is inserted exactly as typed.