Free Online Text Replacer

Find and replace text with support for regex and case-insensitive matching.

edit Input
description Output
0 replacements made

Key Features

search

Simple & Regex Modes

Literal string replacement or full regex with capture groups and backreferences.

bolt

Real-time Replacement

Updates instantly as you type — no Replace button needed.

analytics

Match Counter

See exactly how many replacements were made for each operation.

lock

Privacy First

All processing happens locally in your browser. No data ever leaves your device.

Frequently Asked Questions

Usage
How do I match special regex characters like . or * literally in Regex mode?expand_more
In Regex mode, characters like ., *, +, ?, (, ), [, ], {, }, ^, $, and \ have special meaning. Escape them with a backslash to match literally: \. matches a literal period, \* matches a literal asterisk.
How do I use capture groups with $1, $2 backreferences?expand_more
In Regex mode, wrap parts of your pattern in parentheses to create capture groups, then reference them in the replacement with $1, $2, etc. For example, Find: (\w+)@(\w+\.\w+) and Replace: $2 [$1] transforms "user@domain.com" into "domain.com [user]". $& inserts the full match.
Why did my replacement not change anything?expand_more
If the replacement count shows 0, the Find pattern did not match any text. Common causes: Case-sensitive is checked but your text uses different casing; missing or extra spaces in the Find field; in Regex mode, unescaped special characters or a pattern that doesn't match; or the Find field is empty. Check the match count to confirm.
Does case-insensitive matching work with non-ASCII characters?expand_more
JavaScript's /i flag handles most Latin characters correctly but has edge cases with certain Unicode characters. German "ß" does not match "SS" case-insensitively, and Turkish "İ" (dotted I) to "i" conversion is not locale-aware. For full Unicode case folding in production, use a regex engine with the /u flag.
How do I replace newlines or tab characters?expand_more
In Regex mode, use \n for newline, \r for carriage return, and \t for tab. To match Windows line endings, use \r\n. For cross-platform line ending normalization, use \r?\n. In Simple mode, you can copy-paste a literal tab character into the Find field, though it may not display visibly. For replacing line breaks in Simple mode, switch to Regex.