Find & Replace Text

Replace every occurrence of a word, phrase or pattern in one pass — with whole-word and regex options.

Renaming a product across a long document, fixing a repeated typo, swapping straight quotes, or updating a URL that appears fifty times — find and replace is the fastest way, and you don't need to open a text editor to do it. Paste your text, enter what to find and what to replace it with, and every occurrence is swapped instantly, with a counter confirming how many replacements were made.

Three options give you precision: Match case distinguishes "apple" from "Apple", Whole words stops "cat" from also matching inside "category", and Regex unlocks full regular-expression patterns with capture-group references ($1, $2) in the replacement — enough to reformat dates, strip prefixes or restructure repeated patterns. As with everything on this site, the text is processed locally in your browser and never uploaded. To delete duplicate content rather than replace it, try the duplicate line remover.

How to use the Find & Replace

  1. Paste your text into the input box.
  2. Type the word or phrase to find, and what to replace it with (leave replace empty to delete matches).
  3. Toggle Match case, Whole words or Regex as needed — the output and replacement count update live.
  4. Copy or download the result.

Frequently asked questions

Can I delete text instead of replacing it?

Yes — just leave the "Replace" field empty. Every match is removed, and the counter still shows how many occurrences were deleted.

What does the "Whole words" option do?

It only matches the search term when it stands alone as a word. Searching for "art" with whole words on won't touch "start" or "article" — essential when replacing short words.

What regex flavor is supported?

JavaScript regular expressions, since the tool runs in your browser. That includes character classes, quantifiers, alternation, anchors and capture groups. In the replacement field, $1 through $9 insert captured groups.

Can I use regex to reformat text, not just replace it?

Yes. For example, find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$1-$2 to convert US dates to ISO format. The capture groups carry the matched pieces into the new arrangement.

Is my text private?

Completely — the search and replacement run in your browser with JavaScript. Nothing you paste is transmitted or stored.