Find & Replace
Find and replace text locally in your browser with live match counts, case-sensitive, whole-word, and regular expression capture-group support.
About this tool
Plain searches escape special regex characters automatically, Whole word wraps patterns in \b boundaries, and Regex mode compiles native JavaScript RegExp with global matching in under 20 ms even on 5,000-line inputs.
How to use find and replace
- Paste the text into the input box on the left.
- Type the text to find in the Find box, and the replacement in Replace with.
- Tick Case-sensitive, Whole word or Regex when the match needs to be exact.
- Read the replaced output and the match count, then copy the output or download it as a .txt file.
Plain text, whole words and regular expressions
A plain search finds every occurrence of the characters you type. With Case-sensitive off, Qgenx and qgenx both match. Whole word stops a search for cat from changing the middle of category, which is the most common cause of accidental edits.
Regex mode treats the Find box as a regular expression, so you can match patterns such as order-\d+ or a whole email address. Groups can be reused in the replacement, which lets you reorder dates or names.
A worked example
Find $19.99 and replace with $24.99 in the sample, and the new price appears in its line. Find Qgenx with Case-sensitive and Whole word ticked, and only the exact capital form changes, so the lower-case qgenx in the last line stays as it is.
- Replace an old product name across a long document in one step.
- Change a set of order numbers to a new format with a regular expression.
Who uses find and replace
- Editors updating prices, names and dates across a document.
- Developers renaming variables and fixing config values in a text file.
- Support teams standardising reference numbers.
- Students correcting a repeated spelling mistake in an essay.
- Anyone who needs to change the same word many times.
Tips and common mistakes
- Run a search without a replacement first, and check the count before you replace everything.
- In regex mode, escape special characters such as . ( ) and $ when you mean them literally.
- Keep a copy of the original. The tool replaces the text in the output only, so the input stays as you pasted it.
- Whole word does not work for every language or for text with punctuation attached. Check the result.
- All replacements happen in your browser, and the text is not uploaded.
Frequently asked questions
Related browser tools
Word Counter
Count words, unique words, characters without spaces, sentences, reading time, speaking time, and keyword density locally in your browser with zero uploads.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case locally in your browser with zero uploads.
Remove Duplicate Lines
Remove duplicate lines from any list or text file locally in your browser with case-sensitive, trim whitespace, blank-line, and A-Z sort options.