1. Home
  2. Text
  3. Find and Replace Text

Find and Replace Text

Replace words across a text at once, with optional regex.

Runs in your browser · No upload
Result

How to use

  1. Paste your text into the Text box.
  2. Fill in Find and Replace with. The result updates as you type. Leave the replacement empty to delete what you found.
  3. Need several changes? Click Add rule. Rules run from top to bottom.
  4. Copy the result or Download .txt. The Replacements count shows how many changes were made.

What each option does

Option Behavior Example
Match case Only replaces when upper and lower case match exactly Finding Apple leaves apple untouched
Whole words only Only replaces when no letter or digit touches either side, in any script cat replaces cat but not cats or concat
Use regex Treats Find as a JavaScript regular expression. In the replacement you can use $1, $<name>, $&, \n (newline) and \t (tab) (\d{4})-(\d{2})-(\d{2}) → $2/$3/$1

With regex off, special characters such as ., ( and $ are matched literally, so replacing a price sign needs no escaping.

Using several rules

Each rule runs on the output of the rule before it. If rule 1 is a → b and rule 2 is b → c, the original a ends up as c. To swap two words, go through a placeholder: A → @@, B → A, @@ → B.

If a regex has a syntax error, the tool tells you which rule is wrong and leaves the text unchanged. Patterns with nested repeats such as (a+)+ can blow up the amount of work, so processing stops automatically after 1.5 seconds. To inspect a pattern in detail, the Regex Tester highlights every match and capture group.

Common uses

  • Rename people or places across a template letter in one pass.
  • Change separators: turn commas into new lines with regex on, ,\s* → \n.
  • Reformat dates: 2026-10-07 to 10/07/2026.
  • Delete boilerplate: leave the replacement empty.

For line breaks only, Remove Line Breaks is quicker, and Remove Duplicate Lines cleans up repeated lines. Your text is processed in this browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.