Find and Replace Text
Replace all occurrences of a word or phrase in your text.
the dog sat on the mat, the dog was happy
Paste your text, type what to find and what to replace it with, and get the result with a count of how many replacements were made. Matching is exact (case-sensitive). Runs entirely in your browser.
Formula / method
Examples
2 replacements
no change
Swap text in bulk
Paste your text, tell the tool the word or phrase to look for, and give it the replacement, and every matching occurrence is swapped at once. It is far faster than editing by hand when you need to rename a term, fix a repeated typo, update a placeholder, or standardise wording across a long block. The result appears immediately and the work is done locally in your browser, so nothing you paste is uploaded.
Because it acts on every match, one pass can clean up hundreds of instances in a single step.
Match exactly what you mean
A find-and-replace matches the literal text you enter, including any surrounding spaces, so searching for a word without word boundaries can also change it inside longer words; replacing cat could touch category. Capitalisation usually matters too, meaning Sun and sun are treated separately unless the search is case-insensitive. Review the output when replacing short or common strings. For related text cleanup, pair it with the Remove Duplicate Lines and Sort Text Lines tools to fully tidy a list.
Where it's used
- Swapping every occurrence of a name, term, or URL across a block of text
- Fixing a repeated typo or renaming a variable in pasted code
- Converting straight quotes to curly quotes, or tabs to spaces
- Updating a year, brand, or product name throughout a document
- Cleaning imported text by replacing unwanted characters
Real-world examples
- A writer replaces every 'colour' with 'color' across a 2,000-word article for a US audience.
- A developer renames the variable usr to user throughout a pasted snippet.
- A user swaps all 'http://' for 'https://' in a list of links.
Did you know?
Find and Replace descends from the substitute command s/old/new/ in early Unix line editors like ed and its stream-editing cousin sed — the same s/// syntax still drives search-and-replace in Vim today.
FAQ
Is the search case-sensitive?
Yes — "Cat" and "cat" are treated differently. Matching is literal (not a pattern), so symbols and spaces are matched exactly.