Text & data TOOL

Find and replace text

Replace text using plain search or regular expressions.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

No account. No uploads.

Find and replace text · How to use

Replace text using plain search or regular expressions.

Example

Replacing Hello with Welcome in Hello, Poptools! produces Welcome, Poptools!

Things to know

Choose between plain text and regular expression modes. Regular expressions use JavaScript syntax.

Output options

Search text
Check the input format.
Replacement text
Check the input format.
Search mode
Plain text · JavaScript regular expression
Regular expression flags
Check the input format.

Your files and results are never sent to a server. Everything is processed in this browser.

How to find and replace many matches in text at once

Rename a product or term throughout a document, or clean up line breaks and stray symbols in pasted data. With regular expression replacement you can also reformat dates or phone numbers in one pass.

When to use this tool

  • Replace an old product name throughout a manuscript
  • Join pasted lines into a single paragraph
  • Change dates from 2026/01/05 to 2026-01-05
  • Delete a word or symbol everywhere it appears

Step-by-step instructions

  1. Paste the text you want to edit into the input box.
  2. Enter the search text and replacement text. Leave the replacement empty to delete matches.
  3. In Search mode, choose Plain text or JavaScript regular expression, and check the regular expression flags if you use a pattern.
  4. Choose Convert, then copy or download the result.

Frequently asked questions

What is the difference between plain text and regex mode?

Plain text mode replaces every exact, case-sensitive match and inserts the replacement literally, including any $ signs. Regex mode uses JavaScript pattern syntax, and the replacement can insert capture groups with $1 and $2 or the whole match with $&.

Why does regex mode replace only the first match or respect case?

The g flag is required to replace every match, and it is the default. Change the flags to gi to ignore case as well. The regex tester is handy for checking a pattern before you replace.

Can I remove line breaks or turn them into spaces?

In regex mode, search for \r?\n and enter a single space as the replacement to join lines with spaces. Leave the replacement empty to remove line breaks entirely.

Save only the tools you need.