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.
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
- Enter or paste your text in the input area
- Type the text to find in the 'Find' field
- Enter the replacement text in the 'Replace With' field
- 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
Text Compare
Compare two texts side by side and find differences with highlighted word-by-word diff
Word Counter
Count words, characters, sentences, paragraphs and estimate reading time instantly
Case Converter
Convert text to UPPER CASE, lower case, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case
Text Repeater
Repeat text multiple times with customizable separator options
Remove Duplicates
Remove duplicate lines from text with options for case sensitivity, trimming, and order preservation
Text Reverse
Reverse text in three modes: entire text, per line, or per word