Find & Replace

Search and replace text with support for regex, whole word matching, and case sensitivity.

Free online find and replace tool with regex support and live match count

Bulk text replacement is essential for editing content, refactoring code snippets, updating templates, and transforming data files. AlteredIdea's find and replace tool goes beyond simple string substitution: it supports full JavaScript regular expressions, whole-word matching, and case-sensitive search, giving you the same power as a code editor without leaving the browser.

The live match counter shows you exactly how many replacements will be made before you commit, preventing unexpected over-substitution. The original input is preserved, so you can iterate on the search/replace pattern without losing your source text.

Step-by-step guide

  1. 1
    Paste the source text
    Paste the text you want to modify into the Original Text area. You can use the sample to get started.
  2. 2
    Enter the search term
    Type the text you want to find in the Find field. The tool shows a live match count as you type.
  3. 3
    Enter the replacement
    Type the replacement text in the Replace with field. Leave it empty to delete all matches.
  4. 4
    Configure matching options
    Toggle Match case, Whole word, and Regex mode as needed. Regex mode accepts JavaScript regular expressions.
  5. 5
    Click Replace All and copy
    Click Replace All to apply all substitutions at once. Review the result, then click Copy to use it.

Related Tools

Frequently Asked Questions

Does the find and replace tool support regular expressions?
Yes. Toggle Regex mode to enter JavaScript regular expressions in the Find field. For example, use \d+ to match one or more digits, or [aeiou] to match any vowel.
What does 'Whole word' matching do?
Whole word matching wraps the search term in word boundaries (\b in regex), so searching for 'cat' will not match 'catch' or 'concatenate': only standalone occurrences of the word 'cat'.
Can I use capture groups in the replacement?
Yes, when Regex mode is active. Use $1, $2, etc. in the replacement field to reference capture groups from the Find pattern. For example, find (\w+) (\w+) and replace with $2 $1 to swap two words.
How many replacements can it handle?
All matches in the text are replaced in one operation regardless of count. The tool shows the exact match count before you commit to replacing.
Can I undo a replacement?
The original text in the input area is not modified by the Replace All action: it produces a new output in the Result area. You can always edit the Find or Replace fields and run again.
What happens if I leave the Replace field empty?
All matches are deleted from the text, effectively removing every occurrence of the search term.
Can I do sequential replacements?
Run the first replacement, copy the result, paste it back into the Original Text area, and run the second replacement. This allows chaining multiple substitutions.
Is my text sent to a server?
No. All find and replace operations run entirely in your browser using JavaScript's native string replace method. Your text never leaves your device.
What is the difference between case-sensitive and case-insensitive matching?
With Match case off (default), 'hello', 'Hello', and 'HELLO' are all treated as the same search term. With Match case on, only exact-case matches are replaced.

AlteredIdea vs alternatives

vs Google Docs / Word: Docs and Word offer basic find/replace but have limited or no regex support. This tool gives you full JavaScript regex including capture group back-references in replacements.

vs browser extensions: No install required, and the tool does not have access to the page content of other browser tabs.

vs paid SEO tools: Free, instant, no account. Do bulk keyword replacements in your content without any subscription.