Text & Regex
Find / Replace Tester
Test a literal or regular-expression find and replace before you apply it. See every match, inspect the exact result, and get a readable error when a pattern is invalid — all in your browser, so your text never leaves the page.
Find & replace
live
Literal mode matches exactly what you type. Regular-expression mode supports groups,
quantifiers and character classes — use $1, $2 in the
replacement to reference capture groups.
Input
originalOutput
replacedRead-only result. Copy or download it with the buttons above.
Match preview
0 matchesHow it works
The tool compiles your pattern in the browser and previews the result without ever modifying the input. Literal mode escapes every special character, so what you type is matched exactly. Regular-expression mode reports invalid patterns as a friendly, specific message instead of failing silently. All processing happens locally — no text is uploaded.