Find and Replace
Text ToolsBulk find & replace with regex support
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →Find and replace in bulk: plain text, whole words and regular expressions
Changing one word by hand is easy. Changing it in 400 places across a long document, without breaking anything else, is where a good find and replace saves an afternoon. Paste your text, say what to find and what to put instead, and every match is changed at once. The tool also tells you how many replacements it made, so you can check the result against what you expected.
The five settings
The result box shows the updated text and a “Replacements” count. A count of 0 means nothing matched, which usually points to a spelling difference, extra spaces, or the Match case setting.
- Find: the text to look for. Required.
- Replace with: the new text. Leave it empty to delete every match.
- Match case: off by default. With it off, “cat”, “Cat” and “CAT” are all found.
- Whole word: only counts a match when it stands alone. “cat” then does not match “catalog” or “concatenate”.
- Use regex: treats the Find box as a regular expression, which unlocks pattern matching. More on this below.
Something to know: the replacement does not copy the original case
With Match case off, the tool finds “Cat” and “cat” but replaces both with exactly the text you typed. If you replace “cat” with “dog”, then “Cat” at the start of a sentence becomes “dog”, with a small d. If capitals matter, run the replacement once with Match case on for each version: “Cat” → “Dog”, then “cat” → “dog”.
Everyday examples without regex
The Replace box is a single line, so you cannot type a line break into it. You can, however, match line breaks in the Find box with regex on, as the recipes below show.
| Task | Find | Replace with |
|---|---|---|
| Update a name or brand everywhere | Old Company Pvt Ltd | New Company Pvt Ltd |
| Change a year | 2025 | 2026 |
| Swap a word, but not words that contain it | cat (Whole word on) | dog |
| Remove a word completely | basically | (leave empty) |
| Switch British to American spelling | colour | color |
| Fix a common typo everywhere | recieve | receive |
A short introduction to regex
A regular expression, or regex, describes a pattern instead of fixed text. It looks cryptic at first, but a handful of pieces cover most real needs. When Use regex is on, these work in the Find box:
| Pattern | Matches |
|---|---|
\d | any one digit (0–9) |
\d+ | one or more digits in a row, like 2026 or 45 |
\s | a space, tab or line break |
\s{2,} | two or more whitespace characters in a row |
[A-Za-z]+ | a run of English letters |
. | any one character except a line break |
(…) | a group you can reuse in the replacement |
a|b | either a or b |
Useful regex recipes
In the replacement, $1, $2 and so on stand for the first, second group in brackets. In the date example, group 1 is the day, group 2 the month and group 3 the year, so $3-$2-$1 puts them in the new order. These group references only work when regex is on, and the tool supports single-digit references, from $1 to $9.
| Task | Find (regex on) | Replace with |
|---|---|---|
| Turn many spaces into one | {2,} | a single space |
| Turn 12/03/2026 into 2026-03-12 | (\d{2})/(\d{2})/(\d{4}) | $3-$2-$1 |
| Swap “Surname, First” into “First Surname” | (\w+), (\w+) | $2 $1 |
| Join all lines into one line | \n | a single space |
| Delete all numbers | \d+ | (empty) |
| Wrap each number in brackets | (\d+) | [$1] |
Limits to remember
- No per-line anchors. In regex,
^and$match only the very start and very end of the whole text, not each line. To work on line endings, match the line break itself with\n. - Whole word is for English-style words. It uses the standard word boundary, which is based on English letters and digits. It does not work reliably for Hindi and other scripts, so try matching without it.
- Always replaces everything. There is no “replace one by one”. If you are unsure, test with a short sample first, or check the count.
- An invalid pattern gives an error instead of a result. Unclosed brackets and a stray
(or[are the usual cause.
A safe way to work
- Keep your original text somewhere else. Replacement cannot be undone inside the tool.
- Try your pattern on a small piece of the text first.
- Compare the Replacements count with how many you expect. If you expected 12 and got 140, the pattern is too wide.
- Run complicated changes in small steps, one rule at a time, rather than one giant pattern.
- Skim the result for the cases you worried about, such as the start of sentences and words that contain your Find text.
Privacy
The text is processed in your browser. Neither your document nor the words you search for are sent anywhere.
Find and Replace — at a glance
Replace a word or phrase everywhere in your text at once, with optional regex power.
How to use it — step by step
Your text, the word to find, and what to put instead.
Paste your input
Paste or type your content into the big input box.
Choose options
Pick the mode and options that fit what you need.
Replace All
Press the button. The result is created instantly on your device.
Copy the result
Check the output and press Copy to use it anywhere.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
What is Find and Replace?+
Find and replace text in bulk with optional case matching, whole-word matching and regular expressions. See how many replacements were made — great for editing documents, code and data.
How do I use Find and Replace?+
Open Find and Replace on this page, then: 1. Paste your input 2. Choose options 3. Replace All 4. Copy the result. Everything runs in your browser on a phone or computer.
Is Find and Replace free to use?+
Yes. Find and Replace on Toolcloak is free, needs no signup and has no hidden limits.
How do I delete a word?+
Enter it in Find and leave Replace with empty, then press Replace All.
What is regex mode?+
It lets you use patterns, e.g. \d+ finds every number. Leave it off for normal text.
Why did 0 replacements happen?+
Check spelling, and try turning off Match case or Whole word.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Also searched as: find and replace online · bulk text replace · regex replace online · text replacer · find and replace · find and replace no signup

