Find & Replace
What Is Find & Replace?
Find and replace is a fundamental text-editing operation that searches for occurrences of a specific string or pattern and substitutes them with different text. This tool performs the operation instantly in your browser, supporting both simple text matching and powerful regular expression patterns. Unlike basic text editors, this tool shows you the replacement count and result in real time, making it ideal for bulk text transformations.
How to Use
Enter text in the input area, type the search term and replacement text. All matches are replaced instantly. Enable regex mode for pattern-based replacements. Toggle case sensitivity as needed.
Features
Plain text mode escapes special characters automatically. Regex mode supports full JavaScript regular expression syntax including capture groups ($1, $2, etc.). Case-sensitive mode matches exact letter casing only.
Common Use Cases
- Code refactoring — rename variables, functions, or class names across code snippets
- Data cleaning — standardize formats, remove unwanted characters, or fix inconsistencies
- Batch editing — update URLs, file paths, or configuration values in bulk
- Content migration — convert markup formats or update outdated terminology
- Log analysis — extract or transform specific patterns from log files
Tips
In regex mode, use capture groups with parentheses and reference them in the replacement with $1, $2, etc. For example, searching for (\w+)@(\w+) and replacing with $2/$1 swaps the parts around the @ symbol. Use \b for word boundaries to avoid partial matches. If you need to replace literal special characters like dots or brackets in regex mode, escape them with a backslash (e.g., \. or \[). Always preview the result before copying to ensure the replacement is correct.
Privacy
All processing happens in your browser. No data is sent to any server.
FAQ
What is the difference between plain text and regex search?
In plain text mode the search term is matched literally, and special characters like dots or brackets are escaped automatically so they are treated as ordinary characters. In regex mode the term is interpreted as a JavaScript regular expression, enabling pattern matching and advanced replacements with capture groups ($1, $2).
Is it safe to paste text containing sensitive information?
Yes. All find-and-replace processing runs entirely in your browser — the text you enter is never uploaded, logged, or stored on any server. You can safely work with text containing API keys or personal data.
Can I replace a large amount of text at once?
The tool handles long text up to your browser's memory limits and replaces every match in a single pass. The replacement count is shown in real time so you can confirm the expected number of substitutions occurred.
How do I search for literal symbols like dots or brackets in regex mode?
In regex mode those characters have special meaning, so escape them with a backslash to match them literally (e.g., \. or \[). In plain text mode no escaping is needed — symbols are searched exactly as typed.
How can I verify the replacement is correct?
The result area shows the replaced text and the replacement count in real time, so you can preview the output before copying. To avoid unintended partial matches, use \b (word boundaries) in regex mode.