Text Tools

Find & Replace

All tools

Swap one word, phrase or pattern for another across a whole block of text and see how many changed.

How it works

Four simple steps

1

Paste the source text

Add the document, template or log you want to edit.

2

Enter find and replace

Type plain text or a pattern, plus the new text, or leave it empty to delete.

3

Set the options

Toggle regex, case-insensitive matching and replace-all.

4

Check the count, then copy

The status shows how many replacements were made.

Find & Replace

About Find & Replace

A product was renamed and the old name appears dozens of times in a release note, sometimes capitalized and sometimes not. Paste the text, type the old and new names, tick Case-insensitive, and the updated copy is ready with a count of every swap.

Type what to find and what to put in its place, and the result updates as you type. Leave the replacement empty to delete every match. By default the search is literal and replaces all matches; untick Replace all to change only the first one. Case-insensitive matching catches "Beta", "beta" and "BETA" in one go. The status bar reports how many replacements were made, a quick sanity check before you copy or download the result.

Tick Use regex to search with a JavaScript regular expression, for example \d+ for numbers or \s{2,} for runs of whitespace. Two limits are worth knowing. There is no multiline flag, so ^ and $ match only the start and end of the whole text, not each line. And with Replace all on, the replacement is inserted literally, so back-references like

are not expanded; they only work when Replace all is off.

To build and debug a pattern first, the Regex Tester highlights matches as you edit. For capture-group replacements across every match, use the Regex Replacer, which takes custom flags. Text and patterns stay in your browser.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

With Replace all switched on, the replacement text is inserted exactly as typed, so capture-group references are not expanded. Untick Replace all to use

on the first match, or use the Regex Replacer for every match.

No. Without a multiline flag, ^ and $ refer to the beginning and end of the whole text. To add something to the start of every line, the Add prefix action in Line Tools is simpler.

Yes. Leave the Replace with field empty and every match is removed. The status line still counts how many were deleted.

View more FAQs

Related tools

View all

Uppercase

Convert text to UPPERCASE.

Open

Lowercase

Convert text to lowercase.

Open

Sentence Case

Capitalize first letter of sentences.

Open

Title Case

Capitalize each word.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools