Find & Replace Text
Replace every occurrence of a word or phrase, with case-sensitive and whole-word options.
Regex mode: the Find box is a JavaScript pattern, and $1, $2… in Replace insert the capture groups. “Whole word only” is off here — use in the pattern instead.
🔒 Runs entirely in your browser — nothing you type is uploaded or stored on a server.
The Find & Replace tool swaps every occurrence of a word or phrase in text you paste in, all at once and across as many lines as you like. Type what to find and what to replace it with, and the updated version appears instantly along with a count of how many replacements were made. It's the quickest way to find and replace text online, in bulk, without opening a heavyweight editor.
Also on Txtset: diff text versions side by side · test and debug regex pattern replacements.
This is exactly what you need when a name changed, a term was misspelled throughout a document, or you want to standardise wording across a long block of text. Two options give you precision: case-sensitive matching, so “Apple” and “apple” can be treated differently, and whole-word matching, so replacing “cat” won't accidentally change “category” or “concatenate”.
For anything a plain phrase cannot express, tick Regular expression. The Find box then takes a full JavaScript pattern — \d{4}-\d{2}-\d{2} for dates, \s+$ for trailing spaces, ^#+\s* for Markdown headings — and the Replace box understands $1, $2 and $<name>, so you can reorder what you captured rather than only delete it. Replacing (\w+), (\w+) with $2 $1 turns every “Surname, Firstname” into “Firstname Surname” in one pass. A pattern that does not compile shows the engine's own error instead of failing silently. If you are still working the pattern out, build it in the Regex Tester first, where every match is highlighted live.
Everything happens live in your browser as you type, with a running tally of matches so you know the change did what you expected. Nothing is uploaded, making it safe for editing private documents, code and confidential text.
How to use
- Paste your text into the input box.
- Type the word or phrase to find.
- Type what it should be replaced with (leave blank to delete it).
- Toggle “Case sensitive” and “Whole word only” as needed.
- Copy the result — the counter shows how many replacements were made.
Examples
Replace “Acme Corp” with “Globex” across a contract draft in one step, and see exactly how many times it appeared.
Change every “recieve” to “receive” instantly, no matter how many times it occurs.
Find “TODO:” and leave the replace box empty to strip every marker out of your notes.
Replacing “art” with “craft” using “Whole word only” changes “art” but leaves “start” and “party” untouched.
Frequently asked questions
Does it replace all occurrences or just the first?
What does case-sensitive do?
What does whole-word only do?
Can I delete text by replacing it?
Does it support regular expressions?
\d+, [A-Z]\w+ and ^\s+ all work. In the Replace box, $1, $2 and $<name> insert the capture groups — so (\w+), (\w+) replaced with $2 $1 swaps every pair around. If the pattern does not compile, the error from the engine is shown rather than a generic message. Leave the box unticked and your search is matched literally, which is what most people want.