Find and Replace
Find and replace text right in your browser. Paste your text, type what to find and what to replace it with, then read the result and a count of how many replacements were made. Turn on case insensitive or whole word matching when you need it, or switch to regex mode for pattern based edits. Nothing is uploaded, so your text stays on your device.
How to use
- Paste or type your text into the Text box.
- Enter the word or phrase to find, then the text to replace it with.
- Tick case insensitive or whole word if you need stricter or looser matching.
- Switch on regex mode to match by pattern and use $1 style references in the replacement.
- Read the updated result and the replacement count, then copy it with one click.
Examples
- Replace every "cat" with "dog" in "cat cat cat" gives "dog dog dog" with 3 replacements.
- With whole word on, replacing "cat" in "cat category cat" only changes the standalone words, giving "dog category dog" with 2 replacements.
- In regex mode, find "(\d+)-(\d+)-(\d+)" and replace with "$3/$2/$1" to turn "2026-06-06" into "06/06/2026".
FAQs
- Is my text sent to a server?
- No. All matching and replacing happens in your browser, so the text never leaves your device.
- What does whole word matching do?
- It only replaces the find term when it stands alone between word boundaries. Searching for "cat" with whole word on will skip "category" and similar words.
- How does regex mode work?
- Your find string is treated as a regular expression. You can use groups in the pattern and refer back to them in the replacement with $1, $2, and so on. Use $& to insert the whole match and $$ for a literal dollar sign.
- What happens if my regex is invalid?
- The tool catches the error and shows a clear message instead of breaking. Fix the pattern and the result updates as soon as it is valid.
- Does it count how many replacements were made?
- Yes. The result area shows the exact number of matches that were replaced, which is handy for checking that an edit did what you expected.
- Are special characters like dots treated literally?
- In plain mode, yes. A search for "a.b" matches only that exact text, not any character in between. Turn on regex mode if you want the dot to act as a wildcard.
Related tools
- Regex TesterTest a regular expression against sample text in your browser. See every match, its index, capture groups, and the total count.
- Remove Duplicate LinesRemove duplicate lines from text online. Optional case insensitive matching and whitespace trimming, with a count of removed lines.
- Sort LinesSort lines of text online. Alphabetical (A to Z, Z to A), case insensitive, numeric, by length, or reverse. Fast, private, and free.
- Whitespace RemoverClean up whitespace in text. Trim lines, collapse extra spaces, remove blank lines, or strip all spaces. Free, fast, and private in your browser.
- Word CounterCount words, characters, sentences, paragraphs, and reading time for any text. Live, private, and free in your browser.
- Case ConverterConvert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case instantly in your browser.