Find & Replace

0 matches replaced

About Find & Replace

Replace every occurrence of a word or pattern in a block of text, with live match counting, case and whole-word options, and optional full regex support.

A quick find-and-replace over a block of text is one of those things that's mildly awkward in most plain text editors and a whole extra step in a spreadsheet — paste the text here, type what to find and what to replace it with, and see the result and the exact match count immediately.

By default the search is a literal, case-sensitive match — no special characters need escaping, and a period matches only a period. Turning on regex mode switches to real JavaScript regular expression matching, including capture groups referenced in the replacement as `$1`, `$2`, and so on, for anything a plain literal search can't express.

Whole-word matching only applies outside regex mode, by design — wrapping an arbitrary regex pattern in word boundaries automatically could silently change what it matches, so in regex mode word boundaries are something you write into the pattern yourself with `\b`.

What you can use it for

  • Replace every instance of an old name, URL, or term across a pasted document.
  • Clean up inconsistent spacing or punctuation with a regex pattern.
  • Swap placeholder text in a template before pasting it elsewhere.
  • Reformat data using regex capture groups, like rearranging "Last, First" to "First Last".
  • Check how many times a word or pattern actually appears before replacing it.

How it works, step by step

  1. 1

    Paste your text

    Drop the text you want to edit into the box.

  2. 2

    Type what to find and what to replace it with

    Plain text by default, or a regex pattern with "Use regex" turned on.

  3. 3

    Adjust the options

    Ignore case, match whole words only, or switch to regex.

  4. 4

    Copy the result

    See the match count and the updated text immediately.

Frequently asked questions

Does this support regular expressions?

Yes — turn on "Use regex" and the find field is treated as a real JavaScript regex pattern, with $1, $2, and named groups usable in the replacement.

Why is "whole word only" grayed out in regex mode?

Wrapping an arbitrary pattern you typed in word boundaries automatically could quietly change what it matches. In regex mode, add \b to the pattern yourself where you want it.

Does this replace every match, or just the first one?

Every match, always — unlike a raw .replace() call in code, there's no reason to stop at the first one here.

Is my text sent anywhere?

No. Matching and replacing both run entirely in your browser.