Find and Replace

Text Tools

Bulk find & replace with regex support

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Find
Replace with
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

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 →
About this tool

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.

TaskFindReplace with
Update a name or brand everywhereOld Company Pvt LtdNew Company Pvt Ltd
Change a year20252026
Swap a word, but not words that contain itcat (Whole word on)dog
Remove a word completelybasically(leave empty)
Switch British to American spellingcolourcolor
Fix a common typo everywhererecievereceive

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:

PatternMatches
\dany one digit (0–9)
\d+one or more digits in a row, like 2026 or 45
\sa 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|beither 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.

TaskFind (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\na 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

  1. Keep your original text somewhere else. Replacement cannot be undone inside the tool.
  2. Try your pattern on a small piece of the text first.
  3. Compare the Replacements count with how many you expect. If you expected 12 and got 140, the pattern is too wide.
  4. Run complicated changes in small steps, one rule at a time, rather than one giant pattern.
  5. 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.

Text + words
the cat sat
find: cat
replace: dog
Run
Result
the dog sat
1 replacement

How to use it — step by step

Your text, the word to find, and what to put instead.

1

Paste your input

Paste or type your content into the big input box.

2

Choose options

Pick the mode and options that fit what you need.

3

Replace All

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Turn on Whole word so “cat” does not change “category”.
✦In regex mode use $1, $2 to reuse captured groups.
✦Leave “Replace with” empty to delete the found text.

Quick facts

Regexoptional advanced matching
Countsee replacements made
Casematch or ignore
Privatetext never leaves device

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

More Free Tools