Find and Replace

Search your text and replace every match at once — with optional regular expressions and case-sensitive matching.

Find and Replace

🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.

How it works

Find and Replace searches your text for a pattern and swaps every match with your replacement. In plain mode it looks for the exact characters you type; in regex mode it interprets your input as a regular expression, unlocking powerful matching like \d+ for numbers or \s+ for runs of whitespace.

The case-sensitive toggle controls whether "Cat" and "cat" are treated as the same. When it's off, matching ignores case. After each run the tool reports how many replacements were made, so you can confirm the change did what you expected before copying the result.

Regex mode also supports capture-group references in the replacement field, so you can reorder or reformat matched text (for example turning 2026-01-15 into 15/01/2026). If your expression is invalid, a clear error message appears instead of failing silently. As always, nothing is uploaded — the substitution happens entirely in your browser.

Examples

Replace "colour" with "color" across a whole document in one click.
Regex: find \s+ replace with a single space to collapse extra spaces.
Regex with groups: find (\d{4})-(\d{2})-(\d{2}) replace with $3/$2/$1.

Frequently asked questions

What is regex mode?
Regex (regular expressions) lets you match patterns rather than fixed text — for example any digit, any whitespace, or text at the start of a line. Turn it off for a literal, exact-text search.
Can I use capture groups in the replacement?
Yes, in regex mode. Reference captured groups with $1, $2, and so on to reorder or reformat the matched text.
Why does my regex show an error?
The pattern isn't valid — often an unescaped special character or an unbalanced bracket. The tool shows the browser's error message so you can fix it.
Is my text processed privately?
Yes. All matching and replacing happens locally in your browser; your text is never sent anywhere.