Find and Replace Text — Free Online Tool
Last updated: January 2025
What is Find and Replace Text?
Find and Replace lets you search for text or regex patterns and replace them — with a count of how many replacements were made.
When to use Find and Replace Text?
Use it to bulk-replace words, fix repeated errors, substitute placeholders, and perform regex-based transformations.
How to use this tool
- 1Paste your text
- 2Enter the search term and replacement
- 3Choose options (regex/case-sensitive) and click 'Replace'
Examples
| Input | Output |
|---|---|
| 'color' → 'colour' in 500 words | All instances replaced + count shown |
| Regex: \d+ → [NUMBER] | Replaces all numbers with [NUMBER] |
| ' ' (double space) → ' ' (single) | Fixes double spaces throughout |
| [PLACEHOLDER] → 'Company Name' | Template variable substitution |
| old-api-url → new-api-url | Bulk URL replacement in docs |
Rules & Behavior
- Regex mode supports full JavaScript regex syntax
- Case-sensitive option available
- Shows count of replacements made
Related Tools
Frequently Asked Questions
Does it support regular expressions?
Yes, enable regex mode to use full JavaScript regular expression syntax for powerful pattern-based replacement.
Is the search case-sensitive?
By default, the search is case-insensitive. Enable the case-sensitive option to match exact letter cases.
Can I replace all occurrences at once?
Yes, by default it replaces all occurrences. You can also choose to replace only the first occurrence.
How many replacements does it show?
After replacing, the tool shows exactly how many replacements were made, so you know what changed.
What regex syntax is supported?
Full JavaScript/ES2022 regex syntax is supported, including lookaheads, groups, character classes, quantifiers, and flags.