Find and Replace
Find and replace text online with case sensitivity, whole-word matching and regex support. See the match count and copy the result instantly.
About the Find and Replace
This free find and replace tool searches your text and swaps every match in real time — no buttons, no waiting. Paste the text, type what to find and what to replace it with, and the result updates live along with a count of how many matches were replaced.
Three options give you precise control. Case sensitive distinguishes "Apple" from "apple". Whole word only stops "cat" from matching inside "category". Regex mode unlocks full regular-expression power — patterns like \d+ for numbers, with $1-style capture group references in the replacement — and shows a friendly error message if the pattern is invalid rather than breaking.
It is the quickest way to clean data exports, rename variables across a snippet, fix a repeated typo in a long document, or strip unwanted characters — all processed privately in your browser.
How to Use the Find and Replace
- 1Paste your text into the input box.
- 2Enter the text to find and the replacement (leave it empty to delete matches).
- 3Toggle case sensitive, whole word or regex mode as needed.
- 4Check the match count and copy the result.
Frequently Asked Questions
How do I replace all occurrences of a word in my text?
Paste the text, type the word in the Find field and its replacement in the Replace field — every occurrence is replaced instantly and the counter shows how many matches were changed. Unlike a word processor's dialog, there is no replace-one-at-a-time step; the tool always replaces all matches at once.
What does the whole word option do?
It adds word boundaries around your search term so it only matches complete words. Searching for "art" normally also hits "part", "start" and "artist"; with whole word enabled, only standalone "art" is replaced. This is essential when replacing short words or variable names that appear inside longer ones.
How do I use regular expressions to find and replace?
Enable Regex mode, then write a JavaScript-flavoured pattern in the Find field — for example \d{4} to match four-digit years or \s+$ to match trailing whitespace. The Replace field supports capture group references, so with pattern (\w+)@(\w+) you can rewrite matches as $2.$1. Invalid patterns show a clear error instead of failing silently.
How can I delete text instead of replacing it?
Simply leave the Replace field empty. Every match of your search term is removed from the text, and the match counter confirms how many were deleted. Combined with regex mode this becomes a powerful cleaner — for example, finding \(.*?\) with an empty replacement strips out all parenthesised asides.
Is my text sent to a server when I use this tool?
No. The searching and replacing is performed by JavaScript running entirely in your browser. Nothing you paste is uploaded, logged or stored, and it disappears when you close the tab — so it is safe to clean confidential documents, customer data exports and unreleased content.