Find & Replace
Search and replace text with optional regex support.
The Find & Replace tool lets you search for text and replace it instantly. It supports plain text matching, regular expressions, case-sensitive and whole-word options. Whether you need to rename variables across a block of code, swap out product names in a document, or fix a repeated typo, this tool handles it in one click.
What This Tool Does
Paste your text, enter what you want to find and what to replace it with, and click the button. Every occurrence is replaced at once. The match counter shows exactly how many replacements were made. With regex support, you can perform advanced pattern-based replacements — capture groups, character classes, and quantifiers all work.
Why Use This Tool
It helps you update repetitive text quickly and accurately, especially when editing long documents, datasets, templates, or code snippets with recurring patterns.
How to Use
- Insert the source text directly or import it from a file.
- Type the text you want to find in the "Find" field.
- Type the replacement text in the "Replace with" field.
- Toggle options (case-sensitive, regex, whole word) as needed.
- Click Find & Replace or see live results as you type.
Common Use Cases
- Renaming variables or terms across a document
- Fixing repeated typos or misspellings
- Replacing delimiters (commas to tabs, tabs to pipes)
- Using regex to reformat dates, phone numbers, or patterns
- Swapping placeholder text in templates
Tips
-
Use regex with capture groups like
(\\w+)@(\\w+)and replace with$1 at $2 - Enable "Whole word only" to avoid partial matches (e.g., replacing "cat" without affecting "category")
- Leave the "Replace with" field empty to delete all matches
Frequently Asked Questions
Does it support regex?
Yes. Toggle the "Use regex" option to search using regular expressions.
Can I replace all occurrences at once?
Yes. By default, all matches are replaced. You can see a count of how many replacements were made.
Is it case-sensitive?
By default, no. You can toggle case-sensitive matching with the checkbox.
Is my data private?
Yes. All processing runs in your browser. Nothing is uploaded to any server.