Skip to content

Find and replace text

Replace strings or multiline text with case-insensitive search, regular expression capture groups, an output preview and copying.

Result

Enter text and a search term.

Plain mode uses replacement text literally. Regex mode supports JavaScript replacement tokens such as $1.

What you enter is processed only in this browser and is never sent to a server. How it works

A selected text segment replaced with new content

Find and replace throughout your text

Enter original text, a search term and replacement, then select Replace all. Leave the replacement empty to delete matches. The result shows the replacement count and complete output without overwriting your original input.

Plain search and regular expressions

Plain mode treats punctuation and dollar signs literally. Regex mode uses JavaScript global Unicode matching. Use $1 for a capture group and $& for the whole match; do not add / delimiters around your pattern. The ^ anchor means the start of the entire text; the multiline flag is not enabled.

Input and processing limits

The limits are 200,000 source characters, 1,000 search characters, 10,000 replacement characters and 2,000,000 output characters. Processing runs in a separate Worker and stops after 2 seconds. Shorten the input or simplify complex patterns. Editing inputs or options clears the previous result.

Sources

Frequently asked questions

Is newly inserted text searched again?

No. One global pass searches the original text. Replacing a with aa does not keep replacing the newly inserted letters.

Will it match regex behavior in other programs?

It uses JavaScript syntax, without Python-only or PCRE-only features. Backreferences and line boundaries can behave differently from your other program.

Last updated: