Skip to content
LovTools
EN

Find and Replace

Find and replace text with match-case, whole-word and regex options.

Processed locally on your device — nothing is uploaded.

About the Find and Replace

Need to change “colour” to “color” across a whole document, rename a variable in a pasted snippet, or delete every occurrence of a word? Type what to find and what to replace it with, and the result updates as you type, along with the number of replacements made.

Whole-word mode avoids changing words that merely contain your search term, and regular-expression mode lets advanced users capture groups and reuse them as $1, $2 in the replacement.

How to use the Find and Replace

  1. Paste your text.
  2. Enter the text to find and the replacement, and choose options.
  3. Copy or download the updated text.

Features

  • Case-sensitive or insensitive
  • Whole-word matching (Unicode aware)
  • Regular expressions with groups
  • Replacement count
  • Leave “replace” empty to delete matches

Supported formats

  • Plain text
  • .txt
  • .md
  • .csv
  • .html
  • .json

Frequently asked questions

Is my text sent anywhere?

No. All processing happens in your browser, and nothing you paste is stored or uploaded.

How do I use capture groups?

Enable regular expressions, wrap part of the pattern in parentheses, and refer to it as $1 in the replacement. $& inserts the whole match.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools