Find and Replace
Search and replace text instantly with support for case sensitivity, whole words, and regular expressions.
Find & Replace
Advanced text search & replace with history and diff
Beyond Basic Find and Replace
Most text editors have a basic find-and-replace feature, but they are tied to a file you have open in that editor. This online tool lets you paste any text — a document, a CSV, an API response, a list — and perform replacements instantly without opening a file, installing software, or learning editor shortcuts.
It supports case-sensitive matching, whole-word matching (so "cat" does not match inside "category"), and regular expression patterns for advanced users who need to replace text that follows a pattern rather than an exact string.
Regular Expressions for Power Users
Regular expressions (regex) let you match text patterns rather than exact strings. Some practical examples:
- Replace all email addresses:
\b[\w.-]+@[\w.-]+\.\w+\b - Remove all HTML tags:
<[^>]*> - Match phone numbers:
\+?[\d\s\-()]15 - Replace multiple spaces:
\s+→ single space - Remove lines starting with #:
^#.*$
Bulk Text Editing Use Cases
- Rebranding — replace an old company or product name throughout a document.
- Data cleaning — replace inconsistent spellings in a dataset.
- Template filling — replace placeholder variables like
{{name}}with actual values. - Code refactoring — rename a variable or function across a copied code snippet.
- Localization — replace all instances of one language phrase with another.
Knowledge Base
A powerful text transformation tool that finds specific words, phrases, or patterns in your text and replaces them with new content. It supports advanced matching criteria like case sensitivity and Regular Expressions (Regex).
- 1Paste your text into the Input area.
- 2Type the text you want to find in the 'Find' box.
- 3Type the new text in the 'Replace with' box.
- 4Toggle options like 'Case Sensitive', 'Whole Word', or 'Regex' as needed.
- 5Click 'Replace All' to apply the changes.
It provides a live match counter so you know exactly how many instances will be changed before you commit. The Regex support and whole-word matching make it as powerful as a code editor's search function, right in your browser.
What does the live 'matches' counter do?
As you type in the 'Find' box, it instantly scans your input text and shows how many times the word or pattern appears. This prevents accidental replacements and ensures accuracy.
When should I use 'Whole Word'?
Use it when you want to replace exact words only. For example, finding 'cat' with Whole Word ON will not match the 'cat' inside 'concatenate'.
Is the Regex feature safe for beginners?
Yes! If you write an invalid Regex pattern, the tool will display a red 'Invalid Regex' warning instead of crashing, so you can safely experiment and learn.