Skip to main content
FileForge

Find and Replace Text

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

Runs in your browser — files never leave your device

Free · No sign-upOutputs Plain text
Loading tool…

How to use Find & Replace

  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.

This is especially handy when you don't have access to the original document in an editor — for example fixing a repeated typo or an outdated name across text that was pasted from an email, a chat log, or a plain text export.

Common ways people use this

  • Correcting a repeated typo or outdated name across a block of pasted text
  • Standardizing formatting like date styles or spacing patterns using a regex pattern
  • Replacing a placeholder value across a template before sending it out

Tips for better results

  • Check the live match count before clicking Replace — if the number looks higher or lower than expected, adjust whole-word or case-sensitivity settings before committing.
  • For simple text swaps, leave regex mode off — it's only needed when you want to match a pattern rather than an exact phrase.

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.
What happens if my regex pattern is invalid?
The tool shows a clear error describing the problem with the pattern, rather than silently failing or replacing nothing.
Is the replacement case-sensitive by default?
No, matching is case-insensitive by default so "Cat" and "cat" are both found. Enable case-sensitive matching if you need exact-case matches only.