The Find and Replace tool swaps every match of a word, phrase or character in your text in one click. Paste your text, type what to find and what to put in its place, and copy the updated result. Leave the replacement empty to delete every match.
It’s free, needs no sign-up and runs entirely in your browser, so your text is never uploaded.
Leave “Replace with” empty to delete every match.
How to Use the Find and Replace Tool
- Paste your text into the box. It can be a sentence, a list or a long document.
- Type what to find in the “Find” box, like a misspelled name or an old product name.
- Type the replacement in the “Replace with” box. Leave it empty if you want to delete the matches.
- Press “Replace all.” The new text appears below with a count of how many replacements were made.
- Copy the result. If you edit your text, the search words or an option afterward, the result updates on its own.
Example
Find colour and replace it with color (default options) in this text:
Our team loves the colour blue. The colour of the logo is blue, and the website colours match. Colour is important for every category of product.
The result is:
Our team loves the color blue. The color of the logo is blue, and the website colors match. color is important for every category of product.
That’s 4 replacements. Because “Match case” is off, “Colour” at the start of the second line was found too, and because “Whole words only” is off, “colours” became “colors.” The replacement is inserted exactly as you typed it, so the capital “C” became a lowercase “c.” Turn on “Whole words only” to change only the standalone word, or turn on “Match case” to leave “Colour” alone.
Options Explained
- Match case: finds only the exact capitalization you typed, so “Apple” won’t match “apple.”
- Whole words only: skips matches inside longer words. Replacing “cat” then leaves “category” and “concatenate” untouched. It works with accented letters and other alphabets, too.
- Read \n as a line break and \t as a tab: type
\nin either box to find or insert a line break, and\tfor a tab. For example, find,and replace it with\nto put each item of a comma-separated list on its own line. Type\\for a real backslash. - Use regular expressions: treats the “Find” box as a pattern instead of plain text. Use
$1,$2and so on in the replacement to reuse parts of the match.
Regular Expression Examples
Turn on “Use regular expressions” to try these:
| Task | Find | Replace with |
|---|---|---|
| Delete all digits | \d+ | (empty) |
| Squeeze double spaces | {2,} | one space |
| Swap first and last name | (\w+) (\w+) | $2, $1 |
| Change 2026-11-21 to 11/21/2026 | (\d{4})-(\d{2})-(\d{2}) | $2/$3/$1 |
If a pattern isn’t valid, for example because a bracket is missing, the tool shows an error instead of changing your text.
When to Use Find and Replace
- Fixing a repeated typo: correct a misspelled name or word everywhere at once.
- Updating names: change an old product, company or character name across a whole document.
- Switching spellings: turn British spellings like “colour” into American ones like “color.”
- Cleaning data: delete stray characters, swap commas for line breaks or tidy a list before pasting it into a spreadsheet.
- Templates: replace a placeholder like [NAME] with a real name in an email or letter.
Frequently Asked Questions
How do I find and replace a word in text online?
Paste your text into the box above, type the word in “Find,” type the new word in “Replace with” and press “Replace all.” Every match is replaced at once, and you can copy the result with one click.
How do I delete a word everywhere?
Type the word in “Find,” leave “Replace with” empty and press “Replace all.” Turn on “Whole words only” so parts of longer words aren’t deleted.
Is the search case-sensitive?
Not by default, so “dog” also finds “Dog” and “DOG.” Turn on “Match case” to replace only the exact capitalization.
Can I replace text with a line break?
Yes. Type \n in “Replace with.” The “Read \n as a line break” option is on by default.
Do special characters like periods or brackets work?
Yes. With regular expressions off, every character is matched exactly as you type it, so searching for “3.5” or “(draft)” finds just that text.
Is my text saved or uploaded?
No. Everything happens in your browser, and your text is never sent to a server.
Related Tools
- Remove Punctuation: strip commas, periods, quotes and brackets from text.
- Remove Line Breaks: join lines into one paragraph.
- Case Converter: change your text to lowercase, UPPERCASE or Title Case.
- Add Prefix and Suffix: add text to the start or end of every line.
- Browse all of our free word tools.