EN

Find and Replace

Find a word in your text and replace or delete every match.

Words: 0 · Characters: 0

Built by Jhon WRuns in your browserLast reviewed:

  • Free, no sign-up
  • Your text stays on your device
  • Works on phone and computer
  • 8 languages

Popular tools:Text RepeaterFancy Text GeneratorWord CounterSmall Text Generator

Find and Replace is a free online tool that swaps every match of a word or phrase in your text for new text, or deletes it, and shows how many replacements it made. Match case, whole words only and regular expressions with $1 groups are built in, for up to 500,000 characters, with no sign-up.

How to find and replace text

  1. Paste your text. Paste the text in the Your text box.
  2. Enter the two texts. Type the text to look for in Find and the new text in Replace with. Leave Replace with empty to delete the found text.
  3. Copy the result. The changed text appears in the Result box with the number of replacements. Press Copy to use it.

What is find and replace?

Find and replace is a function that searches a text for a word or phrase and swaps every match for another text. It changes all matches at once, so you do not have to edit them one by one.

This tool does find and replace online, in the browser, for any text you paste, without a word processor.

Features

  • Replaces every match in the text at once.
  • Match case and Whole words only options.
  • Regular expressions with groups such as $1 in the replacement.
  • Count of the replacements made.
  • Delete text by leaving the replacement empty.

The options

OptionOffOn
Match casecat also matches Cat and CATcat matches only cat
Whole words onlycat also matches the cat inside cats and concatcat matches only the separate word cat
Use a regular expressionThe Find text is searched exactly as typedThe Find text is read as a pattern. For example \d+ matches any number

A regular expression is a pattern that describes text, for example "any digits" or "a word at the start of a line". In this mode, ^ and $ match the start and end of each line, and $1, $2 in Replace with insert the groups you put in brackets.

Is it private?

Yes. The text is changed inside your browser. It is not sent to our server and is not saved by us.

Tips for find and replace online

  • Check the spelling and spaces in Find. If the count shows 0 replacements, compare the Find text with your text letter by letter, spaces included. With Match case on, capital letters must match too.
  • Tick Whole words only to protect longer words. Without it, cat also changes the cat inside cats and concat.
  • Turn off regular expressions to find symbols. In regular expression mode, characters such as . * + ? ( ) [ ] have a special meaning. With the option off, they are searched as normal characters.
  • Close every bracket in a pattern. An error message means the regular expression is not complete, for example a bracket was opened and not closed.
  • Paste up to 500,000 characters at a time. For a longer text, run it in parts with the same Find and Replace with values.

Related tools

Three other tools on this site change text in bulk. The text compare tool shows what changed between the old and the new text. The case converter changes capital and small letters. The tool to remove extra spaces cleans spaces without a search pattern.

Frequently asked questions

How do I replace a word in a text online?
Paste the text, type the word in Find and the new word in Replace with. All matches are replaced at once.
How do I delete a word everywhere?
Type the word in Find and leave Replace with empty.
Does it replace all matches or only the first?
All matches. The number of replacements is shown above the result.
Can I use regular expressions?
Yes. Tick Use a regular expression. Groups in brackets can be used in the replacement as $1, $2 and so on.
Is the Find and Replace tool free?
Yes. It is free and you do not need an account.