Find and replace text
Find and replace words or phrases, with case, whole-word or time-limited regular-expression matching.
AvailableIn your browserInput: Text
How to use: Find and replace text
- Paste the text you want to search.
- Type what to find and what to replace it with; choose case, whole word or regular expression.
- Press “Replace” and copy the result.
What it accepts and what you get
- Input
- Text up to 2 million characters.
- Output
- The text with the replacements and the number of changes.
- Where your data is processed
- Your data is processed in your browser and is not sent to our servers.
Limitations and notes
- Regular expressions run with a time limit so a slow pattern cannot freeze the page.
- With more than 1,000 regex matches nothing is replaced, so the text is never left half-changed.
Frequently asked questions
Can I use groups?
Yes: in regular-expression mode the replacement supports $1, $& and $<name>.
Suggested next steps
Related tools
- Available
Remove extra spaces
Remove double spaces, leading and trailing spaces, tabs, special spaces and invisible characters.
AvailableIn your browser - Available
Regex tester
Test JavaScript regular expressions with matches and capture groups. Time-limited for safety.
AvailableIn your browser - Available
Compare two texts
Compare two texts line by line and highlight what was added, removed and which words changed.
AvailableIn your browser - Available
Word counter
Count words, characters, sentences and paragraphs instantly.
AvailableIn your browser

