Skip to main content

Find & Replace Text

Find and replace with the accuracy other tools miss. Regex capture groups really work ($1, $2, $&, named groups) — most online tools return the literal “$1”. Whole-word is Unicode-safe and even handles terms like C++ and .env. Add Preserve case (cat→dog turns Cat→Dog, CAT→DOG), literal / wildcard / regex modes, a live highlighted preview with a match list, and bulk multi-rule replace. A runaway regex can't freeze your browser, and nothing is uploaded.

Input text 0 chars · 0 lines

Live preview —

Type text and a search term to see matches highlighted.
Matches 0 Lines affected 0

Matches

No matches yet.

Result —

Search

Find i

Replace with i

Options

Nothing to replace yet.
Real capture groups
Unicode whole-word
Runs in your browser
Can't freeze on bad regex
100% Free

Find & Replace Text

Working capture groups, Unicode whole-word, preserve case and live preview — private in your browser.


Find & Replace Text — With the Accuracy Others Miss

Renaming a product across 500 lines of content. Fixing a misspelled name in a whole document. Swapping old URLs for new ones. Reformatting every date in a CSV. Find and Replace is the fastest way to make consistent changes across large blocks of text — if the tool actually gets the details right.

This one does. Regex capture groups genuinely work — search (\w+)@(\w+), replace with $2 at $1, and the groups expand (many online tools insert the literal text “$1” instead). Whole-word matching is Unicode-safe and still works for awkward terms like C++ or .env. Add Preserve case (cat→dog also turns Cat→Dog and CAT→DOG), literal / wildcard / regex modes, a live highlighted preview with a numbered match list, bulk multi-rule replacement, and undo. No signup, no cost.

How to Find and Replace Text

1. Paste or Import

Paste content from documents, spreadsheets or code — or import a .txt, .csv, .md, .json or .log file. Nothing is uploaded.

2. Enter What to Find

Pick Literal, Wildcard (* and ?) or Regex mode. Matches highlight live as you type, with a match count and a line:column list.

3. Tune the Options

Case sensitive, whole word, preserve case, first-match-only, \n and \t escapes, plus multiline and dot-matches-newline for regex.

4. Replace, Copy or Undo

Review the result, then replace, copy, download as .txt, or apply it back to the input to chain edits. Undo restores the previous text.


Advanced Find and Replace Features

Real Regex Capture Groups

Use $1, $2, $&, named groups $<name> and $$ in the replacement. Reformat dates, swap name orders, restructure CSV fields — it all expands correctly.

Unicode Whole-Word

“cat” won't match “category”. Accented words like café match correctly, and terms with punctuation (C++, .env) still work — and Whole Word can be combined with a regex without breaking it.

Preserve Case

One pass handles every casing: replacing cat with dog turns cat→dog, Cat→Dog and CAT→DOG automatically instead of forcing one exact replacement everywhere.

Live Highlighted Preview

Matches are highlighted as you type, with a live count, the number of affected lines, and a list of every match by line:column showing exactly what it becomes.

Bulk Multi-Rule Replace

Turn on Bulk mode to run many Find/Replace rules in order, each applied to the result of the last — with a per-rule count. Ideal for glossaries and bulk renames.

Never Freezes, Private & Free

A runaway regex is stopped instead of hanging your browser, zero-length patterns can't loop forever, and nothing leaves your device. No signup needed.


Find & Replace — FAQs

Yes. Search (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1 to turn 2024-01-31 into 31/01/2024. $& (the whole match), named groups $<name> and $$ (a literal $) are supported. In Literal and Wildcard modes the $ character stays literal, so prices like “$5” are never mangled.

Yes. Whole Word wraps your pattern in Unicode word boundaries rather than escaping it, so \d+ keeps behaving as a regex and your capture-group numbering is unchanged. Whole Word also handles accented words (café) and terms that begin or end with punctuation such as C++ or .env, where a plain \b boundary would fail.

It copies each match's casing onto the replacement. Replacing “cat” with “dog” converts cat→dog, Cat→Dog and CAT→DOG in a single run — useful when renaming a term that appears mid-sentence, at the start of sentences, and in headings.

No. Matching runs inside a background Web Worker which is terminated if it exceeds a time limit, so catastrophically slow patterns (nested quantifiers like (a+)+b) are stopped and reported while your browser stays responsive. Zero-length patterns are guarded against infinite loops, and match counts are capped.

Yes — switch on Bulk mode and add as many Find/Replace rules as you need. They run top to bottom, each on the output of the previous rule, and each shows its own replacement count. Everything still happens locally in your browser.