Find and Replace Text

Replace every match in a text at once, as you type

Text after replacing

In a regular expression, $1, $2 and so on in the replacement insert what the groups in brackets found, and \n inserts a line break.

Everything happens in your browser: your text is never sent anywhere.

How to find and replace text

Step 1

Paste your text into the first field

Step 2

Type what to find and what to replace it with

Step 3

Copy the text after replacing

How find and replace works

Paste your text, type what to look for under “Find” and the new text under “Replace with”, and the changed text appears at once, with the number of replacements. By default, capital and small letters count as the same: tick “Match case” to replace Cat but not cat. “Whole words only” skips matches inside longer words, so that cat does not change category, and it works for words in any alphabet. Leave “Replace with” empty to delete every match.

For harder cases, tick “Regular expression”, and the search becomes a pattern: [0-9]+ finds every number, and ^ at the start of a pattern means the start of a line. The replacement can bring back what the groups in brackets found, and it can insert line breaks, as the hint under the fields explains. If the pattern is not valid, the tool says so and leaves the text unchanged. Everything happens in your browser, so the text is not sent anywhere.

Was AnyTextEditor useful to you?

Hello. We tried very hard to create a convenient website that we use ourselves. If you liked any of our tools and editors, add it to your bookmarks, because it will be useful to you more than once. And don't forget to share on social media. We will be better for you.