Find and Replace is a free tool that replaces every occurrence of a word, phrase or pattern in a piece of text. You can match case, match whole words only, or use regular expressions with captured groups. It works entirely in your browser.
How to find and replace
- Paste your text into the left box.
- Type what to find, and what to replace it with. Leave “Replace with” empty to delete the matches.
- The result appears on the right, with the number of replacements made.
Options
- Match case: “Apple” won’t match “apple”.
- Whole words only: “cat” won’t match inside “catalog” or “scattered”.
- Regular expression: search for patterns, such as any number (
\d+) or any email address.
Regular expression examples
- Swap date format: find
(\d{4})-(\d{2})-(\d{2}), replace with$3/$2/$1. - Remove everything in brackets: find
\s*\([^)]*\), replace with nothing. - Put quotes around each line: find
^(.*)$, replace with"$1"(turn on multiline in the Regex Tester to test first).
$1, $2… insert the parts of the match in brackets, $& inserts the whole match, and $<name> inserts a named group.
Frequently asked questions
How do I delete every occurrence of a word?
Type it in Find and leave Replace empty.
What does “Whole words only” do?
It matches “cat” but not the “cat” inside “catalog” or “scattered”.
How do I use captured groups?
Turn on Regular expression, put parts of the pattern in brackets, and refer to them as $1, $2 in the replacement. For example, find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1 to turn 2026-09-28 into 28/09/2026.
Last updated