Find and Replace

Find and replace text in your browser with case, whole-word and regular-expression matching.

Options

Enter something to find.

No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

Paste your text, type what to find and what to replace it with โ€” every match is swapped instantly and the counter tells you how many replacements were made. Turn on Match case for case-sensitive find and replace, Whole words only so that searching for "cat" leaves "category" alone, or Regular expression to match patterns and reuse capture groups in the replacement (write $1, $2, and use \n or \t for newlines and tabs). Invalid patterns are reported instead of failing silently.

"Use result as input" feeds the output back into the box so you can chain several replacements in a row, and Copy or Download saves the result as a .txt file. Everything runs in your browser with JavaScript โ€” unlike many online find and replace tools, your text is never uploaded to a server, so it is safe for contracts, logs and source code.

Frequently asked questions

How do I find and replace text online?

Paste your text into the top box, type what you want to find and what it should be replaced with, and the result appears instantly below with a count of how many matches were replaced. Then use Copy result or Download .txt to save it. Nothing is uploaded โ€” the replacement happens in your browser.

Can you find and replace with regular expressions?

Yes. Tick "Regular expression" and your search text is treated as a JavaScript regex, so patterns like \d{4}-\d{2}-\d{2} work. In the replacement field you can reference capture groups with $1, $2 and the whole match with $&, and write \n or \t for a newline or tab. If the pattern is invalid, the tool tells you why instead of failing silently.

Is case sensitive or whole-word find and replace supported?

Both. Matching is case-insensitive by default; tick "Match case" for a case-sensitive find and replace. Tick "Whole words only" so that searching for "cat" replaces the standalone word but leaves "category" untouched. You can combine either option with regex mode.

Report a bug