Skip to main content
FileForge

Find and Replace Text

Browser processing — files never leave your device

Replace every occurrence of a word or phrase in pasted text. Supports case-sensitive matching, whole words only, and regular expressions.

Loading tool…

How to use this tool

  1. Paste the text to edit.
  2. Enter the search term and its replacement.
  3. Toggle case sensitivity, whole word, or regex as needed — the match count updates.
  4. Click Replace all and copy the result.

About this tool

This is the find-and-replace from your editor, available anywhere: paste text, enter what to find and what to replace it with, and see how many matches exist before committing. Whole-word matching prevents "cat" from changing "category"; regex mode unlocks pattern replacements like normalizing dates or stripping prefixes, with clear errors when a pattern is invalid.

Frequently asked questions

How do I avoid replacing partial words?
Enable "whole words only". Then replacing "art" won't touch "start" or "artist" — only standalone occurrences of "art".
Can I use regular expressions?
Yes. Switch on regex mode to use JavaScript regular expressions, including capture groups referenced as $1, $2 in the replacement.
Can I preview how many changes will happen?
The live match counter shows exactly how many occurrences the current settings find before you click Replace.