We use essential cookies to keep you signed in and protect forms. We also use analytics to count visits and see how pages are used. Ads on our free tools may set cookies to show and measure ads. Cookie notice
Find and Replace
Change every occurrence of a word or pattern at once. Your text stays in your browser.
Your files stay with you. Your files never leave your browser. This tool runs on your device: nothing is uploaded to our servers, so there is nothing for us to store or see.
How to use it
1Paste your text.
2Type what to find and what to replace it with.
3Turn on regex or whole words if you need them, then copy the result.
Where it helps
Updating documents
Change a price, date or name throughout a long document.
Cleaning data
Standardise phone formats such as +91 across a list.
Developers
Rewrite patterns in text with regular expressions.
Good to know
Stays in your browser
Your text is processed on your device and never sent to our servers.
Whole words only
Stops 'cat' matching inside 'category'.
Regex groups
Use $1, $2 for groups and $& for the whole match.
Slow patterns
Some regular expressions are slow on large text; simplify them.
How do you find and replace text everywhere at once?
Paste your text, type what to find and what to replace it with, and switch on whole words, match case or regular expressions if you need them. The result appears in a separate box to copy, so your original stays as it was. Everything runs in your browser.
Whole wordsOptional.No partial matches.
Match caseOptional.Exact capitals.
RegexWith $1, $2.For patterns.
0Data sent.In your browser.
How do I find and replace text online?
Paste your text, type the word or phrase to find and what to replace it with, and the result appears in a separate box. Switch on whole words or match case if needed, then copy the result. Your original text stays unchanged in the first box.
How do I use regular expressions?
Tick Use regular expression and write a pattern such as (\d+)-(\d+). In the replacement, $1 and $2 stand for the groups and $& for the whole match. Test complex patterns in the regex tester first if you're not sure they match what you expect. Start with simple patterns.
What does Whole words only do?
It stops 'cat' matching inside 'category': the match must have no letter or digit directly before or after it. Use it when replacing short words that could appear inside longer ones, such as names, units or abbreviations. It's off by default, so switch it on when you need it.
Why did the page slow down?
Some regular expressions can take very long on large text, which is a property of the pattern itself rather than the tool. Simplify the pattern, avoid nested repetition such as (a+)+, or work on a smaller piece of text at a time. Plain text search is always fast.
Is the original text changed?
No. The result appears in a separate box, so you can compare it with what you pasted. If the replacement isn't what you wanted, adjust the settings and the result updates; your original is always still there. Copy only the version you're happy with. You can compare them side by side.
Is my text uploaded?
No. Find and replace runs in your browser, so documents and lists stay on your device. That makes it safe for contracts, customer data and internal documents. Nothing is stored after you close the page, and there's no account, email address or sign-up needed. Documents stay with you.
How do I add +91 to phone numbers?
With regular expressions on, find ^(\d{10})$ and replace with +91$1, which adds +91 to lines that are exactly ten digits. Check the result before importing it anywhere. Clean spaces first, because spaces inside numbers stop the pattern matching. Then remove duplicates. Test the pattern on a few lines first.
What does match case do?
It makes the search exact about capital letters, so 'Pune' won't match 'pune'. Leave it off to replace regardless of capitals. Match case is useful for brand names and codes where capitalisation matters. It's off by default, so 'Pune' and 'pune' both match until you switch it on.
Can I replace line breaks?
Yes, with regular expressions: find \n and replace with a space or a comma to join lines, which turns a list into a comma-separated line. For simply removing extra line breaks, the remove extra spaces tool is easier. Remember to tick regular expressions. Use \n in the find box.
How many replacements were made?
The tool shows how many matches it found, so you can check the change is as big as you expected. If the number is surprisingly high, switch on whole words or match case to narrow the search. It also says when nothing matched. The count appears with the result.
Can I undo a replacement?
There's nothing to undo, because the original text stays in the first box. Change the settings or clear the replacement to see the original again. Copy only the version you're happy with. Clear the boxes to start again with a fresh piece of text. Nothing is ever lost.
Does it work with Hindi?
Yes. Find and replace works with Hindi and other scripts. Whole words only treats letters of any script as part of words. Regular expressions can match Hindi text too, though patterns like \w may behave differently with Devanagari. Test patterns on a small sample. Plain searches work perfectly.
Can I use it to update prices in a document?
Yes. Find the old price, such as ₹999, and replace it with the new one throughout. Check the result for places where the old number appears in another context, such as a phone number, before using the updated text. Whole words only helps here. Review every changed line.
Does it work on a phone?
Yes. Paste text on your phone, set find and replace, and copy the result. Regular expressions are easier to type on a computer keyboard. No app is needed, and your text stays on the phone the whole time, so it's handy for quick jobs away from a computer.
Is it free?
Yes. Find and replace is free, with no sign-up and no limit. It's part of the free text tools from Marketiism, alongside the text diff checker and the regex tester for developers. Nothing is added to your text, there's no daily limit, and you can use it for business and client work.
Want this inside your own account?
Marketiism keeps your invoice numbers, GST reports, UPI payment links and WhatsApp reminders in one place. Leave your details and we'll call to set it up for your business, or start the trial yourself.