Find and Replace
Replace words or regex matches in any text.
Free
Runs in your browser
About this tool
Find and Replace swaps every occurrence of a word or phrase in your text and tells you how many it changed. Turn on regular expressions for pattern matching, or whole words so “cat” does not change “category”.
How to use Find and Replace
- Paste your text.
- Type what to find and what to replace it with.
- Copy the result.
Questions people ask
How do I use capture groups?
Turn on “Regular expression”, wrap part of the pattern in brackets, and use $1, $2 in the replacement. For example, find (\w+)@(\w+) and replace with $2 at $1.
Is the search case sensitive?
Not by default, so “Fox” and “fox” both match. Tick “Match case” to match capital letters exactly.
How do I replace line breaks?
Turn on regular expressions and search for \n. Leave the replacement empty to delete them, or type a space to join the lines.
More text tools
See all 19 →
Text SorterSort lines A to Z, by length, by number or shuffle.
Remove Line BreaksJoin broken lines into clean paragraphs.
Text CleanerRemove extra spaces, HTML, emojis and smart quotes.
Slug GeneratorTurn titles into clean URL slugs.
Fancy Text GeneratorBold, italic, script and other Unicode fonts to copy.
Reverse TextReverse letters, word order or line order.