Text Tools

Find and Replace

Search and replace text using plain strings or full regular expressions. Replace all occurrences globally, use capture groups in replacement strings, and see a match count before committing. All in your browser.

Literal or regex mode Replaces all matches Browser-only
Source text

Enter search term and replacement below, then run.

Mode
Replaced text
Download

Processed in your browser; your text is never uploaded

Features

  • Plain text and regex (regular expression) find modes
  • Global replace or replace first occurrence only
  • Case-insensitive search toggle
  • Capture group references in replacement ($1, $2)
  • Shows match count before replacing
  • Copy or download the modified text

How to use it

  1. Paste your text in the input panel.
  2. Enter the search string or regex pattern.
  3. Enter the replacement text (use $1 for capture groups).
  4. Click Replace. The modified text appears in the output.
  5. Copy or download the result.

Use cases

  • Batch-renaming variables in a code snippet
  • Stripping specific HTML tags or Markdown syntax
  • Reformatting date strings from MM/DD/YYYY to YYYY-MM-DD
  • Replacing placeholder text in a template document

Limitations

  • Supports plain text, case-insensitive matching, and optional regular expression patterns.
  • Very large text blocks depend on browser memory.
  • Processing happens entirely in the browser tab.
Questions & answers

Frequently asked

Can I use regex capture groups in the replacement?

Yes. Use $1, $2, etc. to reference capture groups from the regex pattern. For example, replacing (\w+)-(\w+) with $2-$1 swaps hyphen-separated words.

Does it support multi-line regex?

Yes. The multiline flag is available, making ^ and $ match line boundaries rather than only the start/end of the entire string.