Find andReplace Text

Paste your text, type what to find and what to replace it with, and copy the result. Matches are counted and highlighted, so you can check before you copy.

  • Free forever
  • No sign-up
  • Runs in your browser

Your text

Result

3 matches replaced.

New text

Our winter sale starts Monday. Everything in the winter range is 20% off, and winter hats are buy one, get one free.

The sale ends Sunday at midnight.

Where it matched

Our summer sale starts Monday. Everything in the Summer range is 20% off, and summer hats are buy one, get one free. The sale ends Sunday at midnight.
Matches
3
Characters after
151

Everything happens in your browser, so nothing you paste is sent anywhere. Whole words treats letters, numbers and underscores as part of a word, so it works for accented and non-English words too.

How to use the Find and Replace Text

  1. 1

    Paste your text.

  2. 2

    Type the word to find and what to replace it with.

  3. 3

    Turn on Match case or Whole words only if you need them.

  4. 4

    Check the highlighted matches and copy the new text.

The options, explained

Each switch narrows what counts as a match:

  • Match case: “Summer” only finds “Summer”, not “summer” or “SUMMER”.
  • Whole words only: “sale” finds “sale” but not the “sale” inside “wholesale”. Letters, numbers and underscores count as part of a word, so it works with accented words too.
  • Regular expression: search with a pattern instead of exact text (see below).
  • Leave Replace with empty to delete every match.

Regular expressions in a nutshell

A regular expression (regex) is a pattern for matching text. Some useful pieces:

  • \d matches any digit, and \d+ matches a whole number.
  • \s matches a space, tab or line break.
  • . matches any single character, and .* matches anything.
  • (cat|dog) matches either word, and $1 in the replacement puts back what the brackets matched.
  • ^ and $ match the start and end of each line.

Handy uses

Update a product name, price or date across a long caption or email. Swap “colour” for “color” (or back) before sending to a client. Replace double spaces with single ones. Turn a list of “First Last” names into “Last, First” with the regex (\w+) (\w+) and the replacement $2, $1.

Find and replace in other apps

In Word and Google Docs on Windows, press Ctrl+H. In Google Docs on a Mac, press Cmd+Shift+H. Most code editors use Ctrl+H or Cmd+Option+F. Instagram, TikTok and most social apps have no find and replace, so drafting here first saves you editing by hand on your phone.

Frequently asked questions

How do I replace a word everywhere in my text?

Paste your text, type the word in Find and the new word in Replace with. Every match is replaced at once, and the count tells you how many changed.

How do I make it match whole words only?

Turn on Whole words only. Then “cat” matches “cat” but not “category” or “concat”.

Can I delete a word from my text?

Yes. Type it in Find and leave Replace with empty. Every match is removed.

Why does my regex show an error?

The pattern has a syntax problem, often a bracket that isn't closed or a special character like ( or ? that needs a backslash before it. Turn off Regular expression to search for the exact text instead.

Is my text uploaded anywhere?

No. Everything runs in your browser and nothing is saved or sent.

Embed this tool on your site

Want the Find and Replace Text on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free Find and Replace Text by Hiyaly

Put it allon one link.