Find and Replace Text
This tool finds text and replaces it in a block of text. It has options for upper and lower case, whole words and regular expressions, and counts the changes.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Find and Replace Text online
- Paste the text. Type or paste your text.
- Type find and replace. Fill in both boxes.
- Set options. Case, whole words or patterns.
- Read the result. See the new text and the count.
Why use this free Find and Replace Text
- Case and whole word options
- Regular expressions
- Group references like $1
- Count of matches
- Error message for bad patterns
- Share by link
A simple replace
Type the text to find and the text to replace it with, paste your text, and every match is replaced at once. Leaving the replacement empty deletes the matches. The tool shows how many matches it replaced, so you know the change did what you expected before you copy the result.
Case and whole words
By default, the search ignores upper and lower case, so cat finds Cat and CAT. Tick match case to find only the exact form. Tick whole words only to skip matches inside longer words, so replacing cat does not change concat. Both options work with plain text and with regular expressions.
Regular expressions
A regular expression is a pattern. With the option on, the find box takes a pattern, such as a digit followed by letters, and the replacement can use $1, $2 and so on for the parts you grouped in brackets. That lets you reorder or reformat text. If the pattern is not valid, the tool says so and changes nothing.
A worked example
Replacing cat with dog in "The cat sat on the mat. The cat is happy." gives "The dog sat on the mat. The dog is happy.", with 2 matches replaced. The search was not case sensitive, so The Cat at the start of a sentence would also have been found.
Plain text is safe
In plain mode, the symbols that mean something in patterns, such as the dot or the dollar sign, are treated as ordinary characters, so you can replace a full stop or a price without learning patterns. The editor also has its own find and replace on Ctrl+H for edits made by hand.
Using the tool
Change the text or any option of the Find and Replace Text and the answer moves straight away. Press Try a sample to see how it behaves.
Find and Replace Text: frequently asked questions
How do I replace text in a block?
Can I delete matches?
Is it case sensitive?
Why would I tick whole words only?
Can I use patterns?
Is the text I paste into the Find and Replace Text uploaded?
Can I chain the Find and Replace Text with another tool?
Related searches for Find and Replace Text
- Find and Replace Text online
- free Find and Replace Text
- Find and Replace Text online free
- Find and Replace Text for mobile
- Find and Replace Text without sign up
- Find and Replace Text – Text & Writing Tools
Find and Replace Text is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.