Word & Character Counter
Count characters, words, sentences, paragraphs, and reading time in real time.
>
Skip to main contentSearch, count, and replace text occurrences instantly with case-sensitive filtering, whole-word matching, and RegEx pattern support.
Enter your text into the Original Text area on the left, or click Load Sample to test example paragraphs.
Type what you want to find in Find and your substitute phrase in Replace With. Watch the live match count badge update instantly.
Toggle Match Case, Whole Words Only, or Regular Expression (RegEx) to refine your target pattern.
Click Replace All to transform the document. If needed, click Undo Replace to revert, or click Copy Result to save.
A find and replace text utility is one of the most vital editing tools for writers, programmers, data processors, and digital marketers. Whether you need to update a recurring company name across a 50-page document, correct repeated spelling mistakes, reformat messy CSV logs, or substitute variables in code snippets, performing replacements manually is slow and prone to human error.
AllToolsNow provides a modern, browser-based online find and replace engine. With real-time match counting, whole-word filtering, and full Regular Expression (RegEx) pattern substitution, this tool handles complex batch text replacements instantly without sending a single byte of your data over the internet.
Standard text editors often perform blunt string replacements that accidentally corrupt surrounding text. Our tool provides three powerful filters to ensure exact targeting:
By default, search is case-insensitive, matching "Apple", "apple", and "APPLE". Checking Match Case restricts matches to identical capitalization, allowing you to update brand names or code variables without altering lowercase words.
Target: "May" (the month) Ignores: "may" (modal verb)
Prevents the classic "Scunthorpe problem" where short search strings corrupt longer words. Searching for "in" will replace the standalone preposition "in", but will leave "win", "inside", "origin", or "string" completely untouched.
Search: "cat" -> "dog" "the cat in a catalog" -> "the dog in a catalog"
Unlocks full programmatic pattern substitution. Match variable numbers, emails, phone numbers, HTML tags, or whitespace characters, and use capture groups ($1, $2) to reorder matched segments dynamically.
Pattern: \b(\d{4})-(\d{2})\b
Replace: $2/$1 (2026-11 -> 11/2026)
You don't need to be a software developer to harness the power of regular expressions. Enable Regular Expression and use these proven patterns for everyday text cleaning:
| Task | Find Pattern | Replace With | Result / Description |
|---|---|---|---|
| Remove HTML/XML Tags | <[^>]*> |
(leave empty) | Strips all markup tags, leaving clean plaintext |
| Remove All Digits / Numbers | \d+ |
(leave empty) | Deletes line numbers, timestamps, and numeric prefixes |
| Collapse Multiple Spaces | [ \t]{2,} |
(single space) |
Replaces runs of 2+ spaces with a single space |
| Swap "Last, First" to "First Last" | (\w+),\s*(\w+) |
$2 $1 |
Converts "Smith, John" into "John Smith" |
| Remove Punctuation Marks | [^\w\s] |
(leave empty) | Strips commas, periods, quotes, and exclamation marks |
| Mask Email Domains | @([a-zA-Z0-9.-]+) |
@example.com |
Anonymizes email domains for testing datasets |
Quickly rename characters, product names, or recurring terminology across book manuscripts and blog drafts. After replacing terms, verify your updated word count with our Word & Character Counter.
Batch-update API endpoint URLs, refactor configuration keys, or convert raw log outputs into structured datasets. To format variable names into camelCase or snake_case, use our Case Converter.
Clean exported SQL dumps, standardize date formatting, and remove inconsistent null values. When deduplicating rows or sorting entries alphabetically, pair your workflow with our Line Sorter & Deduplicator.
Swap tracking UTM campaign parameters across marketing URLs, update company phone numbers on local landing pages, or standardize internal website links in bulk.
Batch replacement can be nerve-wracking when working on important documents. A single incorrect character could alter hundreds of unintended sentences. Our tool incorporates three essential safety safeguards:
$) and special characters in your replacement string are treated strictly as literal text, preventing accidental variable injection.
If your text also contains messy extra spacing, clean redundant gaps with our Remove Extra Spaces tool, or unwrap awkward line breaks with Remove Line Breaks.
All text searches, match calculations, and replacements execute 100% locally in your web browser. Your confidential business reports, private notes, API credentials, and source files never touch our servers or any cloud database.
Count characters, words, sentences, paragraphs, and reading time in real time.
Convert text between UPPERCASE, lowercase, Title Case, camelCase, and snake_case.
Sort lines alphabetically, numerically, and remove duplicate entries instantly.
Collapse redundant spaces, clean tabs, and trim leading and trailing line margins.
Remove unwanted hard line breaks from PDFs, join lines, or convert to commas.
Reverse text backward, flip word order, or reverse lines with Unicode and emoji safety.