Find and Replace Text Online
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free online find and replace for any text. Match whole words or case, use regular expressions, and see how many replacements were made.
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use find and replace
Paste your text into the top box. Type the word or phrase you want to change in Find, and what it should become in Replace with. The result appears below as you type, with a count of how many replacements were made. Copy it with one click.
Three options give you control:
- Match case. Off by default, so "bread", "Bread" and "BREAD" are all found. Turn it on to replace only the exact capitalization you typed.
- Whole words only. Stops partial matches. With it on, finding "cat" won't change "category" or "concatenate".
- Regular expression. Lets you search with patterns, such as any number, any email address or the start of every line, and reuse parts of the match in the replacement.
To delete something, leave Replace with empty: every match is removed.
This find and replace tool works in your browser. Your text never leaves your device, so it's safe for contracts, client documents and drafts.
Everyday uses
- Rename a product or brand everywhere in a long document, website copy or a batch of social posts.
- Fix a repeated typo or an outdated price, date or phone number.
- Update a template: swap "[Client name]" for the real name in a proposal.
- Change spelling style between British and American English ("colour" to "color", "organise" to "organize").
- Clean pasted text: remove page numbers, footers, tracking codes or repeated signatures.
- Swap punctuation: replace " - " with an en dash, or straight quotes with curly ones (or the reverse).
- Prepare data for a spreadsheet or import: replace tabs with commas, or semicolons with line breaks.
Matching options explained
Match case
With match case off, the search ignores capitals. That's usually what you want for words. But note that the replacement is inserted exactly as you typed it: replacing "bread" with "loaf" turns "Bread" at the start of a sentence into "loaf". If capitals matter, run two passes with match case on: "Bread" to "Loaf", then "bread" to "loaf".
Whole words only
Whole-word matching only finds your search where it isn't part of a longer word. A word boundary is anything that isn't a letter, digit or underscore, so "cat" is found in "cat.", "(cat)" and "cat's" but not in "category" or "bobcat". Without this option, a quick replace can cause embarrassing mistakes, such as changing "Ass" in "Assistant" or "art" in "start".
Regular expressions
A regular expression (regex) is a small pattern language for matching text. It's powerful for bulk edits. With the option ticked, these are some patterns you can use:
| Pattern | Finds | Example use |
|---|---|---|
\d+ |
Any number | Replace all numbers with "X" to anonymize |
\s{2,} |
Two or more spaces | Replace with one space |
^ |
The start of each line | Replace with "- " to make a bulleted list |
$ |
The end of each line | Replace with "," to make a comma-separated list |
[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,} |
Email addresses | Remove or mask them |
https?://\S+ |
Web links | Remove links before sharing |
\(.*?\) |
Text in brackets | Remove asides or citations |
In regex mode, the ^ and $ anchors apply to each line, not just the whole text, so line-by-line edits work as you'd expect. Patterns written with capital letters, like the email pattern above, also match lowercase text as long as "Match case" is off, which is the default.
Reusing parts of the match
Put brackets around parts of the pattern to capture them, then use $1, $2 and so on in the replacement. $& inserts the whole match.
- Turn "2026-11-11" into "11/11/2026": find
(\d{4})-(\d{2})-(\d{2}), replace with$3/$2/$1. - Turn "Maya Chen" into "Chen, Maya" on every line: find
^(\S+) (\S+)$, replace with$2, $1. - Wrap every price in bold markdown: find
\$\d+(\.\d{2})?, replace with**$&**.
If your pattern has a mistake, such as an unclosed bracket, the tool shows a short error instead of changing anything.
Special characters in normal mode
When regular expressions are off, every character is matched literally. Finding "3.50" finds exactly "3.50", not "3x50", and you can search for brackets, dots, question marks and dollar signs without escaping them. That makes the default mode safe for everyday text.
A worked example: updating a menu
A bakery's menu text, copied from its website, says "Seeded rye $9" in four places and "seeded rye" in two product descriptions. The price has gone up to $10, and the bread has been renamed "Saturday rye".
- Change the price first, precisely. Find
Seeded rye $9, replace withSeeded rye $10. The tool reports 4 replacements, which matches what you expected. Regular expressions are off, so the "$" is matched literally. - Rename the product. Find
seeded rye, replace withSaturday rye, with "Whole words only" on. The tool reports 6 replacements: the four menu lines (already updated to $10) and the two descriptions. Because match case is off, "Seeded rye" at the start of a line is found too, but it's replaced with "Saturday rye", which keeps the capital S here by luck of the new name. - Check the result in text compare against the original. Six highlighted changes, nothing unexpected.
Doing the price before the rename matters: once the name has changed, the first search would no longer find anything.
Find and replace safely
Bulk changes are fast, which also means mistakes spread fast. A few habits prevent most problems:
- Check the count. If you expected 3 replacements and the tool reports 47, something is matching more than you meant. Turn on whole words or match case and look again.
- Read the result around a few matches before you copy it.
- Replace the longer phrase first. If you're changing both "New York" and "York", do "New York" first so it isn't broken into "New [replacement]".
- Keep the original. Your text stays in the top box until you change it, so you can always start again.
- Compare before and after. Paste the original and the result into text compare to see every change highlighted.
Find and replace in other apps
Most apps have find and replace built in:
- Microsoft Word: Ctrl+H (Cmd+Shift+H on Mac). Word uses its own wildcard syntax instead of standard regular expressions.
- Google Docs: Ctrl+H (Cmd+Shift+H on Mac), with a "Use regular expressions" option.
- Excel and Google Sheets: Ctrl+H, with options for matching the entire cell.
- Code editors: usually Ctrl+H or Ctrl+Shift+H for multiple files, with regex support.
An online find and replace is handy when the text isn't in a document yet: a social post, an email draft, text from a website, or a list you're preparing for an import.
Related clean-up tools
Find and replace handles specific changes. For common clean-up jobs there are quicker tools:
- Remove extra spaces collapses double spaces, tabs and blank lines and strips invisible characters.
- Remove line breaks joins lines broken by PDFs and emails.
- Remove duplicate lines deletes repeated lines from lists.
- Case converter changes capitalization across the whole text.
Keeping your brand words consistent
Many find and replace jobs are about consistency: the product renamed last year still appears in old posts, or half the team writes "e-mail" and the other half "email". It's worth writing those rules down.
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Frequently asked questions
How do I replace a word everywhere in my text?
Paste your text, type the word in Find and the new word in Replace with, and copy the result. Tick "Whole words only" so parts of longer words aren't changed.
How do I delete a word or phrase?
Type it in Find and leave Replace with empty. Every match is removed. Check for double spaces afterwards with the remove extra spaces tool.
Can I use regular expressions?
Yes. Tick "Regular expression" to use patterns. Capture groups with brackets and reuse them as $1, $2 in the replacement; $& inserts the whole match.
Is the search case-sensitive?
Not by default. Tick "Match case" to replace only exact capitalization.
Why did it change part of another word?
Without "Whole words only", the tool matches your search anywhere, including inside longer words. Turn the option on to match complete words only.
Is my text uploaded?
No. Find and replace runs in your browser and nothing is sent or stored.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.