Free Find and Replace
Search and replace text in bulk with case-sensitive, whole-word and regex options. See every match highlighted live before you replace.
Live Match Preview
Every match is highlighted in yellowWhat Is Find and Replace?
Find and replace is one of the most useful text operations you can perform. It searches through a block of text, finds every occurrence of a word, phrase or pattern, and replaces each match with something else — all at once. Instead of scrolling through 5,000 words and manually editing every instance of a name, URL or formatting issue, you do it in one click.
Every word processor has a find-and-replace feature, but a browser-based tool has advantages: you can paste text from anywhere, use regex for advanced patterns, see all matches highlighted before committing, and keep the original text intact as a backup.
How the tool works
- Paste your source text into the left editor.
- Enter what to find — literal text or a regex pattern.
- Enter what to replace it with — the new text.
- Watch matches highlight in the preview as you type.
- Click Replace All (or Replace First) to generate the output.
The three matching modes
Regex cheat sheet — the 10 most useful patterns
Practical regex examples with capture groups
Swap first and last names
Find: (\w+)\s+(\w+) · Replace: $2, $1
"John Smith" becomes "Smith, John".
Extract email domain
Find: @\w+\.\w+ · Replace: @example.com
Every email is normalized to use your domain.
Convert hyphens to underscores in URLs
Find: ([a-z]+)-([a-z]+) · Replace: $1_$2
"my-page" becomes "my_page".
Remove all digits
Find: \d · Replace: (empty)
Strips every digit from the text.
Collapse multiple spaces
Find: + · Replace: (single space)
Turns runs of spaces into one space.
Common use cases
Regex vs literal search — when to use which
- Use literal search for 90% of tasks. Renaming "Apple" to "Orange", replacing "TODO" with "DONE", changing a phone number. Simple, predictable, no escaping needed.
- Use regex when you need pattern matching: all email addresses, all URLs matching a pattern, all numbers, all words starting with a prefix. Regex is powerful but has a learning curve — start with a cheat sheet.
Privacy and security
This find and replace tool runs entirely in your browser. Your text is never sent to any server, never stored anywhere, and disappears the moment you close the tab. Safe for confidential documents, private code, legal text and any content you want to keep local.
Frequently Asked Questions
What is a find and replace tool?
What is regex and do I need it?
What does "whole word" mean?
Does it support regex capture groups?
(\w+)@(\w+\.\w+)) and reference them in the replacement with $1, $2, etc. This lets you rearrange text — for example, swap the position of first and last names.