Search for words, phrases, or regex patterns, highlight all matching occurrences, preview replacements, and replace single or all instances with instant copy and download.
Search and replace text instantly with live match highlighting. Supports case sensitivity, whole-word boundaries, regular expressions (RegEx), match navigation, undo history, and diff previewing.
Easily search through articles, code files, transcripts, or notes, and update matching words or patterns with full control:
Paste your content into the editor, drag-and-drop a text file, or click Paste Clipboard.
Type the word, phrase, punctuation, or regular expression in the Find Text field.
Enter the replacement text in Replace With. Leave it blank if you wish to completely remove matching words.
Toggle Match Case, Whole Word, RegEx, or Preserve Case to fine-tune replacements.
Review highlighted occurrences in yellow and navigate between them using the Next [N] and Prev [P] buttons.
Click Preview Diff to inspect removals in red and insertions in green before modifying your document.
Click Replace Next to replace one occurrence at a time, or click Replace All for global batch substitution.
Copy the updated text or download a clean .txt file. Use Undo at any time if you make a mistake.
See how different search options and regular expressions behave across common text operations:
| Operation | Find | Replace With | Options Enabled | Before & After Result |
|---|---|---|---|---|
| Standard Word Replacement | quick |
swift |
None | "The quick brown fox" → "The swift brown fox" |
| Whole-Word Matching | cat |
dog |
Whole Word | "The cat in the category" → "The dog in the category" |
| Case-Sensitive Replacement | Apple |
Orange |
Match Case | "Apple and apple" → "Orange and apple" |
| Deleting Words / Phrases | [DRAFT] |
(Empty) | None | "Report [DRAFT] 2026" → "Report 2026" |
| Preserve Case Intelligence | color |
shade |
Preserve Case | "Color, color, COLOR" → "Shade, shade, SHADE" |
| RegEx Email Domain Swap | @oldcompany\.com |
@newcompany.com |
Use RegEx | "john@oldcompany.com" → "john@newcompany.com" |
| RegEx Capture Groups | (\d{4})-(\d{2})-(\d{2}) |
$2/$3/$1 |
Use RegEx | "2026-10-27" → "10/27/2026" |
The PacesTools Find & Replace tool runs 100% in your local web browser via client-side JavaScript. Whether you are refactoring sensitive proprietary code, auditing confidential legal agreements, or cleaning personal contact records, your text is never transmitted over the internet or saved on our servers.
Our replacement engine uses non-destructive string slicing and certified regular-expression sanitization. It features an integrated undo/redo state stack so you can easily step backward through multiple replacement iterations without losing your original draft.
Answers to common questions regarding search rules, regular expressions, and replacements:
\d+, \w+), quantifiers, alternations, and capture groups (such as $1, $2) in the replacement field. If an invalid pattern is typed, the tool displays an alert without crashing.
\n to search for line breaks, \t for tabs, and \s+ for multiple spaces.
Enhance your writing, editing, and coding workflow with other free utilities available on PacesTools.