Text & data TOOL
Find and replace text
Replace text using plain search or regular expressions.
Enter your text
On-device processingFind 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
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
- Paste the text you want to edit into the input box.
- Enter the search text and replacement text. Leave the replacement empty to delete matches.
- In Search mode, choose Plain text or JavaScript regular expression, and check the regular expression flags if you use a pattern.
- 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.