Text Tools

Find and Replace

Find and replace text in any block of content, with case-sensitive, whole-word, and regular expression matching — replace one at a time or all at once, instantly, entirely inside your browser.

Private by default Instant results No signup
Find and ReplaceLive
Text
Overview

What is a find and replace tool?

A find and replace tool searches a block of text for every occurrence of a word or pattern and swaps it out for something else, without manually scanning through the text line by line. It's the same feature found in word processors and code editors, available here for any plain text — a document draft, a CSV pasted as text, a list of URLs, or a block of code — without needing to open another program.

Beyond a simple word swap, it supports whole-word matching so a search for "cat" doesn't also match "category," case-sensitive matching when letter case matters, and full regular expression support for pattern-based replacements — like reformatting phone numbers or stripping out repeated whitespace — that a plain text search can't do.

Guide

How to use it

1Paste or type your text into the box
2Enter what to find and what to replace it with
3Toggle case sensitivity, whole word, or regex as needed
4Replace all at once, or step through matches one by one

How the matching works

With "Case sensitive" off, "Text" and "text" are treated as the same match; turn it on to require an exact case match. "Whole word" restricts matches to complete words, so searching for "cat" won't match inside "category" or "concatenate". "Regex" treats the Find field as a regular expression instead of literal text, which enables pattern matching — like \d+ to match any number, or capture groups referenced in the replacement with $1, $2, and so on. "Replace next" and "Find next" move through matches one at a time from the current cursor position, wrapping back to the start once the end of the text is reached, and "Undo" reverts the most recent replacement.

Why it helps

Features & benefits

Replace all matches at once, or step through one at a time
Case-sensitive, whole-word, and regex matching
Live match count as you type a search term
Undo the most recent replacement instantly
Upload a .txt file or download the result
100% private — nothing leaves the device

Why this runs entirely in your browser

Text pasted here can include drafts, code, or other content you'd rather not upload anywhere. Every search and replacement runs in JavaScript locally in the tab, which means it keeps working offline once the page has loaded and nothing typed or pasted into it persists after the tab is closed.

Common uses

Swapping a renamed variable or function name across a pasted code snippet, correcting a repeated typo throughout a document, reformatting data with a regex pattern, removing placeholder text before publishing, or standardizing inconsistent spacing and punctuation in a block of text.

Frequently asked questions

A few things people usually want to know before trusting the numbers.

It only matches complete words, so searching for "cat" won't also match "category" or "concatenate."

Yes. Turn on "Regex" to treat the Find field as a regular expression, including capture groups that can be referenced in the replacement with $1, $2, and so on.

Yes. Click Undo to revert the most recent "Replace all" or "Replace next" action.

"Replace all" replaces every match in the text at once. "Replace next" replaces only the next match after the current cursor position, letting you review each one individually.

No. All searching and replacing happens locally in your browser. Nothing typed or uploaded here is sent to a server, stored, or shared.