Find and Replace Text Online
Paste your text, type what to find and what to replace it with, and the result updates instantly. Switch on regex for patterns, or match case to be precise.
How to find and replace text
- Paste your text into the input box.
- Type what to find and what to replace it with, then pick your options.
- Copy the updated result, with a count of how many changes were made.
Examples
Swap a word everywhere
color, colors, colorful
colour, colours, colourful
Frequently asked questions
What is the difference between literal and regex mode?
Literal mode matches your exact text, so a dot only matches a dot. Regex mode treats the find field as a pattern, so you can match digits, word boundaries, or repeated characters.
How does case sensitivity work?
When case sensitive is on, 'Apple' and 'apple' are treated as different. Turn it off to match a word regardless of capitalization.
Can I replace only the first match?
Yes. Turn off 'Replace all' to change just the first occurrence. Leave it on to replace every match in the text.
What regex patterns can I use?
Standard JavaScript regex works. For example, \d+ matches numbers, \s+ matches runs of whitespace, and \bword\b matches a whole word. You can also reference capture groups like $1 in the replacement.
What happens with an invalid regex?
If the pattern cannot be compiled, the tool shows an 'Invalid regular expression' message instead of changing your text, so nothing breaks.
Is my text private?
Yes. Everything runs in your browser and nothing is uploaded to a server.
Related tools
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Free and private.
Remove Line Breaks
Remove line breaks and paragraph breaks from text online. Flatten copied text into one line, keep spaces tidy, then copy the result. Free and private.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.
Character Counter
Count characters, words and lines as you type. See how your text fits Twitter, SMS and meta description limits. Free, instant and private.