Find and replace text
Replace words in your text, with optional regular expressions.
Editor
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
- Paste your text.
- Type what to find and what to replace it with, and set the options.
- 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
Input
The cat sat on the cat bed
Result
The dog sat on the dog bed
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.
Related tools
Tools people often use together with this one.
- Add text to each line
Add a prefix, a suffix or both to every line.
- Remove empty lines
Delete blank lines from your text in one click.
- Remove extra spaces
Clean up double spaces and stray whitespace.
- Add quotes around each line
Wrap every line in quotes, brackets or any text.
- Remove line breaks
Turn many lines into one line in a click.
- Bullet list maker
Turn lines into a bullet list, or remove the bullets.