All tools › Text, Fonts & Symbols › Text Utilities
Paste text, type what to find and what to replace it with, and copy the changed text.
Swap one word or phrase for another, everywhere at once
Paste your text, type what to find and what to put in its place, and this find and replace tool changes every match in one go. It tells you how many matches were replaced and how the length of the text changed.
It is the quick way to change a name throughout a letter, update a date or a product name in a draft, fix a word you kept misspelling, or turn commas into line breaks. Everything happens in your browser. The text is not uploaded.
How to find and replace text
- Type or paste into Your text.
- Type the word or phrase to look for in Find.
- Type the new wording in Replace with. Leave it empty to delete every match.
- Under Capital letters, ignore them or match case exactly.
- Set Whole words only to Yes if short words should not be changed inside longer ones.
- Under Replace, choose every match or only the first match.
- Press Copy next to the new text.
How matches are found
length after = length before + matches replaced x (replacement length – match length)
The search is plain text. Every character you type in the Find box is looked for exactly as typed, including periods, question marks, brackets, plus signs and dollar signs. Nothing is treated as a pattern or wildcard, and regular expressions are not supported.
The text is scanned from left to right. When a match is found, the search continues after it, so matches never overlap: looking for “aa” in “aaaaa” finds two matches, not four.
With whole words only, a match counts only if the character just before it and the character just after it are not a letter, a digit or an underscore. The start and end of the text count as word edges.
Three short codes work in both boxes:
| Type this | It means |
|---|---|
| \n | A line break |
| \t | A tab |
| \\ | One backslash |
Worked example
Text: “Our Summer sale starts Monday. Summer hours: 9 to 5. Call the summerhouse desk for details.” Find: summer. Replace with: Fall. Capital letters ignored, whole words only set to Yes, every match.
| Row | Value |
|---|---|
| Result | 2 matches replaced |
| New text | Our Fall sale starts Monday. Fall hours: 9 to 5. Call the summerhouse desk for details. |
| Matches found | 2 |
| Length before | 91 characters |
| Length after | 87 characters |
| Change in length | -4 characters |
| Search | Plain text, capital letters ignored, whole words only |
The check works out: 91 + 2 x (4 – 6) = 87. Set Whole words only back to No and the result is “3 matches replaced”, with “summerhouse” turned into “Fallhouse”. That is the mistake the whole-words option prevents.
A second use: the text “red, green, blue” with a comma and a space in Find and \n in Replace with gives three lines, red, green and blue, and a change in length of -2 characters.
Reading the result
Matches found counts every match under your settings. Matches replaced is the same number unless you chose only the first match. “No matches found” means the text was left as it was; check the spelling in the Find box and the capital-letter setting. The Looked for and Replaced with rows show your two entries with line breaks and tabs written as \n and \t, so invisible characters are easy to spot.
Limits and things to watch
- The replacement is inserted exactly as typed. When capital letters are ignored, “Summer” and “summer” both become “Fall”; the tool does not copy the capital letter pattern of the word it replaces.
- It does not know grammar. Changing “cat” to “owl” will not change “a” to “an” in front of it.
- Only one find and replace pair is handled per run. For several changes, copy the new text back into the box and run again.
- Formatting such as bold, italics and links is not kept. The result is plain text.
- The text can be up to 100,000 characters, the two boxes up to 1,000 characters each, and the result up to 1,000,000 characters.
Frequently asked questions
How do I delete a word everywhere?
Type the word in Find and leave Replace with empty. Add a space after the word in Find if you also want to remove the gap it leaves.
How do I replace line breaks with spaces?
Type \n in Find and a single space in Replace with. Every line break becomes a space, which joins the lines into one paragraph.
Can I undo a replacement?
Your original stays in the text box until you change it, so nothing is lost. The new text appears separately under the result.
Does it match accented letters?
Only exactly. A plain “e” in Find does not match an accented one, though capital and small accented letters match each other when capital letters are ignored.
Related calculators
- Case Converter – change capital and small letters across the whole text.
- Remove Duplicate Lines – clean a list after turning separators into line breaks.
- Word Counter – see how often a word is used before replacing it.
- Slug Generator – replace spaces and symbols to make a clean URL slug.

