Replace every occurrence of a word, phrase or regular expression, with case sensitivity and multiline matching as options. Tells you how many replacements were made, and explains an invalid expression instead of failing silently.
Show calculation steps
Processed privately in your browser — nothing you paste is uploaded, logged or stored.
How to use the Find and Replace
- Paste your text into the input panel.
- Type what to find and what to replace it with.
- Choose whether to match case, and whether to treat the search as a regular expression.
- Click Replace, then check the replacement count before copying the result.
Frequently asked questions
Are special characters treated literally?
Yes, by default. Searching for $5.00 finds exactly that, and the full stop matches a full stop rather than any character. Regular-expression behaviour is opt-in, so you never get surprising matches from text you pasted out of a document.
How do I use a regular expression?
Turn on the regular expression option and the search becomes a pattern: [cb]at matches cat and bat, \d+ matches any run of digits. An invalid pattern is reported with an explanation rather than silently doing nothing or replacing everything.
Can I replace across multiple lines?
Yes. The whole text is treated as one document, so a pattern can span line breaks. In regular-expression mode this is where the multiline behaviour matters: ^ and $ anchor to the start and end of each line.
How do I know it worked?
The tool reports how many replacements it made. That number is the check worth doing: zero means your search did not match anything, and a number far larger than expected usually means the search was broader than you intended.
Why is an empty search refused?
Because an empty search matches at every position, so replacing it would insert the replacement between every character. Refusing it is more useful than producing a mangled document that looks like a bug in the tool.
Is the search case-sensitive?
Not by default, so dog matches Dog and DOG. Turn on case matching when the distinction matters, which it usually does for code, identifiers and anything where Title Case and lower case mean different things.
Can I undo a replacement?
The original text stays in the input panel, so a replacement never destroys what you pasted — you can adjust the search and run it again. Nothing is saved between visits, so copy the result before you leave the page.