Command Palette

Search for a command to run...

FI

Find and Replace Text

Find and replace text online without regular expressions. Apply several rules at once, match whole words, and control case. Client-side, no signup.

Find and replace rules
Category:text
Mode:Offline
Version:1.0.0
Access:Free

What is Find and Replace?

Find and replace is the operation of locating every occurrence of a piece of text and swapping it for another. It is the single most common text edit there is, built into every editor and word processor, and this tool does it in the browser on a block of text you paste, without an account and without sending the text anywhere. You type what to find, type what to replace it with, and get the result back with a count of how many changes were made.

What separates this from a regular-expression replacer is that the search is literal. Every character you type in the find box is matched exactly as itself, so a full stop matches a full stop and nothing else, a dollar sign matches a dollar sign, and a bracket or a backslash needs no escaping. That is the behaviour most people want: they are cleaning up pasted text, fixing a misspelling that appears fifty times, or standardising a term, not writing a pattern. A regex replacer treats those same characters as commands, which is why a stray dot or asterisk in the search term can silently match far more than intended.

Two controls handle the cases where a plain swap is too blunt. Case sensitivity decides whether Cat, CAT, and cat are the same word or three different ones, which matters when you want to fix a name without touching an unrelated word that happens to share its letters. Whole-word matching decides whether the search term must stand on its own rather than sit inside a longer word, so replacing cat leaves category and scattered untouched. You can also apply several find-and-replace rules in one pass: each rule runs in turn on the result of the one before it, which is how you rename a set of terms, normalise inconsistent spellings, or strip out several unwanted strings in a single click.

Here is a worked example of find and replace in text using the Load Sample button. The sample mentions cat in several forms. Find cat and replace it with dog with both boxes unticked and the result reports 7 replacements, because CAT, category and cats all match. Tick Whole word only and it drops to 5, since category and cats are skipped. Tick Case sensitive as well and it is 4, because CAT no longer counts. Checking that number before you copy is the quickest way to find text and replace it without surprises.

Everything happens on your device. The text is processed in JavaScript in your browser and is never uploaded, logged, or stored, so notes, drafts, transcripts, and anything else you paste stay private. Because there is no server involved, the replacement is instant even on a large block of text, and the tool keeps working with the network disconnected once the page has loaded.

How to use Find and Replace?

1

Paste your text

Paste the text you want to edit into the input box, or load the sample. There is no length limit beyond what your browser can hold in memory.

2

Enter what to find and replace

Type the exact text to find and the text to replace it with. Add more rows to apply several replacements at once; each rule runs in order on the result of the previous one.

3

Choose match options

Turn on case sensitivity to treat Cat and cat as different, or whole-word matching to skip occurrences that sit inside a longer word such as category.

4

Replace and copy

Click Replace to see the result and the total number of replacements across all rules, then copy the output to your clipboard.

Key Features

Literal, no regular expressions

The search term is matched exactly as typed, so dots, dollar signs, brackets, and backslashes are treated as themselves and need no escaping. No pattern to learn and no accidental over-matching.

Multiple rules at once

Add as many find-and-replace pairs as you need. They apply in order, each acting on the output of the one before, so you can rename or clean up a whole set of terms in a single pass.

Whole-word matching

Restrict a replacement to standalone words so that replacing cat leaves category and scattered untouched. Boundaries are detected with Unicode-aware rules, not just ASCII letters.

Case control

Choose whether Cat, CAT, and cat are the same term or three different ones. Case-insensitive by default, which is what most cleanup jobs want, and exact when you need it.

Frequently Asked Questions

Paste your text, type the exact phrase to find and the phrase to replace it with, then run the replacement. Every occurrence is swapped and you get a count of how many changes were made. It works entirely in your browser, so nothing is uploaded.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!

find and replacefind and replace textfind and replace onlinetext replace toolreplace text onlinebulk find and replacesearch and replacereplace allmulti replacefind and replace in textfind text and replace