No replacements yet
Find & Replace
Advanced text find and replace tool with regex support, case sensitivity options, whole word matching, batch replacements, preview mode, and replacement history. Process text instantly in your browser.
Text Editor
Paste a public Google Docs, Sheets, or Slides link below.
Replace History
Common Find & Replace Examples
[space][space] → Replace: [space]
\n\n+ → Replace: \n
^\s+ → Replace: (empty)
\b(\w+)\s+\1\b → Replace: $1
email pattern → Replace: [EMAIL]
Keyboard Shortcuts
Advanced Find and Replace for Text Processing
Our Find and Replace tool goes beyond simple text substitution. With support for regular expressions, case-sensitive matching, whole word search, and batch replacements, you can perform complex text transformations in seconds. Whether you're cleaning data, refactoring code, or editing documents, this tool handles it all with precision.
All processing happens locally in your browser, ensuring complete privacy for sensitive documents. No data is ever sent to servers, and you can work offline after loading the page. Process files up to 50MB with instant results.
How to Use Find and Replace
Enter Your Text
Paste text directly, upload a file (TXT, CSV, JSON, etc.), or import from Google Docs. Drag and drop files are also supported.
Set Search Options
Configure case sensitivity, whole word matching, regex mode, or multi-line options based on your needs.
Enter Find & Replace
Type the text or pattern to find, and the replacement text. Use Preview to see changes before applying.
Replace & Export
Click Replace All to apply changes, then copy to clipboard or download the modified text.
Regular Expression Quick Reference
Character Classes
.
Any single character
\d
Any digit (0-9)
\w
Word character (a-z, A-Z, 0-9, _)
\s
Whitespace (space, tab, newline)
[abc]
Any of a, b, or c
[^abc]
Not a, b, or c
Quantifiers
*
0 or more
+
1 or more
?
0 or 1 (optional)
{n}
Exactly n times
{n,m}
Between n and m times
*?
Non-greedy (lazy) match
Anchors & Groups
^
Start of line
$
End of line
\b
Word boundary
(abc)
Capture group
(?:abc)
Non-capturing group
a|b
a or b (alternation)
Replacement Tokens
$1, $2
Captured groups 1, 2, etc.
$&
Entire matched text
$`
Text before match
$'
Text after match
$$
Literal $ character
\n
Newline character
Common Find & Replace Examples
Find Email Addresses
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Matches standard email addresses like user@example.com
Find Phone Numbers
\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}
Matches formats like (123) 456-7890 or 123-456-7890
Find URLs
https?://[^\s<>"{}|\\^`\[\]]+
Matches HTTP and HTTPS URLs
Remove Extra Spaces
\s{2,}
Replaces multiple spaces with a single space
Remove HTML Tags
<[^>]+>
(empty)
Strips all HTML tags from text
Swap Words
(\w+)\s+(\w+)
$2 $1
Swaps two consecutive words
Powerful Features
Regular Expressions
Full regex support with capturing groups, lookahead/lookbehind, quantifiers, and character classes for complex pattern matching.
Batch Replacements
Define multiple find/replace pairs and execute them all at once. Perfect for complex multi-step transformations.
Live Preview
See highlighted matches in real-time as you type. Preview changes before applying to ensure accuracy.
Replace History
Track all your replacements with the ability to undo changes. Never lose your original text.
File Support
Upload and process text files up to 50MB. Supports TXT, CSV, JSON, HTML, and many more formats.
100% Private
All processing happens in your browser. Your text never leaves your device, ensuring complete privacy.
Common Use Cases
Code Refactoring
- Rename variables across files
- Update function names
- Change import paths
- Fix coding conventions
Data Cleaning
- Remove unwanted characters
- Standardize formats
- Fix encoding issues
- Clean CSV/JSON data
Document Editing
- Find and fix typos
- Replace outdated terms
- Standardize formatting
- Update references
Web Development
- Update URLs en masse
- Change CSS class names
- Modify HTML attributes
- Fix broken links