Skip to content
APK Peer

Find and Replace Text

Free · runs in your browser · nothing uploaded

Quick answer

This find and replace tool swaps every occurrence of a word or phrase in your text, with options to match case, replace whole words only, or use regular expressions for advanced patterns. A live counter shows how many replacements were made. It works in your browser, so private documents stay private.

0 characters

How to find and replace text

  1. Paste your text into the Input box.
  2. Type what to look for in Find and the new text in Replace with.
  3. Choose options: Match case, Whole words or Regular expression.
  4. Check the replacement count, then copy the result.

The result updates as you type, so you can see exactly what will change before you copy it.

Options explained

OptionEffectExample
Match case"Apple" won't match "apple"Replacing a brand name only where it's capitalized
Whole words"cat" won't match "category"Renaming a word without breaking longer words
Regular expressionUse patterns instead of plain textRemoving all numbers, reformatting dates

Regular expression examples

FindReplace withWhat it does
\d+(empty)Removes all numbers
\s{2,}a single spaceCollapses runs of spaces
(\w+)@(\w+)$1 at $2Rewrites email-style text
^- Adds a dash at the start of every line (tick Regular expression)

In the replacement, $1, $2 and so on insert the text matched by the first, second and later groups in parentheses. If a pattern isn't valid, the tool shows an error instead of changing your text.

Everyday uses

  • Updating a product name, price or date throughout a document.
  • Removing tracking codes such as ?utm_source= from a list of links.
  • Turning a comma-separated list into lines, ready for the sort lines tool.

Private and safe

The text never leaves your browser, so you can use it with contracts, code and other private material.

Frequently asked questions

What does 'whole words' do?

It only replaces complete words. Replacing 'cat' with 'dog' would change 'cat' but leave 'category' alone. Without it, the tool replaces the letters wherever they appear, including inside longer words.

How do I use regular expressions?

Tick Regular expression to use patterns. For example, \d+ matches any number and \s+ matches runs of spaces. In the replacement, $1 inserts the first group in parentheses. Invalid patterns show an error instead of breaking your text.

Can I replace text with nothing?

Yes. Leave Replace with empty to delete every match. That's a quick way to remove a repeated word, a tracking code from links, or unwanted characters from a list.

Last updated by the APKPeer Editorial Team. Read our privacy policy for how the site handles data.