Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use Find and Replace Text online

  1. Paste the text. Type or paste your text.
  2. Type find and replace. Fill in both boxes.
  3. Set options. Case, whole words or patterns.
  4. 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?
Type what to find and what to replace it with.
Can I delete matches?
Yes, leave the replacement empty.
Is it case sensitive?
Not by default. Tick match case to make it so.
Why would I tick whole words only?
It skips matches inside longer words.
Can I use patterns?
Yes, switch on the regular expression option.
Is the text I paste into the Find and Replace Text uploaded?
No copy is made on a server; the Find and Replace Text runs in your browser.
Can I chain the Find and Replace Text with another tool?
Yes. Copy the Find and Replace Text result, or press Use result as input and carry on with the new text.

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.

More tools in Text & Writing Tools →

Search tools