Find and replace text

Find a word or phrase in your text and replace every match at once, or leave the replacement empty to delete it.

Leave “Replace with” empty to delete every match. With regular expressions on, add a backslash before characters like . ? and ( to match them as plain text. It all runs in your browser: your text is never uploaded.

Example input and result

The draft is due on Friday. Send the draft to Ana, and keep a copy of the draft for your records.

Result

The proposal is due on Friday. Send the proposal to Ana, and keep a copy of the proposal for your records.

How to find and replace text

Paste your text, type what you're looking for in “Find”, and type the new text in “Replace with”. Every match changes at once, and the tool shows how many replacements it made, so you know right away whether your word appeared 3 times or 30. If the count is 0, check the spelling in “Find” or the options below.

Leave “Replace with” empty to delete every match. That's the quick way to strip a word, a signature line, or a repeated tag from a document, or to fix a typo you repeated everywhere, like “recieve”. When the result looks right, “Copy result” copies it and “Download TXT” saves it as a text file. Everything runs in your browser, nothing is uploaded, and the box takes up to 500,000 characters.

Match case and Whole words only

With “Match case” off, “Rose” and “rose” count as the same word. Turn it on when only one form should change, like renaming Rose the person without touching the flower. The replacement goes in exactly as you typed it, so check the start of each sentence after a replace that ignores case.

“Whole words only” skips matches inside longer words. Without it, replacing “cat” with “dog” turns “category” into “dogegory” and “concatenate” into “condogenate”. With the option on, only “cat” standing on its own changes. Use both options together to rename a term across a whole document without side effects.

Find and replace with regular expressions

Turn on “Use regular expressions” to match patterns instead of fixed text. The tool uses JavaScript syntax: \d+ matches any run of digits, \s+ matches spaces, and \n matches a line break. In “Replace with”, $1 inserts what the first group in parentheses captured, $2 the second, and so on. Here are three common jobs and the pattern for each:

  • Swap dates from 24/10/2026 to 2026-10-24: find (\d{2})/(\d{2})/(\d{4}) and replace with $3-$2-$1
  • Delete tracking text from links: find \?utm_\S* and leave “Replace with” empty
  • Delete notes in brackets, like [1] or [citation needed]: find \[[^\]]*\] and leave “Replace with” empty

Characters that need a backslash in regex mode

With regular expressions on, some characters have a special meaning: . ? * + ( ) [ ] { } ^ $ | and the backslash itself. A dot, for example, matches any character, so finding “3.5” also matches “345”. To match them as plain text, put a backslash before them, as in 3\.5.

If the pattern has a mistake, like an unclosed parenthesis, you get a clear error instead of a broken result. Fix it and try again. When you only need to swap a plain word, turn regular expressions off and type any character as it is.

Frequently asked questions

How do I delete a word from my whole text?

Type the word in “Find” and leave “Replace with” empty. Every match is removed at once, and the count tells you how many were deleted. Turn on “Whole words only” so the word isn't cut out of longer words, and check for double spaces left where it used to be.

Why did my word change inside other words?

Without “Whole words only”, the tool matches your text anywhere, including inside longer words, so “art” also matches “start” and “party”. Turn the option on and only the standalone word changes. If you still see extra matches, check whether “Match case” is off and the word appears with a capital somewhere.

What regular expression syntax does it use?

JavaScript syntax, the same one web browsers use. The common pieces work as expected: \d for digits, \s for spaces, \n for a line break, and parentheses to capture groups. In the replacement, $1 inserts the first captured group and $2 the second.

Why do I get an invalid regular expression error?

The pattern has a syntax mistake, often an unclosed parenthesis or bracket, or a special character like ( or [ that needs a backslash in front to be matched as plain text. Fix the pattern, or turn off “Use regular expressions” if you only want to find plain words.

Can I replace text in a long document?

Yes. The box takes up to 500,000 characters, enough for a long report or a short book, and every match is replaced in one pass. Your text stays in your browser and is never uploaded, so you can edit drafts and private notes without worry.

Copied text!