D

Find & Replace

Find and replace text with literal strings or regex patterns — with case sensitivity control.

Runs 100% in your browser — nothing is uploaded

About this tool

The Find & Replace tool performs bulk text substitution on any input: enter a search term and a replacement, and every occurrence in the text is replaced instantly. Supports both plain-text matching and full regular expression patterns, with case-sensitive and case-insensitive modes.

Regex mode lets you use capture groups, anchors, lookaheads, and any JavaScript RegExp feature. For example, find \b(\w+)\s+\1\b to detect doubled words. The replacement count is shown live so you always know how many substitutions were made.

All text stays in your browser — nothing is sent to a server. Common uses: cleaning up exported data, bulk-renaming variable occurrences in a snippet, stripping repeated words, transforming text formats, or removing unwanted characters from copied content.

Frequently asked questions

Can I use capture groups in replacement?
Yes. In regex mode, use $1, $2, etc. to reference capture groups in the replacement string. For example, find (\w+)@(\w+) and replace with $2/$1 to swap the parts of an email address.
How do I replace all occurrences vs. just the first?
This tool always replaces all occurrences (global flag). There is no single-replacement mode.
What does "case sensitive" do?
When enabled (default), "hello" matches only lowercase "hello". When disabled, it also matches "Hello", "HELLO", "HeLLo", etc.
My regex gives an error — why?
Common causes: unescaped special characters (use \. not . to match a literal dot), invalid quantifiers (like *+ without a preceding token), or unclosed groups. The error message from the browser's RegExp engine is shown inline.