Find & Replace

Your text

0 matches replaced

About Find & Replace

Find and Replace scans a block of text for every occurrence of one string and swaps it for another, all at once — the same core feature every word processor and code editor has built in, available here as a standalone tool for whenever you're working outside of one of those programs, such as cleaning up text pasted from an email, a PDF export, or a chat log before it goes somewhere else.

Three toggles control exactly how matching works. "Case-sensitive" determines whether "Apple" and "apple" are treated as the same text to find — off by default, meaning a search for "apple" replaces both "Apple" and "apple" and "APPLE"; turn it on when the casing itself matters, like replacing a specific capitalized product name without touching an unrelated lowercase word that happens to match. "Whole word only" prevents partial matches inside longer words — searching for "cat" with this on will replace "cat" but leave "category" and "concatenate" untouched, which matters constantly in practice, since a plain substring search for a short word will otherwise mangle text in ways that are easy to miss until you spot a broken word deep in a paragraph.

"Treat 'Find' as regex" unlocks pattern-based matching for anyone comfortable with regular expressions — instead of a literal string, the Find field is interpreted as a JavaScript regular expression, so you can match patterns like `\d{3}-\d{4}` for a phone number format, `[A-Z][a-z]+` for any capitalized word, or use capture groups with `$1` in the replacement field to reuse part of the match. With regex mode off (the default), every character you type in Find — including ones that have special meaning in regex, like `.` or `(` — is automatically escaped and matched completely literally, so you can safely search for things like "3.5" or "(draft)" without accidentally triggering pattern-matching behavior you didn't intend.

The tool reports exactly how many matches were replaced, so you have immediate confirmation that something actually changed (or a clear signal if your search term didn't match anything, which usually means a typo or an unexpected case-sensitivity issue). All matching and replacing happens instantly in your browser using JavaScript's native string and regex engine — there's no length limit and no delay, even on long documents.

How it works

  1. Paste your text. Drop in the text you want to search and modify.
  2. Enter what to find and replace. Type the text to search for and what it should become.
  3. Adjust matching rules if needed. Toggle case-sensitivity, whole-word matching, or regex mode for more precise control.
  4. Copy the result. The updated text and match count appear instantly below.

Examples

Simple replacement

Input

Find: cat → Replace: dog
Text: The cat sat near the category sign.

Output

With "Whole word only" ON: The dog sat near the category sign.
With it OFF: The dog sat near the dogegory sign.

Frequently asked questions