Find and replace

Paste your text, type what to find and what to replace it with, and the result updates instantly with a count of replacements. Regular expressions with capture groups are supported.

  • ๐Ÿ”’ Runs on your device
  • โค’ 0 bytes uploaded
  • โœ“ Free, no sign-up, no watermark
Loading the toolโ€ฆ

How to use Find and Replace

  1. Paste your text.
  2. Type the text to find and its replacement.
  3. Turn on Match case, Whole words or Regular expression if needed.
  4. Copy or download the result.

Is it private?

Yes. Find and Replace runs entirely in your web browser: what you type into it is never sent to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Nothing is stored either: close the page and it is gone. How Nolo works.

Questions and answers

Is my text uploaded?

No. The replacement runs in your browser and nothing is sent.

How do I use capture groups?

Turn on Regular expression, put parts of the pattern in brackets, and refer to them as $1, $2 in the replacement. For example (\d{4})-(\d{2})-(\d{2}) with $3/$2/$1 turns 2024-03-15 into 15/03/2024. Named groups (?<year>โ€ฆ) work as $<year>.

How do I replace line breaks or tabs?

Turn on "Understand \n and \t" and type \n for a new line or \t for a tab in either box. In regular expression mode \n works in the pattern automatically.

What does Whole words only do?

It only matches the text when it is not part of a longer word, so "cat" matches "cat" but not "category". It works with accented letters too.