Find and Replace Text

Find and replace text instantly. Search for plain text or regex, replace first or all matches. Case-sensitive option. Free, privacy-focused, 100% client-side.

100% Client-Side Processing

Your data is processed entirely in your browser. No data is sent to any server.

Case sensitive
Use regular expression
Replace first occurrence only

What is Find and Replace?

Find and replace (search and replace) lets you search for a string in your text and replace it with another string. You can replace the first match only or every occurrence. This tool supports both plain text and regular expressions, so you can do simple word swaps or pattern-based replacements (e.g. all numbers, all email addresses).

All processing happens in your browser. Your text is never sent to any server, so it is safe for sensitive or private content.

How it Works

  1. Enter the text to find: in the "Find" field. Turn on "Use regular expression" if you want to use a regex pattern.
  2. Enter the replacement text: in the "Replace with" field. For regex, you can use capture groups (e.g. $1, $2) in the replacement.
  3. Paste or type your input text: in the input area.
  4. Set options: case sensitive, replace first only, and view the result. The output updates as you type.
  5. Copy: the result with one click.

Options

  • Case sensitive: When on, "Hello" and "hello" are different; when off, they match regardless of case.
  • Use regular expression: When on, the Find field is treated as a JavaScript regex pattern. Invalid regex will show an error and the output will stay unchanged.
  • Replace first occurrence only: When on, only the first match is replaced; when off, all matches are replaced.

Common Use Cases

  • Bulk edits: Change a name, term, or phrase everywhere in a document.
  • Code and config: Replace variable names, URLs, or environment-specific values.
  • Data cleanup: Use regex to normalize dates, numbers, or formats (e.g. replace \d{3}-\d{2}-\d{4} with a masked version).
  • Lists and CSV: Swap delimiters, fix repeated typos, or standardize abbreviations.

Frequently Asked Questions

Can I use regex replacement groups?

Yes. When "Use regular expression" is on, you can use $1, $2, etc. in the Replace field to insert the first, second, … capture group. Use $& for the full match.

Is my text sent to a server?

No. All find-and-replace processing happens in your browser. Your text never leaves your device.

What if my regex is invalid?

If "Use regular expression" is on and the Find pattern is invalid, an error message appears and the output stays equal to the input until the pattern is fixed.

Share this tool

Share a direct link or embed this tool on your site. Keep the Tooladex attribution link to support the project.