Find and Replace
Search a draft or a log, replace phrases or use a regular expression, and see how many matches you will change before you apply them.
Text, find & replace
Limits
- A regular expression that backtracks heavily can freeze the tab. If the page becomes slow, make the pattern more specific or work on a smaller slice of text.
- Lookbehind and Unicode property escapes need a current browser; very old browsers may reject some patterns.
- There is no “undo” stack beyond the original text remaining in the input until you overwrite it.
- Very large pastes (over about 500,000 characters) are refused so the tab does not freeze. Split the work into smaller pieces if you hit that limit.
Result
How to use Find & Replace
- Paste textPaste the text or load a local file.
- Set find and replaceType the search and replacement. Optionally use a regular expression, ignore case, or match whole words.
- Replace or copyReview the match count, replace all (or step through one by one), then copy or download the result.
Plain text or regular expressions
In plain mode, the find box is taken literally — including punctuation and spaces. In regex mode, JavaScript regular expressions are used (the same engine as your browser). Replacement patterns such as $1 and $& work in regex mode only.
Whole-word mode wraps the query so it must fall on Unicode letter/number boundaries. It can be combined with regex, but a pattern that already includes its own anchors may then match less than you expect.
Frequently asked questions
Are regular expressions “global” by default?
Replace all uses a global search. The match count also lists every match. Replace one changes only the current match, then moves to the next.
Is my text sent anywhere?
No. Everything runs in your browser tab with JavaScript. Nothing you type or paste is uploaded, logged or stored on our servers.
Does “ignore case” work with Unicode?
It uses the regex i flag (and u when possible). Case folding follows the JavaScript engine, which covers many, but not all, language-specific mappings.
Can I replace across several files?
No. This tool works on one text at a time. Load each file in turn, or combine them first.
Related tools
All toolsText Cleaner
Trim, collapse spaces, strip punctuation or emoji, and tidy messy pasted text.
Text Diff Checker
Compare two texts and highlight added, removed and changed lines and words.
Case Converter
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.
Word Frequency Counter
Count how often each word appears, with percentages and a CSV download.