Find and Replace
Find and replace across pasted text live, with match case, whole words, and regex modes.
Replacements run live as you type. Nothing leaves your browser.
Paste some text to get started.
How to find and replace text online
Paste your text
Paste or type the text you want to change into the text box.
Set find and replace
Type the text to find and its replacement. Toggle match case, whole words, or regex mode to control how matches are found.
Copy the result
The replaced text appears instantly with a replacement count. Copy result puts it on your clipboard.
Why use this tool
Three matching modes
Match case, whole words, and regex toggles control exactly which occurrences are replaced. They combine, and the result re-runs the moment one changes.
Capture group references
In regex mode, $1, $&, and $<name> in the replace field reuse the matched parts, so you can reorder text instead of just swapping it.
Live replacement count
The result shows how many replacements were made and highlights each one in place, updating as you type.
Built for large pastes
Long documents and exports stay responsive. The text boxes scroll instead of growing, and typical files are replaced instantly.
Nothing leaves your browser
The text, the find term, and the replacement are processed on your device and never uploaded.
About this tool
This tool finds every occurrence of a word or phrase in pasted text and replaces it in one pass. Paste the text, type what to find and what to put in its place, and the result updates live with a count of how many replacements were made. It covers the jobs a full editor is overkill for: renaming a product across a pasted price list, cleaning a recurring artifact out of a spreadsheet export, or fixing the same typo through a long document before pasting it back where it came from.
Plain mode treats the find term literally, so characters like dots and brackets mean nothing special. Match case restricts replacements to the exact capitalisation you typed, and whole words skips matches inside longer words, so replacing cat leaves category alone. Regex mode is for structural edits: replacing (\d+)-(\d+) with $2-$1 swaps the two numbers around every hyphen in the text, something no literal search can do. References like $1 and $& in the replace field reuse the matched parts. To work out a pattern before running it, the regex tester shows matches and capture groups live.
Everything runs on your device. Nothing you paste is uploaded or stored, so customer exports and internal documents are safe to work on. To verify exactly what changed, paste the before and after into the text diff tool. For cleanup that goes beyond replacement, remove whitespace strips stray spacing and the case converter rewrites text between naming styles.
Frequently asked questions
- What do the match case, whole words, and regex toggles do?
- Match case makes replacements case sensitive, so Cat and cat are treated as different words. Whole words skips matches inside longer words, so replacing cat leaves category untouched. Regex turns the find field into a regular expression pattern for structural matches like numbers, dates, or repeated formatting. The toggles combine, and the result updates the moment one changes.
- Can I use $1 and other references in the replace field?
- Yes, in regex mode. $1 through $99 insert the matching capture group, $& inserts the whole match, $<name> inserts a named group, and $$ produces a literal dollar sign. In plain mode the replace field is inserted exactly as typed, so a $ has no special meaning. To build and check a pattern with capture groups first, use the regex tester.
- How does whole words handle punctuation and symbols?
- Whole words matches only where the find term is bordered by the start or end of the text, or by characters that are not letters, digits, or underscores. If the term itself starts or ends with a symbol, like a dot or a dash, there is no word edge to anchor to at that end, so matches at that side can be looser than expected. For terms like that, plain mode without whole words is more predictable.
- Is the text I paste uploaded anywhere?
- No. The text, the find term, and the replacement are processed entirely on your device. Nothing is sent to a server, stored, or logged, so customer exports and internal documents are safe to work on.
- Is there a limit on how much text I can paste?
- There is no fixed size limit, and typical documents are replaced instantly. To keep the page responsive, replacing stops after 100,000 matches and leaves the rest of the text unchanged, and highlighting is shown for the first 1,000 replacements. The copied result always contains the full replaced text.
Related tools
Regex Tester
Test regular expressions live against sample text, with match highlighting, capture groups, find and replace, and all six flags.
Text Diff Checker
Compare two texts and see every addition and deletion highlighted, by word, line, or character.
Add Line Numbers
Prefix every line of your text with a number. Set where the count starts, choose a separator, pad with leading zeros, and skip blank lines.
Alternating Case Generator
Turn text into aLtErNaTiNg caps, the mocking SpongeBob style.
Case Converter
Switch text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.
Email Extractor
Pull every email address out of any text, then deduplicate, sort, lowercase, and copy the clean list.