Find & Replace

Free online find and replace tool. Support for case-sensitive search, whole word matching, regular expressions, and replace all. Instant preview with match count.

Everything runs in your browser — your data is never sent to any server.

Why Use Our Find & Replace Tool?

Our find and replace tool goes beyond simple text substitution. With support for case-sensitive matching, whole word boundaries, and full regular expression syntax, you can perform precise find-and-replace operations on any text. The live match counter and instant preview let you verify your changes before applying them.

Key Features

  • Case-sensitive and case-insensitive search modes
  • Whole word matching using word boundaries
  • Full regular expression support with live validation
  • Replace all occurrences in one click
  • Live match count and instant result preview

How to Use This Tool

  1. Enter or paste your text in the input area
  2. Type the text to find in the 'Find' field
  3. Enter the replacement text in the 'Replace With' field
  4. Configure options and click 'Replace All' to apply changes

Technical Details

The find and replace engine uses JavaScript's RegExp for pattern matching. Whole word mode wraps the search term in \b word boundary assertions. Regular expression mode allows full regex syntax including capture groups and backreferences in replacement strings. Invalid regex patterns are caught gracefully without breaking the tool.

Frequently Asked Questions

Can I use capture groups in the replacement?

Yes! When regex mode is enabled, you can use $1, $2, etc. in the replacement text to reference capture groups from your pattern.

What happens with invalid regex?

If you enter an invalid regular expression, the tool gracefully handles the error and shows 0 matches without breaking. Fix your regex to see results.

Is the replace applied to the original text?

Clicking 'Replace All' updates the input text with replacements. The preview shows what the result will look like before you click.

Related tools