Find and Replace
Find and replace text with case sensitivity and regular expression support.
Change a whole text at once
Use Find and Replace to change a name, product name, date format or misspelled word everywhere in a long document. You see instantly how many matches were found and replaced.
Advanced options
- Case-sensitive search
- Regular expression (regex) mode
- $1, $2 and named capture groups in the replacement
Regex example
Replace the pattern '(\d{2})/(\d{2})/(\d{4})' with '$3-$2-$1' to turn every date like 25/12/2026 into 2026-12-25. Processing happens in your browser.
How to use Find and Replace
- Paste your text.
- Enter the search term and the replacement.
- Turn on case sensitivity or regex if needed.
- Copy the edited text.
Why use this tool?
Run powerful regex replacements without a code editor; your text never leaves your device.
FAQ
Can I use capture groups?
Yes. In regex mode, $1, $2 and $<name> in the replacement refer to captured groups.
Can I replace line breaks?
In regex mode you can search for and replace line breaks with \n.
What if my regex is invalid?
The tool shows an error for invalid patterns and doesn't change the text.
Related tools
Whitespace Cleaner
Trim lines and clean up extra spaces, tabs and empty lines.
Open toolRegex Tester
Test JavaScript regular expressions with live match and capture group highlighting.
Open toolCase Converter
Convert text to UPPER CASE, lower case, Title Case, camelCase, snake_case and more.
Open toolRemove Duplicate Lines
Remove repeated lines from a list in one click while keeping the original order.
Open tool