Find & Replace Tool

Find and replace text with support for case sensitivity, whole words, and regular expressions.

Find & Replace Tool

The Find & Replace Tool lets you search for specific text patterns and replace them instantly. It supports case-sensitive matching, whole-word filtering, and regular expressions for advanced text manipulation.

Paste your text, enter a search term and replacement, and see the result in real time. Toggle options for case sensitivity, whole-word matching, and regex mode to handle everything from simple substitutions to complex pattern transformations.

How it works

Plain-text search escapes special characters and uses standard string matching. Whole-word mode wraps the pattern in word-boundary anchors (\b). Regex mode passes the pattern directly to the JavaScript RegExp engine with global matching.

Use cases

  • Batch-renaming variables or identifiers in code snippets
  • Cleaning up formatting inconsistencies in copied text
  • Replacing placeholder tokens in templates
  • Using regex to reformat dates, phone numbers, or structured data
  • Removing unwanted characters or whitespace patterns from text

Related Calculators