Skip to main content
SuperTextTools

Find and Replace

Find and replace text with regex, case sensitivity, and whole-word matching. Bulk edits in your browser — nothing uploaded.

Instant 100% Private Free Forever
Find Replace Regex Search Text
Input 0 chars · 0 lines
Preview matches
Output

Run a replace to see the result

 
Try an example

How to use Find and Replace

Four steps to search, replace, and export text in your browser.

  1. 1

    Paste your source text

    Add the document, log file, or code snippet you want to edit in the input panel.

  2. 2

    Enter find and replace

    Type what to search for and what to insert. Toggle regex, case, or whole-word options as needed.

  3. 3

    Preview matches

    Watch the live match count. Expand “Preview matches” to see highlights before replacing.

  4. 4

    Replace and copy

    Use Replace First to verify, then Replace All for the full result. Copy or download from output.

What is Find and Replace?

Find and replace is one of the oldest features in text editing — born in early word processors and command-line editors, then refined over decades into the indispensable workflow developers, writers, and data analysts use every day. What started as literal string search grew into case options, whole-word matching, and eventually regular expressions for patterns that describe whole classes of text at once.

SuperTextTools runs find and replace entirely in your browser. Paste source text, define what to find and what to insert, preview matches, then replace one occurrence or every match — with optional regex, case sensitivity, and whole-word boundaries.

Common use cases

  • Renaming in code — change a variable name without touching similar identifiers like userId when you only mean user (whole-word mode helps).
  • Fixing typos — replace every teh with the across a draft in one click.
  • Bulk data edits — CSV columns, config files, exported JSON, log files.
  • Anonymizing data — strip emails, phone numbers, or names with regex capture groups.
  • Reformatting — swap date formats, change separators, normalize whitespace.
  • Cleaning imports — remove timestamps, headers, or boilerplate from scraped text.

The power of regex in find/replace

Literal find/replace is enough for fixed strings. Regex mode matches variable text: any digit, any URL, any email shape. Capture groups let you restructure matches — turn Last, First into First Last, or mask usernames while keeping domains. Anchors like ^ and $ target line starts and ends when multiline mode is on.

Tips for power users

  • Start in literal mode; switch to regex when patterns get complex.
  • Use Replace First on a sample before Replace All on the full document.
  • Expand Preview matches to verify highlights before committing.
  • Save regex patterns you reuse — they transfer across projects.

Frequently asked questions

Does this work with regular expressions?
Yes — toggle Use regex. JavaScript regex syntax applies (similar to PCRE for most patterns). Use $1, $2 in the replacement to reference capture groups.
What's "Whole word only"?
When ON, cat matches only the word cat — not concatenate or catalog. Boundaries use \b (word chars vs non-word chars). Punctuation-only searches behave oddly with whole-word mode.
Why doesn't my replacement work with special characters?
In regex mode, $ is special ($1 = capture group). For a literal $, use $$. In non-regex mode, $ is treated literally (we escape it for you).
Can I use this on huge files (10MB+)?
Yes, but very large inputs may briefly slow the browser. Process in chunks if it lags. For files over ~50MB, a desktop editor or ripgrep is often faster.
Does it support multiline patterns?
Yes, in regex mode. Multiline adds the m flag so ^ and $ match line boundaries. Dotall (s) makes . match newlines.
Is my text sent to a server?
No. Find and replace runs entirely in your browser. Your text never leaves your device.