Skip to content

Find and Replace

Text & writing · Done in 3 steps

Stays on your deviceFree · No sign-up
  1. 1Paste your text
  2. 2
  3. 3
Loading tool…

About

Find and replace text with plain or regex search, match case and whole-word options, live highlighting and a preview before you apply.

How to use it

  1. 1Paste your text.
  2. 2Type what to find and what to replace it with.
  3. 3Turn on regular expressions, match case or whole word if needed; matches highlight live.
  4. 4Check the preview, then click Replace all (Undo is available).
You give
Any text plus a search term or JavaScript regular expression
You get
Highlighted matches, a match count and the replaced text
Good to know
Regex uses JavaScript syntax (no possessive quantifiers or inline flags). Searches stop after 1.5 seconds to protect against runaway patterns, and highlighting is capped at 10,000 matches.
Privacy
Processed on your device. Nothing is uploaded, stored or logged.
Last tested
2026-10-28

FAQ

How do I use capture groups in the replacement?

Turn on Regular expression, wrap parts of the pattern in parentheses, then use $1, $2 (or $<name> for named groups) in the replacement. $& inserts the whole match.

Can I insert a line break?

Yes. With “\n \t in replacement” ticked, type \n for a new line or \t for a tab in the replacement box.

What if my regex freezes the page?

It can't: matching runs in a background worker and is stopped after 1.5 seconds with an explanation.

Go further with AI