This tool runs entirely on your device. Your files and the text you enter are processed by your browser and are never sent to a server.
Find and Replace Text
Find and replace text online: type a word or a regular expression, see every match highlighted with a live count, then replace them one at a time or all at once. Add several rules to run a batch of replacements in order. Everything runs in your browser, so your text is never uploaded.
212 characters
Press Enter in a Find box for the next match, Shift+Enter for the previous one.
Your text is processed on your device and never uploaded.
How to find and replace text online
- Paste your text. Paste or type the text into the Text box. A sample is loaded so you can try the tool straight away.
- Type what to find. Enter a word or phrase in Find. Every match is highlighted in the Matches panel with a live count. Press Enter or Next to jump to the next match and Shift+Enter or Prev to go back.
- Choose the options. Tick Match case to respect upper and lower case, Whole word to skip matches inside longer words, or Regular expression to use a pattern. Multiline makes ^ and $ match at each line.
- Replace. Enter the replacement and click Replace for the current match or Replace all for every match. Add rule creates another Find and Replace pair; Replace all applies the rules from top to bottom.
- Undo, copy or download. Undo restores the text before the last replacement. When you are happy, click Copy or Download .txt.
Features
- Live highlighting with a match count and next and previous navigation
- Replace the current match or replace all matches
- Several find and replace rules applied in order for batch replacements
- Match case and Unicode-aware whole-word matching that works for Korean and accented letters
- Regular expressions with $1, $<name> and $& in the replacement, and \n for a new line
- Multiline mode so ^ and $ match at the start and end of each line
- Undo up to 20 steps
- Invalid patterns are shown inline, and slow patterns are stopped instead of freezing the page
- Handles large texts (around 1 MB) smoothly
- Runs in your browser; your text is never uploaded
Regular expression examples
\s+→: collapse runs of spaces, tabs and new lines into one space.^\s+|\s+$with Multiline → empty: trim every line.(\w+)@(\w+)\.com→$1 at $2: rewrite email addresses.(\d{4})-(\d{2})-(\d{2})→$3/$2/$1: change the date format.
Frequently Asked Questions
How do I find and replace text online?↓
Paste your text, type the word to find and the replacement, and click Replace all. Matches are highlighted as you type, so you can check them first, and Replace changes only the highlighted current match. Undo restores the previous text if something goes wrong.
How do I use regular expressions and capture groups?↓
Tick Regular expression and write a JavaScript-style pattern. Parts in parentheses are capture groups that you can reuse in the replacement as $1, $2 and so on, or $<name> for a named group. For example, find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1 to turn 2026-11-20 into 20/11/2026. Use $& for the whole match and \n for a new line.
Does whole word matching work for Korean?↓
Yes. The usual \b word boundary in regular expressions only understands English letters, so this tool checks that the characters before and after a match are not letters or numbers in any language. With Whole word on, 한국 matches in “한국 사람” but not inside “한국어”, and café does not match inside cafés. Because Korean attaches particles directly to words, Whole word also skips forms like “한국은” or “한국에서”; turn it off when you want to replace those too.
Can I replace several different words at once?↓
Yes. Click Add rule to create more Find and Replace pairs. Replace all runs the rules from top to bottom, and each rule works on the result of the previous one, so you can swap or clean up many terms in one click. The status message shows how many replacements each rule made.
Is my text uploaded, and what happens with very slow patterns?↓
Your text stays in your browser and is never uploaded. Searches run in a background worker; if a pattern takes too long, for example because of nested quantifiers like (a+)+, the search is stopped and you see a message instead of a frozen page. Up to 2,000 matches are highlighted and counting stops at 100,000.
You might also need
All Text & Dev Tools →Regex Tester
Test regular expressions live.
Remove Line Breaks
Join broken lines into clean text, keep paragraphs.
Diff Checker
Compare two texts side by side.
Text Case Converter
camelCase, snake_case, Title Case and more.
Text Sorter & List Tools
Sort, dedupe, shuffle and clean lists.
Word Counter
Count words, characters and reading time.
Last updated: