Find & Replace Tool

Locate all instances of a specific word or phrase within a given text and substitute it with another word.

Basic Tools

About


A straightforward tool that allows you to find every occurrence of a word or phrase in a text document and replace it with another word. This tool can be highly beneficial when editing extensive text. It automatically identifies all exact matches and replaces them with a single button click.

Match Case


By default, the tool replaces all instances of the search string, regardless of letter case. Enable the 'Match Case' option to perform a case-sensitive search, ensuring an exact match with your query.

For instance, searching for 'h' won't match 'H' in 'Hello' when 'Match Case' is enabled.

Input: Hello World!
Find: h
Replace: X
Result: Hello World!
Replaced: 0

Whole Words


The 'Whole Words' option allows you to replace a match only if it's not preceded or followed by another string.

For example, searching for 'brow' won't match 'brow' in the word 'brown' when 'Whole Words' is enabled.

Input: The quick brown fox jumps over the lazy dog.
Find: brow
Replace: eyebrow 
Result: The quick brown fox jumps over the lazy dog.
Replaced: 0

Replace repeated text in one pass. Update a term, name, or phrase without editing each occurrence separately.

How to use

Enter the source, search text, and replacement. Set Match Case or Whole Words as needed, then replace. Check the result before copying it.

Example

Replace cat with dog in “The cat sat”. Enable Whole Words when you do not want to replace the same letters inside another word.

FAQ

Does whole word matching cover every language?

It uses JavaScript word boundaries, which suit basic Latin text better than all scripts. Test a sample before processing multilingual material.

A practical task

Before replacing a short term, inspect a few matches inside longer words. Replacing art without whole word matching can affect unrelated words. Make a copy when the same spelling serves different meanings and needs selective editing.

Another useful question

Is the search field a regular expression?

It is treated as literal text by this tool. Use the regex tester for patterns; do not expect typed operators here to describe a broader search rule.

Details for interpreting the result

Detail Explanation
Pattern and literal search A literal search matches the typed characters. A regular expression describes a pattern with operators. Characters such as dots and brackets have different roles in the two systems, so choose the right search mode.
Regex engine Regular expression syntax belongs to an engine. A pattern accepted by JavaScript can differ from a pattern in another language. Test the exact engine and flags used in the application that will run it.
Regex flags Flags alter matching rules. Global matching finds more than the first match; case insensitive matching changes letter comparisons. A repeated or unsupported flag is an input error, not a reason to change the source text.