Find and Replace Text

Replace every occurrence of a word or pattern in a block of text. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Type what to find and what to put instead.
  2. Choose plain text or a regular expression, and whether case and whole words matter.
  3. Copy the result.

How it works

In plain mode, special characters are treated literally and the replacement is inserted exactly as typed. In regular-expression mode the pattern uses JavaScript syntax and the replacement may use $1, $2 for captured groups, $<name> for named groups, $& for the whole match and $$ for a dollar sign. All matches are replaced.

Matching runs in a background worker and is stopped after 2 seconds, which protects the page from patterns that backtrack catastrophically.

Examples

  • Find (\d+)-(\d+)-(\d+), replace $3/$2/$1 turns 2024-05-06 into 06/05/2024.

Limitations

  • Up to 2,000,000 characters of text.
  • JavaScript regular-expression syntax only; other languages differ in details.

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.