Find and Replace Text

Paste the text, type what to find and what to put in its place. Plain text mode treats every character literally, while regex mode supports groups such as $1 and

amp;. Choose all matches or only the first one, and check the match preview before you copy the result.

Find and Replace Text runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.

How to use it

  1. Paste the text and the search Paste the text into the Text box, then type what you want to find in Find. Leave Replace with empty to delete every match. The match count and previews update as you type.
  2. Set the options Plain text mode matches the exact characters you type. Tick Use regular expression for patterns, Ignore case, Whole words only or Replace every match. Turn off Replace every match to change only the first match.
  3. Check the matches Read the match count and the first 20 matches, each with the text around it. In regular expression mode, $1 reuses the first group,
amp; is the whole match, and $ is a dollar sign. Then copy the result.

Questions

Why does my regular expression show an error?

The pattern is not valid regular expression syntax, such as an unclosed bracket or a parenthesis that never closes. The message after the error says what the browser found. Turn off regular expression mode to search for those characters literally.

How long a text can I search, and why can a pattern be slow?

Text up to 500,000 characters can be searched. A poorly written regular expression can take a very long time on long text, because the search runs on your own device. If the page stalls, shorten the text or simplify the pattern.