Find and Replace
Find and replace text with match case, whole word and regex options
Runs entirely in your browser. Nothing you type or upload is sent to us or stored.
Results are for general guidance. Please check anything important before relying on it. Terms of use
How to Use
- Paste your text into Your text. Try a sample shows a regular expression that rewrites dates like 12/10/2026 as 2026-10-12.
- Type what you are looking for in Find and the new text in Replace with (leave it empty to delete every match).
- Choose options: Match case, Whole words only, or Regular expression for patterns; then pick All matches or First match only.
- Check the match count and the highlighted preview, so you know you're changing the right words.
- Copy the Result, save it as a .txt file, or click Use as input to make another replacement on the updated text.
Find and replace text online
Word processors have find and replace, but a lot of the places you write don't: WhatsApp drafts, website forms, CMS editors, code snippets, text copied out of a PDF. This find and replace tool shows a live match count and highlights every match, so you can see what will change before you copy the result. It runs in your browser and nothing you paste is uploaded.
The options
| Option | Effect | Example |
|---|---|---|
| Match case | Capital and small letters must match | “India” does not match “INDIA” |
| Whole words only | Ignores matches inside longer words | “cat” does not match “concat” |
| Regular expression | Find patterns instead of fixed text | \d{6} finds 6-digit PIN codes |
| First match only | Replaces only the first occurrence | Fix just the first typo |
Whole-word matching works for Hindi, Gujarati, Tamil and other Indian scripts as well as English. Search for “राम” as a whole word and it won't match inside “रामायण”.
Using regular expressions
A regular expression (regex) describes a pattern. Switch on Regular expression and the Find box accepts JavaScript regex syntax, without the surrounding slashes. If the pattern has a mistake, such as an unclosed bracket, you get an error message under the box instead of a wrong result. In the replacement, $1, $2 … insert captured groups and $& inserts the whole match.
Replace: $3-$2-$1
Result: 12-10-2026 → 2026-10-12
A few patterns that come in handy with Indian data:
[6-9]\d{9}: a 10-digit Indian mobile number\b\d{6}\b: a 6-digit PIN code[A-Z]{5}\d{4}[A-Z]: the PAN card format (with Match case on)\s{2,}: two or more spaces, to replace with a single space^\s+|\s+$: spaces at the start or end of the text
With the regular expression option off, every character is matched literally. You can search for text like “(1+1)*$” without trouble, and a “$” in the replacement goes in as it is.
Worked example
A notice says “Rs. 500 fee, Rs. 50 late fee” and you want the rupee symbol instead. Find “Rs. ” and replace with “₹”. The preview highlights 2 matches, and the result reads “₹500 fee, ₹50 late fee”. Choose First match only and only the first one changes; the second shows with a lighter highlight.
Tips
- Look at the highlighted preview before you copy. A short search term like “an” can match inside dozens of words. Turning on Whole words only stops that.
- To delete something everywhere, leave Replace with empty.
- Click Use as input to run several replacements one after another.
- A very complex regular expression on a very long text can be slow, so test the pattern on a smaller piece first.