Find & Replace

Search and replace inside your text in place — regex with capture groups, whole-word and case-sensitive matching, a live match list you can click through, and undo. No separate output box to copy from.

Runs entirely in your browser — nothing is sent to our servers.

1 of 8
How to use it
  1. Paste or type your text into the document panel.
  2. Type a search term in Find — matches highlight in the list on the right as you type.
  3. Toggle Match case, Whole word or Regex as needed.
  4. Click any match in the list (or use the arrow buttons) to jump the cursor to it.
  5. Type a replacement, then press Replace for one match or Replace all for every match.
  6. Made a mistake? Press Undo to step back through your last 20 edits.

Document (176 chars)

Matches (8)

What is find and replace?

The recurring editing chore: a variable was renamed, an environment moved from staging to prod, or a log dump needs every occurrence of a timestamp format swapped for another. Doing it by eye means scrolling and re-reading the same text over and over, hoping nothing was missed or over-replaced.

This tool searches your text for a literal string, whole word, or regular expression, shows every match with its surrounding context in a live list, and replaces them — one at a time or all at once — directly in the document you're editing. There is no separate output panel to copy from: the text you paste in is the text you get back, edited.

Why use this tool

Most browser find-and-replace tools give you an input box, an output box, and a single Replace All button — you get one shot, and if the result is wrong you retype the input from scratch. This one edits in place with an undo button, so a Replace All that turned out too broad is one click to reverse, not a re-paste.

The match list is the other difference: instead of guessing whether your pattern matched what you intended, you see every match with context before committing, click any one of them to jump the cursor straight to it in the document, and step through them with the arrow buttons or Enter/Shift+Enter in the Find field.

Regex mode supports capture groups in the replacement — $1, $2, $& for the whole match, and $$ for a literal dollar sign — so a pattern like (\d{4})-(\d{2})-(\d{2}) can be rewritten as $2/$3/$1 without touching anything outside the matched date. Everything runs locally in your browser — nothing you type here is sent anywhere.

Match case, whole word, and regex — how they interact

Match case

Match case off (the default) finds Dog, dog and DOG alike; turning it on restricts matches to the exact case typed in Find.

Whole word

Whole word wraps the search in word boundaries, so searching for cat won't match inside concatenate or category. It composes with regex mode too — the boundaries wrap around whatever pattern you write, not just literal text.

Regex

Regex treats Find as a JavaScript regular expression instead of a literal string — an invalid pattern shows an inline error rather than silently matching nothing, so a stray unclosed bracket is obvious immediately rather than a confusing zero-match result.

Find & replace FAQ

No. Searching, matching and replacing all run locally in your browser.

Yes — unlike a separate input/output tool, the text you paste in is edited in place. Use Undo to step back if a replacement wasn't what you wanted.

The last 20 edits (single replaces and Replace All both count as one step each).

Yes, in Regex mode: $1 through $99 for capture groups, $& for the whole match, and $$ for a literal dollar sign. Outside regex mode, the replacement text is used exactly as typed.

Restricts matches to word boundaries, so a search for "cat" won't match inside "category" or "concatenate".

Invalid patterns (like an unclosed bracket or group) are reported inline immediately, rather than silently matching nothing — that way a typo in the pattern doesn't look like a real "no matches" result.

No — Match case is off by default, so Find matches regardless of letter case until you turn it on.