Find and Replace Text
Bulk find and replace in text with optional regex and case matching. Free, private and instant.
How to use the Find and Replace Text
- Paste your text, then type what to find and what to replace it with.
- Tick Match case if capitals matter. Tick Use regular expression only if you want pattern matching.
- The replaced text appears as you type, with Copy and Download .txt buttons. All matches are replaced.
Example
Worked example (fictional text, run through this tool and Node’s string replace)
- Plain text: Colour, colour and COLOUR. with find colour, replace color, case ignored, becomes color, color and color.
- Regex with groups: 2026-10-08 with find ([0-9]+)-([0-9]+)-([0-9]+) and replace $3/$2/$1 becomes 08/10/2026
- Bad pattern: Find ( with regex on gives: Invalid regular expression: Unterminated group
Limitations
- With regex off, special characters are treated literally and $ in the replacement is kept as typed.
- Replacements are case-insensitive unless Match case is ticked, and the replacement is inserted exactly as typed, not matched to the capitalisation of the original.
- Regex uses JavaScript syntax, which differs in places from Python, PCRE or spreadsheet formulas.
- A badly written regex can be slow on very large text.
About this tool
Replace every occurrence of a word or pattern in a block of text. Turn on regular expressions for advanced matching with capture groups such as $1.
Find and Replace Text is part of ToolStack Hub's Text Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Guides about this tool
Frequently asked questions
Is the Find and Replace Text free?
Yes. Find and Replace Text is completely free with no sign-up, limits or watermarks.
Is my data private when I use the Find and Replace Text?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.