Skip to main content
FixLines

Find and replace text

Replace words in your text, with optional regular expressions.

Editor

Ln 1, Col 10 lines0 words0 characters

Find and replace text: what it does

Replace every occurrence of a word or phrase in one go. Turn on match case or whole word to be exact, or switch on regular expressions for patterns, with groups such as $1 available in the replacement. Replacing with nothing deletes the matches.

Find and replace text: how to use it

  1. Paste your text.
  2. Type what to find and what to replace it with, and set the options.
  3. Select Apply and copy the result.

Find and replace text: when to use it

  • Rename a product, a person or a term everywhere in a document in one go.
  • Swap a separator, for example change every semicolon into a comma in a data export.
  • Use a regular expression to reformat dates, phone numbers or codes in a list.

Find and replace text: examples

Replace a word

Input

The cat sat on the cat bed

Result

The dog sat on the dog bed
Replace only whole words

Input

The cat and the concatenated catalog

Result

The dog and the concatenated catalog

Find and replace text: questions and answers

How do I use regular expressions?

Turn on the regular expression option and type a pattern. In the replacement you can use $1, $2 and so on for the groups you captured.

What does whole word do?

It matches only complete words, so searching for “cat” will not change “concatenate”.

Can I replace a line break?

Yes. Turn on the regular expression option and search for \n; the replacement can be a space, a comma or any text.

How do I see how many matches were replaced?

After Apply, the message under the editor shows the number of replacements; Undo restores the previous text.

Is my text sent to a server?

No. Everything runs in your browser on your own device, so your text never leaves it.

Tools people often use together with this one.

More in Find & replaceBrowse all text tools