Find and Replace

Bulk find-and-replace with optional regex, capture groups and live match highlighting.

Enter something to find.


PreviewMatches highlighted in place
Matches will be highlighted here.
Result will appear here.

Features

  • Plain-text or regular-expression matching
  • Capture group references such as $1 in the replacement
  • Case-sensitive and whole-word modes
  • Live preview highlighting every match before you commit
  • Undo the last replacement

How to use it

  1. Paste your text into the top box.
  2. Type what to find and what to replace it with.
  3. Check the preview, matches are highlighted.
  4. Press Replace all, then copy the result.

Using regular expressions safely

With regex mode off, your search text is escaped and matched literally, so characters like . and * mean exactly themselves. That is almost always what you want for ordinary editing, and it prevents the surprise of a full stop matching every character in the document.

Turn regex mode on and the pattern gains real power. \d+ matches runs of digits, \s+ matches whitespace, and parentheses create capture groups you can reference in the replacement as $1, $2 and so on. Swapping (\w+), (\w+) for $2 $1 reverses comma-separated pairs across an entire file in one pass.

Two cautions. First, always read the preview before replacing, a pattern that matches more than you expected is the single most common way to damage a document, and the highlighting exists precisely to catch that. Second, certain nested-quantifier patterns such as (a+)+b can take exponential time on non-matching input, freezing the tab. If the preview stops updating after you type a complex pattern, simplify it.

Frequently asked questions

Yes, completely. Find and Replace is free with no usage limits, no account and no sign-up. There is no paid tier and no trial that expires. Tools marked Premium on this site carry that label to indicate a deeper feature set, not a price.
Find and Replace covers plain-text or regular-expression matching, capture group references such as $1 in the replacement, case-sensitive and whole-word modes, among other things. Everything is available immediately with no account, no sign-up and no usage limit.
With regex mode off, your search text is escaped and matched literally, so characters like . and * mean exactly themselves. That is almost always what you want for ordinary editing, and it prevents the surprise of a full stop matching every character in the document.
Everything happens inside your browser. The text you enter is processed by JavaScript running on your own device and is never sent to a server, there is no backend to send it to. You can confirm this in your browser's Network tab while you use the tool. Because nothing depends on a server, the tool also keeps working offline once the page has loaded, the site registers a service worker that caches it after your first visit.

Related tools

Further reading

📖 Find and Replace Online: Bulk-Edit Text Without Opening an Editor

Read the full guide on the 123MiniApps blog.

Pick a theme

Ten hand-tuned palettes.