Skip to content

Find and Replace

Replace every match in a block of text, with regex when you need it.

Type something in the find box to start.

Quick Tool Overview

Find and Replace swaps every match in a block of text for something else, with regular expressions when the thing you are matching is a pattern rather than a word. The result appears beside the original as you type, with a count of how many matches changed.

What it does
Replaces every occurrence of a string or pattern in your text
You give it
Your text, what to find and what to put in its place
You get back
The edited text and the number of replacements made
Best for
Bulk URL edits, renaming through a document and reformatting lists
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Find and Replace

Some edits are too small for an editor and too fiddly for a spreadsheet: swapping a name through a document, stripping a prefix off 400 URLs, turning every straight quote into a curly one. Paste the text, type what to find and what to put in its place, and the result appears beside it as you type with a count of how many matches changed.

Match case and whole words only cover most jobs. Turn on regular expressions when the thing you are matching is a pattern rather than a word, and capture groups written as a dollar sign followed by a number work in the replacement field.

The escape option lets you type a line break as a backslash n and a tab as a backslash t in either box, which is how you split one long line into many, or collapse a column of values into a comma-separated list. Use as input feeds the result back into the box so you can run several replacements in a row.

Key features of the Find and Replace

Full regular expression support

Match patterns rather than fixed words, with capture groups written as a dollar sign and a number available in the replacement.

Match case and whole words

The two options that cover most everyday jobs, without needing to write a pattern at all.

Escape sequences in both boxes

Type a line break as a backslash n and a tab as a backslash t to split one long line into many, or collapse a column into a comma-separated list.

Live match count

You can see how many matches a pattern hits before you commit to the replacement.

Chain replacements

Use as input feeds the result back into the box so several passes can be run one after another.

How to use the Find and Replace

  1. 1

    Paste your text

    Drop the text you want to edit into the left box.

  2. 2

    Type what to find

    Enter the word or pattern to look for, then what should replace it. Leave the second box empty to delete matches.

  3. 3

    Tune the matching

    Turn on match case, whole words only, or regular expressions depending on how precise you need to be.

  4. 4

    Copy the result

    Check the match count, then copy the edited text or feed it back in for another pass.

Frequently asked questions

Yes. Turn on the escape option and type a backslash followed by n in the replace box. The same works in the find box, which is how you join many lines into one.

Reviews of the Find and Replace

What people who use the Find and Replace think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Find and Replace. It takes half a minute and no account.

Write the first review

More text tools