How to use Find and replace
- 1
Paste your text into the Input box.
- 2
Type what to find and what to replace it with. Leave the replacement empty to delete the matches.
- 3
Choose match case, whole words or regular expression, check the highlighted matches, then copy or download the result.
What this tool does
Find and replace changes every occurrence of a word, phrase or pattern in a block of text at once. It is handy for renaming a term across a document, cleaning data before importing it, or reformatting dates, codes and phone numbers with a regular expression.
Features
- Plain text or regex. Search for literal text (special characters need no escaping), or use full JavaScript regular expressions.
- Match case and whole words, Unicode-aware.
- Capture groups in the replacement: $1, $2 and $&.
- Live highlights of every match in your original text, with a match count.
- Chain edits. "Use result as input" lets you run several replacements one after another.
- Safe on slow patterns. A search that runs too long is stopped, not left to freeze the page.
Limits
- Regular expressions use JavaScript syntax, which differs in places from Perl, Python or PCRE, for example in lookbehind support and flag names.
- Highlights are skipped for texts longer than 100,000 characters to keep the page fast; replacing still works.
- Formatting such as bold or colours is lost, because the tool works on plain text.
Where your text is processed
This tool works in your browser: what you paste is processed on your own device, so it isn't sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.
Frequently asked questions
Does it replace every match or just the first?
Every match. The counter shows how many were replaced, and the "Matches in your text" box highlights each one so you can check before copying.
What does "Whole words only" do?
It only matches the search when it stands as a word, so "cat" matches "cat" and "Cat." but not "category" or "concatenate". It works with accented letters and other alphabets.
How do I use regular expressions?
Tick "Regular expression" and type a JavaScript regex such as \d{3}-\d{4}. In the replacement, $1 and $2 insert captured groups, $& inserts the whole match and $$ a dollar sign. The ^ and $ anchors match at the start and end of each line.
What if my regular expression is too slow?
Some patterns, such as nested repeats like (a+)+, can take practically forever on certain text. The search runs separately from the page and stops after one second, and you'll see a message instead of a frozen tab.
Where is my text processed?
In your browser. Searching and replacing run on your own device, so your text isn't sent to our server.