What is find and replace tool?
Find and replace changes every match of a word or pattern in one step. It saves time when you rename a product across a long document, fix a spelling or update a link in many places.
The tool can match case, limit matches to whole words and accept regular expressions for advanced patterns, and it shows how many replacements were made.
How to use the find and replace tool
- Paste your text.
- Type the word to find and the replacement.
- Choose options, then copy the result.
How the find and replace tool works
Your search text is turned into a pattern. Plain text is escaped so symbols such as dots match literally. Whole word mode wraps the pattern in word boundaries. Every match is replaced and the number of matches is counted.
Worked example
Common uses of the find and replace tool
- Renaming a product or brand across a long text.
- Fixing a repeated typo.
- Updating old links in copied HTML.
- Cleaning data before import.
- Preparing templates with placeholders.
Tips and common mistakes
Turn on whole words to avoid changing parts of longer words.
With regular expressions, test on a small sample first.
Background: what to know before you rely on it
Find and replace is one of the oldest editing features and still one of the most useful. Its power comes from patterns: a plain search treats every character literally, while a regular expression lets you describe a family of strings, such as every number or every word that starts with a capital letter. The risk is an overly broad match that changes more than you meant. Use whole word matching, run a small test and review the match count before you copy the result into an important document.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all text tools, or browse the full list of tools.
Field by field guide
- Your text: Type or paste your text here. Use a new line for each entry where the label says so.
- Find: Type your value. The example is cat.
- Replace with: Type your value. The example is dog.
- Match case: Tick to turn this option on.
- Whole words only: Tick to turn this option on.
- Use regular expression: Tick to turn this option on.
Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.
Bulk edits without surprises
Find and replace changes every occurrence of text at once, which is powerful and risky. Always preview the count first.
Expert tips
- Use case sensitive mode when you want to change only a specific form, such as Apple versus apple.
- Use whole word matching so that cat does not change category.
- Use regular expressions for patterns, such as replacing double spaces or reformatting dates.
- Copy the original text before you start, so you can undo.
- Replace in steps and check the result after each one.
Special characters in patterns need escaping, so test on a small sample before a large edit.
Frequently asked questions
Is it case sensitive?
Only if you tick match case.
Can I use regular expressions?
Yes. Tick use regular expression. The JavaScript flavor is used.
Can I replace with nothing?
Yes. Leave the replace field empty to delete matches.
Is there a size limit?
Only the memory of your device.
Related tools
Subtitle Converter
Paste your subtitle text, choose SRT to VTT or VTT to SRT, and optionally shift all times by a number of...
Text ToolsRemove Line Breaks Tool
Paste text with unwanted line breaks and the tool joins it into clean flowing text. You can keep blank...
Text ToolsText Diff Checker
Paste an original and a changed version. The checker highlights lines that were added or removed so you...
Text ToolsCase Converter
Paste text and the converter shows it in nine styles, from upper and lower case to title case and...
Developer ToolsRegex Tester
Enter a pattern, flags and test text. The tester lists every match with its position and capture groups...
Text ToolsWord Counter
Paste or type your text and the counter shows words, characters, sentences, paragraphs, reading time and...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Always proofread output before you publish.