Skip to content

Find and Replace Text Online

In-browser only ECMAScript regex Up to 500K chars
Try
↵ replace all · Esc exit
No matches found
Runs in your browser — your text never leaves your device.
Source text234 characters · 39 words
Result preview0 characters · 0 words

Overview

Search, preview, and replace — with full visibility

Paste any text — emails, code, CSV files, documents — and instantly see every match highlighted. Choose to replace all at once or step through one by one. Regex support lets you match phone numbers, emails, and complex patterns; the live preview shows the result before you commit. Everything runs in your browser, so your content never leaves your device.

Guide

How to use

  1. 1
    Paste your text

    Click the Source text area and paste or type the content you want to modify. The character and word count updates instantly.

  2. 2
    Type what to find

    Enter the text you want to search for in the Find field. Every match is highlighted in the source pane and counted in real time.

  3. 3
    Type the replacement

    Fill in the Replace with field. The right-hand Result preview updates live so you can see exactly what the output will look like.

  4. 4
    Replace all or step through

    Click Replace all to update every match at once (with a confirmation step), or Replace one… to review each occurrence individually and choose Replace or Skip.

Reference

Regex quick reference

Regex quick reference
PatternMatches
.Any single character (except newline)
\dAny digit (0–9)
\DAny non-digit
\wWord character (a–z, A–Z, 0–9, _)
\WNon-word character
\sWhitespace (space, tab, newline)
\SNon-whitespace character
^Start of a line (multiline mode)
$End of a line (multiline mode)
\bWord boundary
*Zero or more of the preceding
+One or more of the preceding
?Zero or one of the preceding
{n,m}Between n and m repetitions
(…)Capture group — back-ref via $1, $2…
(?:…)Non-capturing group
[abc]Character class — any of a, b, c
[^abc]Negated class — anything but a, b, c
a|bAlternation — a or b

Pitfalls

Common mistakes

Frequently asked questions

Does this tool support regular expressions?
Yes. Toggle Use regex in the options strip to enable ECMAScript (JavaScript) regular expressions with g, m, and u flags. Capture groups and back-references ($1, $2 …) work in the Replace field.
Is my text uploaded to a server?
No. All processing runs entirely in your browser. Your text never leaves your device — there are no network requests for the matching or replacement logic.
How does Preserve case work?
When Preserve case is ON, the replacement is adapted to match the capitalization of each matched token. A lowercase match gets a lowercase replacement, an UPPERCASE match gets an UPPERCASE replacement, and a Title Case match gets a Title Case replacement.
What is the maximum text length?
The tool handles up to 500,000 characters. For very large inputs the match debounce window extends to 300 ms to keep the browser responsive.
Can I undo a Replace All?
Yes. After a Replace All the Undo button becomes active. Click it once to revert the source text to the state before the replacement. Single-level undo is supported.
What does step-through mode do?
Clicking Replace one… enters step-through mode. You can then Replace or Skip each match individually and see exactly which occurrences were changed before the source is updated.
Why is my regex pattern not matching anything?
Check that Use regex is ON. If you meant to search for literal text containing regex metacharacters (like . or *), turn Use regex OFF and the tool will treat the Find text as plain text.
Can I download the result?
Yes. Click the Download .txt button in the Result pane. The file is generated entirely in your browser as a plain-text file — no upload.