Find and replace

Paste text, type what to find and what to put instead, and get the edited text with the number of replacements - no editor needed.

Replacements: 4

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Paste the text, then type what to find and what to replace it with.
  2. Set the options. The result and the number of replacements update as you type.
  3. Press Copy.

Options

  • Match case: off by default, so “Cat”, “cat” and “CAT” are all found.
  • Whole words only: the match must not have a letter, digit or underscore right before or after it.
  • Regular expression: the search is a pattern. Characters such as ., *, ? and brackets have special meaning; without this option they are searched for literally.

Regular expression examples

Find Replace with Effect
(\d+)-(\d+)-(\d+) $3.$2.$1 2026-11-03 → 03.11.2026
\s+ a space collapses runs of spaces and line breaks
^ - puts “- “ at the start of every line
\s+$ nothing removes spaces at line ends

Worked example

In the sample text, replacing “cat” with “dog” changes four places, including “category”, which becomes “dogegory”. With “Whole words only” on there are 3 replacements, and “category” stays as it is.

Tips

If the regular expression is invalid - an unclosed bracket, a lone backslash - the tool shows an error instead of a result. Replacements are made all at once in a single pass, so the replacement text is never searched again.

Frequently asked questions

How do I replace a word but not the same letters inside other words?

Turn on "Whole words only". Then "cat" matches "cat" but not "category" or "concat". It works for every alphabet, not only Latin letters.

Can I use $1 in the replacement?

Yes, with "Regular expression" on. $1, $2 … insert the captured groups, $& the whole match and $<name> a named group. Without the option the replacement is inserted exactly as typed, so "$1" stays "$1".

Which regular expression syntax is used?

JavaScript regular expressions with the Unicode flag, applied to the whole text. ^ and $ match at the start and end of every line, and "Match case" off adds case-insensitive matching.

How do I delete a word everywhere?

Type it in "Find" and leave "Replace with" empty. The counter shows how many times it was removed.

More in Text

All tools in this category: Text ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.