How to use Find and Replace Text
- Paste your text into the “Text” box.
- Type what to find and what to replace it with. Leave “Replace with” empty to delete every match.
- Turn on “Match case”, “Whole words only” or “Regular expression” as needed.
- Check the replacement count, then copy or download the result.
About this tool
In normal mode every character is taken literally, so you can search for things like “$5.00” or “(draft)” without worrying about special characters. “Whole words only” stops “cat” from matching inside “category”, and it understands accented and non-Latin letters as part of words.
Regular-expression mode uses JavaScript syntax. Some useful patterns: \s+ matches runs of whitespace (replace with a single space to collapse them); ^\s+|\s+$ trims every line; (\d{4})-(\d{2})-(\d{2}) with the replacement $3/$2/$1 turns 2024-05-31 into 31/05/2024. Use $1, $2… or named groups $<name> to reuse captured text and $& for the whole match.
Frequently asked questions
How do I replace line breaks?
Turn on “Regular expression” and search for \n. Replace it with a space or “, ” to join all lines into one. In regex mode the replacement understands \n and \t too, so replacing “, ” with \n splits a comma-separated list into lines.
Why does my regex show an error?
The pattern is not valid JavaScript regex syntax – often an unescaped bracket or parenthesis. Escape special characters with a backslash, e.g. \( or \.
Is the search case-sensitive?
Not by default. Tick “Match case” to treat “Apple” and “apple” as different.
Are my texts uploaded to a server?
No. The whole process runs inside your browser with JavaScript. Your texts never leave your device, which also means the tool keeps working if you go offline after the page has loaded.
Is this tool really free?
Yes. There is no sign-up, no daily limit, no watermark and no paid tier. The site is supported by advertising shown on the page, not by charging for the tools.