Find and Replace Text

Free find and replace text tool. Replace words or patterns in bulk text with case-insensitive, whole-word and regex options, and see the replacement count — in your browser.

✓ Free ⚡ Instant 🔒 100% private
Input text0 characters
Result0 characters

🔒 All find and replace happens in your browser — your text is never uploaded.

Advertisement

Free Find and Replace Text Tool

This free find and replace online tool lets you search any text and swap one word, phrase or pattern for another in seconds. Paste your text on the left, type what to find and what to replace with, and the cleaned-up result appears instantly on the right with a live count of how many replacements were made. It is free, needs no sign-up and runs entirely in your browser.

How to use

  1. Paste your text into the input box on the left (or click Load sample).
  2. Type the word or phrase to look for in the Find field.
  3. Type what it should become in the Replace with field.
  4. Tick any options you need: Case-insensitive, Use regex, Whole word only or Replace all.
  5. The result updates live — click Copy result to grab it.

When is find and replace useful, plus regex basics

Find and replace is one of the most-used editing tricks for a reason. It is perfect for renaming a variable across a block of code, cleaning placeholder names out of a template, fixing a misspelling that appears dozens of times, swapping British spellings for American ones, or standardising a long list. Doing the same edits by hand is slow and easy to get wrong — this tool does every match in one pass and tells you exactly how many it changed.

The options give you fine control. Case-insensitive matches Cat, cat and CAT alike. Whole word only stops cat from matching inside category by wrapping your search in word boundaries. Replace all changes every match, while turning it off changes only the first. With normal mode, special characters such as . or * are treated literally. Switch on Use regex to unlock full regular expressions: \d+ matches numbers, \s matches spaces, and you can reference captured groups in your replacement with $1, $2 and so on. If your pattern is invalid you get a friendly red message instead of a broken result.

Frequently asked questions

Is this find and replace tool free and private?
Yes. It is completely free with no sign-up, and every replacement happens in your browser with JavaScript. Your text is never uploaded to a server.
How do I replace only the first match instead of all of them?
Untick the Replace all option. With it off, only the first match in the text is replaced; with it on, every match is replaced and the counter shows the total.
What does the Whole word only option do?
It wraps your search in word boundaries, so searching for cat matches the standalone word but not cat inside category or scatter.
Can I use regular expressions?
Yes. Tick Use regex to treat the Find field as a regular expression, so you can match patterns like numbers or whitespace and reuse captured groups such as $1 in the replacement. If the pattern is invalid, a clear error message is shown.
Why did my special characters not work as a pattern?
When Use regex is off, characters like a dot or asterisk are treated as plain text, so you find them literally. Turn regex on if you want those characters to act as pattern operators.
Advertisement