Find and replace text

Replace every occurrence of a word, or use a regular expression for trickier cases.

Original text
Result

Find and replace is a free tool that runs entirely in your browser, with no data ever sent to a server. Replace a word or a regular expression in a text.

Plain search or regular expression

Without the "regular expression" option, the search text is treated literally : every character counts for itself. With the option on, standard JavaScript regular expression syntax applies : \d+ for a run of digits, ^ and $ for the start and end of a line, and so on.

What this tool does not do

This tool only applies the transformation described above, with no spelling correction and no understanding of the text's meaning. A text of tens of thousands of lines is processed instantly ; beyond that, the only limit is your device's memory.

Frequently asked questions

Can I reuse the matched text in the replacement?

Yes, in regular expression mode : use groups (...) in the search and $1, $2 in the replacement.

Is my data sent to a server?

No : the text you type or paste is processed entirely in your browser, on your device. It is never transmitted to a server.

Do I need to create an account or install anything?

No : the tool works directly on this page, with no sign-up and no install.